From patchwork Wed Jan 17 23:49:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 188971 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp23543dyb; Wed, 17 Jan 2024 15:50:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IFRx67DNcz1GQnzugsCze0QRkkJf79/NnZgOMwH+4/mBZMIZKVDncwR4DeJ1a9FMx4PfwAf X-Received: by 2002:a2e:bc03:0:b0:2cc:9a11:9f34 with SMTP id b3-20020a2ebc03000000b002cc9a119f34mr34268ljf.20.1705535413675; Wed, 17 Jan 2024 15:50:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705535413; cv=pass; d=google.com; s=arc-20160816; b=UNrj9N6uZUe7oxy+VJWMXjqDbTkfX51oeGzEYFkNp/El1Z8ZB1tFTdrZsLOsRTUMr6 JXPlAU/pTqvAZO5YwnRfHhoIBhdxU7uDrXvNNGjrD55z6NYLfZTQPguMtIdd610sNnAB 80dfyJg/LF0Z92+2Xbs06LXTRxsztgpbvNMY9askSgSAc7oo8a4Ktd1r++DRtq4gZQcM 00lRCAnAK9IYQPQRQ+c7ZJwZsWa+A1h8HYg2boptItZm5P0fLednR8rkN4tKiLCl/w0p ioAy1q52crJZ5COMuFSJOqyk52mt+THbOmt1vXT0LjWRu8j+9DfxgXhE+3hYabYBFDkC nyEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=hAK0YIohDCD4eqIjGEjkntfc4ZRv0vFsNjgtuUpGJzk=; fh=ja9vnEtSZgDY6wDjTAi2FWGkjVoiRdMTu+dXeZzXPdY=; b=Q2rAEtGHGfIj64djrrgqWLOZhjszMGy1mj7lvoK4K+EtNyIwajHx3HTIiRdssKCD8C KK924Hj1sdrPD7araT/QllPBsx2eDSJM/nBmbLs8TLRLtnM2E4AuTOpoHIYpOorfyDkb ESvVehOzmj3PK9GXECTim2lLxDep2xojLTxQ8fLZkikBKJ8fkGBq7kYwYgSAj4e3pf1Z vDuj6Iwiq+cBBcy9f+XQwb/Madg9zxXgQQGkfThaJZgbC5lYUBRvSDlx+H3DvArn7Bbv oJ3xbQhgclfNpje02Gx0eI/4Sq9zfRNpnJ+M+eUWaoQ3KcvoCMqCvCSlRA23paEMXOUK gC9Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hS4vIWTM; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-29558-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29558-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id u6-20020a50d506000000b00558b9656874si6033223edi.594.2024.01.17.15.50.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 15:50:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29558-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hS4vIWTM; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-29558-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29558-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 495C71F21463 for ; Wed, 17 Jan 2024 23:50:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 28F4A28DC3; Wed, 17 Jan 2024 23:50:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hS4vIWTM" Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D61028DA0; Wed, 17 Jan 2024 23:49:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705535398; cv=none; b=bKoIEV1yxsnC9feH5hVUSqBdQL17IdFyq4m+7woTjc5onP/nG0QlxS0LDk1YZUEJaJFfKLodpgLRS3KArAVMaYpBg97RmPBaIhFD3phfKpXT4aduB7OIvLF92tUOakIq9TFfRVHhLSiG/6XVhkX0kUe1n56T4PGYD/hk0Kvh8+0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705535398; c=relaxed/simple; bh=aam7oYF4g9EqqlqYBqV3eSxfKV7feMrcfKtaXfjRZzc=; h=Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Google-Smtp-Source:X-Received:Received:From: To:Cc:Subject:Date:Message-Id:X-Mailer:MIME-Version: Content-Transfer-Encoding; b=cBI4qiLVb+VqACLNe67X5zkvFdsz+HbW2YsNDMJVDBBCQfSkDWa5YnzoalcUktOqyNRWOo5kE+4HzRCrrLa9R4ySZ9iw7S1XJnDk/+gxP16C0Gf/o/TQwtAkzZRm1GvI5bQWa8ERifrqUJAN8OVDdUuFn51L5CB0eh5g8+xvcSE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=hS4vIWTM; arc=none smtp.client-ip=209.85.210.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-6d9344f30caso141912b3a.1; Wed, 17 Jan 2024 15:49:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705535396; x=1706140196; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=hAK0YIohDCD4eqIjGEjkntfc4ZRv0vFsNjgtuUpGJzk=; b=hS4vIWTMdj+37jcRQeX1A5+dc6gfvPnhdjGcP/XZeeLk1Ait4kp1QtRVgPTkcRDO6E rD6/fQp4LjoADwRr7n8xAu4AK+nQHiw6smYzHUCGOFI6ibZv//5lstbvKqr6hajz2NDo Mz7HVdgjm7voS7h09n9f4wwuJBl8Uj/Ytqtp/WCI+4fHZJVJuIyyZIDSWIOqx1Kfhe2i l97H+FKgFM5+DxcF2bfrp3beY1LTEE0X6my9lNSUeSf8D6RiT4CV9WBrWGKI7YESP0l/ naODLVn3ThtemtPWZQsESz9Er7ubJKsfImI2qnHNsnYc9bFAqTqtX1aPkE1Vxk4MBAf0 GqBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705535396; x=1706140196; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hAK0YIohDCD4eqIjGEjkntfc4ZRv0vFsNjgtuUpGJzk=; b=TDPwosLvhhO+CBxRbIzE1U0uXIxRfegoNBSwlq83Hz+1+ISRSedkuPDvFTG6l+Z5Hg BufQ15IagWnTLvt1PeEMgnxhBLeLsyKVDvssSAnV8KlJXo1jEsI4Tkahl4eDy6waUz++ KukjGrJxCb8rb+yr3zClNIdy6NJdUBO50rKchsIk6pM+2TdmuHuE4/BagJJwPzrhq6OR WT9u13+fhX+CXu+xU7t0iX+iHS1gS3qyYd5LynkPW29vgHSwhpmttW/sYEfcjhm0M7vw x1AmktHmybaI5AAK7QjKDB2AKuua97Yqh4BdIPhQXaaUub8uQmuRO9xG84hnLILUbQHK g/5g== X-Gm-Message-State: AOJu0Yyk9L/cSNIHa9baKvAX91ALDkQRy93IO9dgjY0egN/rnXEkQl/D UMvZRA4mj9QqSAyr0jypa0WJZhx9vlk1kXS/Ju+Qxdn1k3L6jFvzkt2V3bSk X-Received: by 2002:a05:6a00:3923:b0:6da:ed17:bfa7 with SMTP id fh35-20020a056a00392300b006daed17bfa7mr124169pfb.6.1705535395774; Wed, 17 Jan 2024 15:49:55 -0800 (PST) Received: from eldorado.. (ip68-4-215-93.oc.oc.cox.net. [68.4.215.93]) by smtp.gmail.com with ESMTPSA id u20-20020aa78494000000b006dab0d09ef0sm2001796pfn.45.2024.01.17.15.49.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 15:49:55 -0800 (PST) From: Florian Fainelli To: linux-mips@vger.kernel.org Cc: Florian Fainelli , Thomas Bogendoerfer , linux-kernel@vger.kernel.org (open list) Subject: [PATCH] MIPS: Alchemy: Fix missing prototypes Date: Wed, 17 Jan 2024 15:49:44 -0800 Message-Id: <20240117234948.923273-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788383501867328019 X-GMAIL-MSGID: 1788383501867328019 We have a number of missing prototypes warnings for board_setup(), alchemy_set_lpj() and prom_init_cmdline(), prom_getenv() and prom_get_ethernet_addr(). Fix those by providing definitions for the first two functions in au1000.h which is included everywhere relevant, and including prom.h for the last three. Signed-off-by: Florian Fainelli --- arch/mips/alchemy/common/prom.c | 1 + arch/mips/alchemy/common/setup.c | 4 +--- arch/mips/include/asm/mach-au1x00/au1000.h | 3 +++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/mips/alchemy/common/prom.c b/arch/mips/alchemy/common/prom.c index b13d8adf3be4..20d30f6265cd 100644 --- a/arch/mips/alchemy/common/prom.c +++ b/arch/mips/alchemy/common/prom.c @@ -40,6 +40,7 @@ #include #include +#include int prom_argc; char **prom_argv; diff --git a/arch/mips/alchemy/common/setup.c b/arch/mips/alchemy/common/setup.c index 2388d68786f4..a7a6d31a7a41 100644 --- a/arch/mips/alchemy/common/setup.c +++ b/arch/mips/alchemy/common/setup.c @@ -30,13 +30,11 @@ #include #include /* for dma_default_coherent */ +#include #include #include -extern void __init board_setup(void); -extern void __init alchemy_set_lpj(void); - static bool alchemy_dma_coherent(void) { switch (alchemy_get_cputype()) { diff --git a/arch/mips/include/asm/mach-au1x00/au1000.h b/arch/mips/include/asm/mach-au1x00/au1000.h index a7eec3364a64..41546777902b 100644 --- a/arch/mips/include/asm/mach-au1x00/au1000.h +++ b/arch/mips/include/asm/mach-au1x00/au1000.h @@ -597,6 +597,9 @@ #include +void alchemy_set_lpj(void); +void board_setup(void); + /* helpers to access the SYS_* registers */ static inline unsigned long alchemy_rdsys(int regofs) {