From nobody Fri Dec 19 06:57:09 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E407200A6; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711792677; cv=none; b=PYThi49YGKvKTceauJDlDRxsegLivyIYR6pm2WffXwYcJvCCIkq4rGAloV4WlWrt2jF53j7J3I+tkmbEk894lIe+i4QHf6rJx39vRbHPLoi0C40IQfXUMruquqBuw67lF96FjFON2RWjq36erP9aclNS+Ta2z0T9qLhwVhnL6uk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711792677; c=relaxed/simple; bh=F2ZcqOvsB6gLqMjloYzhDex1+N0kVg8On75ida+P8PM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=l/Mog53OArUxtiDCrU2IrpdBMho0jtlWjqJh5LBd1RdpgJfRpDEcBzxzk+RSWpgHiYgx4fQVuvATfHSpaFYgZ8K/8uFPMQZK3EKcYiP7RN2dqlZmAvV5ZOJz12/nOYxoLKgWgcyAVSDlWpbT+3EEjmrAeHmvPohthgJE9mOmlt4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PUxcK34M; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PUxcK34M" Received: by smtp.kernel.org (Postfix) with ESMTPS id E50C1C433F1; Sat, 30 Mar 2024 09:57:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711792676; bh=F2ZcqOvsB6gLqMjloYzhDex1+N0kVg8On75ida+P8PM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=PUxcK34MA+2z/WsdF6ogE90nplqBeqv41gqT+akDadPUUSdujPJ+thcxS+/j8hG2z ZbApKgti2m/mX1z3P5+thrtCu738EwHD0iy7mAroO88dIY4hnnKFydVIbqLDIQU7Kk kDQlvmcBJ0b+BUIFWK4kA3mOihRbYXFXRlcgSJuGwuG2BP54B7z2iv2Sl8xxwJGynk vblf00ZPuCq7qL131UabB4OrIfsfq111lLUBO0lqoEFKk9Agwg1nuM0e42clZfU0Uy l8j7XmIzh9ejr0bWpACcdj3OUn4+9PoBi69ksh6XAOlUN6RoBF3mc2IcZYJSv8NZv1 zIgYJLq6p+fiA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7C06CD128D; Sat, 30 Mar 2024 09:57:56 +0000 (UTC) From: Sam Ravnborg via B4 Relay Date: Sat, 30 Mar 2024 10:57:37 +0100 Subject: [PATCH 01/10] sparc64: Fix prototype warning for init_vdso_image Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240330-sparc64-warnings-v1-1-37201023ee2f@ravnborg.org> References: <20240330-sparc64-warnings-v1-0-37201023ee2f@ravnborg.org> In-Reply-To: <20240330-sparc64-warnings-v1-0-37201023ee2f@ravnborg.org> To: Andreas Larsson , "David S. Miller" , sparclinux@vger.kernel.org Cc: Nick Bowler , linux-kernel@vger.kernel.org, Arnd Bergmann , Sam Ravnborg X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711792675; l=1128; i=sam@ravnborg.org; s=20230107; h=from:subject:message-id; bh=N9b4/JHlSvx7NLzDXct2fVraabjc7Gt8Q7BQyF6OslM=; b=pqCSBh8K2ae9bOOHPujcfnCWfW2c5NPkgwVpUmfkAUcvddT2O83UJiZhFCoDwOvrMIzqVXWX7XJB OCUNfTFQDk483lfMK9cJTCWlpEz4kMSy069ZmTRUAiKTkt+BsfeR X-Developer-Key: i=sam@ravnborg.org; a=ed25519; pk=R0+pqV7BRYOAeOIGkyOrSNke7arx5y3LkEuNi37YEyU= X-Endpoint-Received: by B4 Relay for sam@ravnborg.org/20230107 with auth_id=22 X-Original-From: Sam Ravnborg Reply-To: sam@ravnborg.org From: Sam Ravnborg Fix the following warning: arch/sparc/vdso/vma.c:246:12: warning: no previous prototype for =E2=80=98i= nit_vdso_image=E2=80=99 init_vdso_image has no users outside vma.c, make it static. Signed-off-by: Sam Ravnborg Cc: Andreas Larsson Cc: "David S. Miller" Acked-by: Arnd Bergmann Reviewed-by: Andreas Larsson Tested-by: Andreas Larsson --- arch/sparc/vdso/vma.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/sparc/vdso/vma.c b/arch/sparc/vdso/vma.c index 1bbf4335de45..bab7a59575e8 100644 --- a/arch/sparc/vdso/vma.c +++ b/arch/sparc/vdso/vma.c @@ -243,8 +243,9 @@ static int stick_patch(const struct vdso_image *image, = struct vdso_elfinfo *e, b * Allocate pages for the vdso and vvar, and copy in the vdso text from the * kernel image. */ -int __init init_vdso_image(const struct vdso_image *image, - struct vm_special_mapping *vdso_mapping, bool elf64) +static int __init init_vdso_image(const struct vdso_image *image, + struct vm_special_mapping *vdso_mapping, + bool elf64) { int cnpages =3D (image->size) / PAGE_SIZE; struct page *dp, **dpp =3D NULL; --=20 2.34.1 From nobody Fri Dec 19 06:57:09 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E3D71EF1E; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711792677; cv=none; b=ebUj+mGUCc9TZTW+w8WOGg4rFz/jG/ZDSQV7VXxYq9CUjjipaVbpoXQ05dnwVIWSix4jfnjYPsCGoBOtl+Sup9kK9WGL/1SalaUdSnfumg1DgV7reDU3VPRMpp4roFOf6bPAPw4uAgcCUBQ3uBySB4D+X/lmap7chvHNKanlUt0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711792677; c=relaxed/simple; bh=xijoPd3AjErmRPkXatkTO/Hnlh2T7fYc4IsuaGUg97Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XMmQbdIweMuiuhWfnTkBMAVcTcG/ILEURB/wQbTcmKH/FCwfm16TaWbH2tvDIFJg0teuE49uKWDhnr6tdl4awmjXxVNR074UC/BQmBeV+8/7nnbYvD3bUA2gmyaCu1CLLXySJYE0TV6KQBah34AEercggKV1a27I+XmXK01Yy8E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VX6X73Wm; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VX6X73Wm" Received: by smtp.kernel.org (Postfix) with ESMTPS id ECB63C43394; Sat, 30 Mar 2024 09:57:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711792677; bh=xijoPd3AjErmRPkXatkTO/Hnlh2T7fYc4IsuaGUg97Y=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=VX6X73WmM/T3D19mA1XNhd0bzQBGg5LEGq3J1S774zbSWnjIRrI2WYdgxxs1qpTzv 6vDXDmzry6xE3YdMnku8kxykz3ZyilCpQxR4Xx376TSEFtn5la02YsCfvKCGGVvaIA OZmbZGBMdxtWu3agFHdGG1QkD7kNemEzSkDLmJXKauI0A/BKCTgdL6POHeFTP+TEKh 5j6E8nooQVom3lJjbO4bREKv/va3oqOLgKyZ2v/iJOSbqVO9eRNVXf8jeiQ2ARlFOG U1ip3sVQjnEkPckT7q0Jlele40Qqgu42m5F235ZY/sgb/tbbeILr6XcM0oWl6T698g wy9AliYhNjHIw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1DE3CD1288; Sat, 30 Mar 2024 09:57:56 +0000 (UTC) From: Sam Ravnborg via B4 Relay Date: Sat, 30 Mar 2024 10:57:38 +0100 Subject: [PATCH 02/10] sparc64: Fix prototype warnings in traps_64.c Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240330-sparc64-warnings-v1-2-37201023ee2f@ravnborg.org> References: <20240330-sparc64-warnings-v1-0-37201023ee2f@ravnborg.org> In-Reply-To: <20240330-sparc64-warnings-v1-0-37201023ee2f@ravnborg.org> To: Andreas Larsson , "David S. Miller" , sparclinux@vger.kernel.org Cc: Nick Bowler , linux-kernel@vger.kernel.org, Arnd Bergmann , Sam Ravnborg X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711792675; l=2153; i=sam@ravnborg.org; s=20230107; h=from:subject:message-id; bh=x35RxU+Vu3bnerMBWt77mDb+LYsbUbJuDZXBkLmdqBE=; b=sJOxVCwvgkeOscu8VipEE3bBj95LtQd0tKjvKMM3RSrFFjm6lQa4M09UYF9bg4ZRp+h4+v/1sLSl XuOHO41RB5PDevDu/UuWE4KoSaaO+G/8s6ha2E+Sj/4ogWGYVRbQ X-Developer-Key: i=sam@ravnborg.org; a=ed25519; pk=R0+pqV7BRYOAeOIGkyOrSNke7arx5y3LkEuNi37YEyU= X-Endpoint-Received: by B4 Relay for sam@ravnborg.org/20230107 with auth_id=22 X-Original-From: Sam Ravnborg Reply-To: sam@ravnborg.org From: Sam Ravnborg Fix the following warnings: arch/sparc/kernel/traps_64.c:253:6: warning: no previous prototype for =E2= =80=98is_no_fault_exception=E2=80=99 arch/sparc/kernel/traps_64.c:2035:6: warning: no previous prototype for =E2= =80=98do_mcd_err=E2=80=99 rch/sparc/kernel/traps_64.c:2153:6: warning: no previous prototype for =E2= =80=98sun4v_nonresum_error_user_handled=E2=80=99 In all cases make the function static as there were no users outside traps_64.c Signed-off-by: Sam Ravnborg Cc: Andreas Larsson Cc: "David S. Miller" Acked-by: Arnd Bergmann Reviewed-by: Andreas Larsson Tested-by: Andreas Larsson --- arch/sparc/kernel/traps_64.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/sparc/kernel/traps_64.c b/arch/sparc/kernel/traps_64.c index dd048023bff5..28cb0d66ab40 100644 --- a/arch/sparc/kernel/traps_64.c +++ b/arch/sparc/kernel/traps_64.c @@ -250,7 +250,7 @@ void sun4v_insn_access_exception_tl1(struct pt_regs *re= gs, unsigned long addr, u sun4v_insn_access_exception(regs, addr, type_ctx); } =20 -bool is_no_fault_exception(struct pt_regs *regs) +static bool is_no_fault_exception(struct pt_regs *regs) { unsigned char asi; u32 insn; @@ -2032,7 +2032,7 @@ static void sun4v_log_error(struct pt_regs *regs, str= uct sun4v_error_entry *ent, /* Handle memory corruption detected error which is vectored in * through resumable error trap. */ -void do_mcd_err(struct pt_regs *regs, struct sun4v_error_entry ent) +static void do_mcd_err(struct pt_regs *regs, struct sun4v_error_entry ent) { if (notify_die(DIE_TRAP, "MCD error", regs, 0, 0x34, SIGSEGV) =3D=3D NOTIFY_STOP) @@ -2150,9 +2150,9 @@ static unsigned long sun4v_get_vaddr(struct pt_regs *= regs) /* Attempt to handle non-resumable errors generated from userspace. * Returns true if the signal was handled, false otherwise. */ -bool sun4v_nonresum_error_user_handled(struct pt_regs *regs, - struct sun4v_error_entry *ent) { - +static bool sun4v_nonresum_error_user_handled(struct pt_regs *regs, + struct sun4v_error_entry *ent) +{ unsigned int attrs =3D ent->err_attrs; =20 if (attrs & SUN4V_ERR_ATTRS_MEMORY) { --=20 2.34.1 From nobody Fri Dec 19 06:57:09 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 259C4200BA; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711792677; cv=none; b=JaaBhaOp7veI9BZzPZd6OWUk4p4+zz/wflDXIYYOmx8B+JtFXUuGFTIb/GCba1RpVQ9SuRge8tICYp3X99oZoENVEme3sevVie274SfPcF0sUY3QIJ8UaTf1SjM9EqPSjchSsRxfV9lP+yjzyfEb78J48u4YIih8p2qTelUROp8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711792677; c=relaxed/simple; bh=2Q6VY0DGMACrjNS3qT1yPJApGJKAhjr7VSLFZ///1Y8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QIWhVhAbazdKochdO0wPupxKNgs2V13Tf+i7h6jiPVhAm8VgObHrNRI5mqJwWrV6zlF2xy+sl5OxKGXEBBAQ4qcOPojIyNGNFeinR11xNjiLGwZwJ4f1EpFWWIG0hrG+oCi0zrXUg2IJaY/RHFAjxP4mt8xcXMc+++CUTXGRBDA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BIKPjrCm; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BIKPjrCm" Received: by smtp.kernel.org (Postfix) with ESMTPS id 03D85C43399; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711792677; bh=2Q6VY0DGMACrjNS3qT1yPJApGJKAhjr7VSLFZ///1Y8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=BIKPjrCmuop+w7k+pVQ/5GQFzv/kREJ+oNMmkgs00gVX+LKr1itZO/AQn8KxMd/02 LbY8k7BsgHrYZSdGsq6OmDswW0zTlFVm0wpq1HfYDqSRLm4VvHsle6oUuBkj0Q290l 7GlyVG4MGAmPPhJQLR62zGs2dRxiUd1ovBphkjrFEzbmZbTaKbw7bnT3skeaIf8pzG g/GbJCjFeGqA3oEyixr+X7xiEJwEMaDj19wcaxq3cR6aknv8pbmeJsc0hQFkHzBNmC Z24U7Ouq3TgBabu+kd1eF5f7q/+L4kcdXpmBOxqFcgegX/tZSDW7FCaMx+ZAu0fZh6 hX3PI6ZheN7qg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id EBF2BCD1290; Sat, 30 Mar 2024 09:57:56 +0000 (UTC) From: Sam Ravnborg via B4 Relay Date: Sat, 30 Mar 2024 10:57:39 +0100 Subject: [PATCH 03/10] sparc64: Fix prototype warning for vmemmap_free Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240330-sparc64-warnings-v1-3-37201023ee2f@ravnborg.org> References: <20240330-sparc64-warnings-v1-0-37201023ee2f@ravnborg.org> In-Reply-To: <20240330-sparc64-warnings-v1-0-37201023ee2f@ravnborg.org> To: Andreas Larsson , "David S. Miller" , sparclinux@vger.kernel.org Cc: Nick Bowler , linux-kernel@vger.kernel.org, Arnd Bergmann , Sam Ravnborg X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711792675; l=1023; i=sam@ravnborg.org; s=20230107; h=from:subject:message-id; bh=+iIEu1z65nIiaVFud5jDAU2EF2qjq+E//QvstvA1vGg=; b=5VSMXsJDe14dfB5oOTmmYLuyPXBP0AEI7kkhlo+yFPQJH9hBDtSPFVLukEaLXfZBrY9t+daDfF0L L8uXsXFQCPOI5uioh9DGaOBI8cOkimdx9zSDJ9alHiqMpCCrM+VV X-Developer-Key: i=sam@ravnborg.org; a=ed25519; pk=R0+pqV7BRYOAeOIGkyOrSNke7arx5y3LkEuNi37YEyU= X-Endpoint-Received: by B4 Relay for sam@ravnborg.org/20230107 with auth_id=22 X-Original-From: Sam Ravnborg Reply-To: sam@ravnborg.org From: Sam Ravnborg Fix the following warning: arch/sparc/mm/init_64.c:2644:6: warning: no previous prototype for =E2=80= =98vmemmap_free=E2=80=99 The function vmemmap_free() is only used for systems with CONFIG_MEMORY_HOTPLUG defined - and sparc64 do not support this. Drop the empty function as it has no users. Signed-off-by: Sam Ravnborg Cc: Andreas Larsson Cc: "David S. Miller" Acked-by: Arnd Bergmann Reviewed-by: Andreas Larsson Tested-by: Andreas Larsson --- arch/sparc/mm/init_64.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/sparc/mm/init_64.c b/arch/sparc/mm/init_64.c index f83017992eaa..5444b515815a 100644 --- a/arch/sparc/mm/init_64.c +++ b/arch/sparc/mm/init_64.c @@ -2640,11 +2640,6 @@ int __meminit vmemmap_populate(unsigned long vstart,= unsigned long vend, =20 return 0; } - -void vmemmap_free(unsigned long start, unsigned long end, - struct vmem_altmap *altmap) -{ -} #endif /* CONFIG_SPARSEMEM_VMEMMAP */ =20 /* These are actually filled in at boot time by sun4{u,v}_pgprot_init() */ --=20 2.34.1 From nobody Fri Dec 19 06:57:09 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5683020DCD; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711792677; cv=none; b=S0ASKBQ6DPznGdOlq6yF6UWylOaksFo0G9k0ib2ScR/qL7mH+unN2UIeEfyHvxsy2byZCFZoqIyD4sT4JK7WuEbR2ReoP1A6Q0uyK3carlHuCZ1EBc+W7/54NI0c/ruJuHuXSHKc8BiZ0g5RE0VRxXhPqV+hWr9q8lTYhb02kVM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711792677; c=relaxed/simple; bh=znSQZ+RM/9bvAWoDcrE1grU/bOJFvpoINbFAcHKmzU0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QTNZBLcShEEPv4qa4Y9F1HW6W0CNR1vTT/hcgCMzC38LfVV3KQXi1lrHzkshGfsAPOiTsPY5qYrPgPjpGnRJ5/Ckf4R3MK6XJJmMzBmX8pdeM7RNvMFL0uGSbKbNTeHBIfzWWRUrYGnyCzPZSz4IK0iJFQvGyj2lIrcVvuyI0iU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Z4rtyxn3; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Z4rtyxn3" Received: by smtp.kernel.org (Postfix) with ESMTPS id 0811DC43390; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711792677; bh=znSQZ+RM/9bvAWoDcrE1grU/bOJFvpoINbFAcHKmzU0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Z4rtyxn3af+SZLBb07MVwPSdN4NPsJHwcKuBTvcxsBh0kkjCr1+RktJCsKdRnMZos lzGoiHnMrgd46S9aOPoWruUUJHEx1wrQLcnDSxfvxDUnmEFJEhdpM+gsMv9+SNynvj uBTZn5BMgvCAHfXPFsWxn8rIZJx9Dl0Xefl44mzEnQE2ZQaGBnCCvV/zYqnBTiJVz9 +8xlet4HhNv7Ybtysq3+P6WoWtpvkkNT7TTNkeXvyLY8OaWUUh/xBit0t2VmUF5Ol/ zfrTC0XT3KWPce0lZYo5+SFU0LI8OWJgH6V+CglwYEUI8Wc7JBDdHwEFSVBUK9lPLp Yz5FwDEa7lvmA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 01AFCCD128E; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) From: Sam Ravnborg via B4 Relay Date: Sat, 30 Mar 2024 10:57:40 +0100 Subject: [PATCH 04/10] sparc64: Fix prototype warning for alloc_irqstack_bootmem Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240330-sparc64-warnings-v1-4-37201023ee2f@ravnborg.org> References: <20240330-sparc64-warnings-v1-0-37201023ee2f@ravnborg.org> In-Reply-To: <20240330-sparc64-warnings-v1-0-37201023ee2f@ravnborg.org> To: Andreas Larsson , "David S. Miller" , sparclinux@vger.kernel.org Cc: Nick Bowler , linux-kernel@vger.kernel.org, Arnd Bergmann , Sam Ravnborg X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711792675; l=877; i=sam@ravnborg.org; s=20230107; h=from:subject:message-id; bh=hR1E8vg8CGDYDik5XN2GQOk33c8EjJhA30OsWe34a5M=; b=5y52pp+9cWGwXXEVdYXKKaopN1VKfX8WuRlPMgDaXdoQ0CqhfOyr9569kP/JZSl9fR9ZcPdeOem5 5YiL5Ib2DKwFLPLfipiRNfAvXMwNmevHWCfz6YrVABfnmoBVIau8 X-Developer-Key: i=sam@ravnborg.org; a=ed25519; pk=R0+pqV7BRYOAeOIGkyOrSNke7arx5y3LkEuNi37YEyU= X-Endpoint-Received: by B4 Relay for sam@ravnborg.org/20230107 with auth_id=22 X-Original-From: Sam Ravnborg Reply-To: sam@ravnborg.org From: Sam Ravnborg Fix the following warning: arch/sparc/kernel/setup_64.c:602:13: warning: no previous prototype for =E2= =80=98alloc_irqstack_bootmem=E2=80=99 The function alloc_irqstack_bootmem had no users outside setup_64.c so declare it static. Signed-off-by: Sam Ravnborg Cc: Andreas Larsson Cc: "David S. Miller" Acked-by: Arnd Bergmann Reviewed-by: Andreas Larsson Tested-by: Andreas Larsson --- arch/sparc/kernel/setup_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sparc/kernel/setup_64.c b/arch/sparc/kernel/setup_64.c index 6a4797dec34b..1d519f18d2b2 100644 --- a/arch/sparc/kernel/setup_64.c +++ b/arch/sparc/kernel/setup_64.c @@ -599,7 +599,7 @@ static void __init init_sparc64_elf_hwcap(void) pause_patch(); } =20 -void __init alloc_irqstack_bootmem(void) +static void __init alloc_irqstack_bootmem(void) { unsigned int i, node; =20 --=20 2.34.1 From nobody Fri Dec 19 06:57:09 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 49D12200DA; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711792677; cv=none; b=uMpLqWXCLVtz4fQaIvlNM2Ofhp/wV5QAciXitAUA4I2TGy9PZH+qNRclpGsAfAlGCdmuqdyy3i8yqnH4KHLoDBVjQpeD6aBkJn1mcR8HxAaxnLkLa/GVhMNZ7z93uN+CHsyf3gG+ozltxhGYpwzGtzrsg0/jbyvnOYD2+X5z600= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711792677; c=relaxed/simple; bh=T3eeH+zoBspeTvtzab9Ckmy0OMDrNqIq1L29N8s6Q9U=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=gjnJ4LRjW2v+xMTfEaQ8L+N/8iT+dpdwC+q6yYTExMnBku0lG90y4KKh6a1TMZWeogzt/nxuQeq/SbxVfA8sb6+B7PphidGD6YXznkem8WYaAgNa48FA9JYm5ZiGkA7xijN6vgvo3Q6AbTnhdymMeB/NFnE0M8NQPw/7/hvohVQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FMzKNsWc; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FMzKNsWc" Received: by smtp.kernel.org (Postfix) with ESMTPS id 14627C433B1; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711792677; bh=T3eeH+zoBspeTvtzab9Ckmy0OMDrNqIq1L29N8s6Q9U=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=FMzKNsWcXILkg9NWP1RWTaH1sDIfOWEVXCZqyKVhJyGNJeV5I9ntBz8pNirUMV+rw 7+yP/7PGQSHFc4wEaM1maodIVNi5iSUBTvsmhaHdKR3vu+WFeU3C7uTQW+e9KbolUs 6NqlLfB4XuyYsFeIe8wV1J12hfpgjlz7YB8e1o0Fzw2NKHn7+W0/SB/Hh9AI+Sh5Dx jUE0ac0twcHgKNx1yZC8vQOKuUKihoQFmUtjSFT+zKhMS8R0FNYqjKnQnzYJyc5xAr 4/hgpNgeZQGLZNffUGVPlAAAFnhTH60fP9KSdwnTAAoHRFnqKey4f9AsZ+z4Ge8LlP ouHMS1W257asw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0BB3DCD1291; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) From: Sam Ravnborg via B4 Relay Date: Sat, 30 Mar 2024 10:57:41 +0100 Subject: [PATCH 05/10] sparc64: Fix prototype warning for uprobe_trap Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240330-sparc64-warnings-v1-5-37201023ee2f@ravnborg.org> References: <20240330-sparc64-warnings-v1-0-37201023ee2f@ravnborg.org> In-Reply-To: <20240330-sparc64-warnings-v1-0-37201023ee2f@ravnborg.org> To: Andreas Larsson , "David S. Miller" , sparclinux@vger.kernel.org Cc: Nick Bowler , linux-kernel@vger.kernel.org, Arnd Bergmann , Sam Ravnborg X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711792675; l=1615; i=sam@ravnborg.org; s=20230107; h=from:subject:message-id; bh=sf6irUkOpJPOHLMvdHazAyqgENdDMFjW8tXTw6Ir0YU=; b=Gfn8FAdb7ELFmL9Xcub36vvtnz7E7OCSYIXAo8fV5xyY4x0+njqdmCR+uM9iEVVY8///Z73EpFA4 RPXfaePaAJcWQc+Vj5Y6mTgZtSJLBCRZRV1jUnnsJYbTcN+SmQ1Y X-Developer-Key: i=sam@ravnborg.org; a=ed25519; pk=R0+pqV7BRYOAeOIGkyOrSNke7arx5y3LkEuNi37YEyU= X-Endpoint-Received: by B4 Relay for sam@ravnborg.org/20230107 with auth_id=22 X-Original-From: Sam Ravnborg Reply-To: sam@ravnborg.org From: Sam Ravnborg Fix the following warning: arch/sparc/kernel/uprobes.c:237:17: warning: no previous prototype for =E2= =80=98uprobe_trap=E2=80=99 Add a prototype to kernel/kernel.h to silence the warning. This is a fix already used for other trap handlers. Signed-off-by: Sam Ravnborg Cc: Andreas Larsson Cc: "David S. Miller" Acked-by: Arnd Bergmann Reviewed-by: Andreas Larsson Tested-by: Andreas Larsson --- arch/sparc/kernel/kernel.h | 4 ++++ arch/sparc/kernel/uprobes.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/arch/sparc/kernel/kernel.h b/arch/sparc/kernel/kernel.h index a8fb7c0bf053..8328a3b78a44 100644 --- a/arch/sparc/kernel/kernel.h +++ b/arch/sparc/kernel/kernel.h @@ -40,6 +40,10 @@ int handle_popc(u32 insn, struct pt_regs *regs); void handle_lddfmna(struct pt_regs *regs, unsigned long sfar, unsigned lon= g sfsr); void handle_stdfmna(struct pt_regs *regs, unsigned long sfar, unsigned lon= g sfsr); =20 +/* uprobes.c */ +asmlinkage void uprobe_trap(struct pt_regs *regs, + unsigned long trap_level); + /* smp_64.c */ void __irq_entry smp_call_function_client(int irq, struct pt_regs *regs); void __irq_entry smp_call_function_single_client(int irq, struct pt_regs *= regs); diff --git a/arch/sparc/kernel/uprobes.c b/arch/sparc/kernel/uprobes.c index 1a0600206bf5..305017bec164 100644 --- a/arch/sparc/kernel/uprobes.c +++ b/arch/sparc/kernel/uprobes.c @@ -18,6 +18,8 @@ =20 #include =20 +#include "kernel.h" + /* Compute the address of the breakpoint instruction and return it. * * Note that uprobe_get_swbp_addr is defined as a weak symbol in --=20 2.34.1 From nobody Fri Dec 19 06:57:09 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4BC98208A2; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711792677; cv=none; b=Ii9BXZPClftik0kkF0whExwHiW0cistUOd2wJG/CCuxYn1beKAc6aHe8Oq15eQNNFwlp8PdMRdGwvEjOuWIYlPxk215MRvRIkQx8b1+rhz6TLdbOPJQFnUY570asBJJVB0wCQ7nL9cMj/Zayds0MXSO8VdjSqotK5Ckw7NEKNl8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711792677; c=relaxed/simple; bh=RV9r2ML9o3E1SdglYl1CXcwBgIOMSUNtjyseYqlJ2XA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Zz9IhkwPYKOemu+w4qCziNefRSdzz9p/tnMhsFme+D6h+14cry6XhltaKv8hjp+BAQz5BQAbL9zS/rceHk8RVqX8PsEwT6AEYGovv3klCs8UX5kAOkrRjjfrWKsKed3e3auh00oh+GLkCuxi7WVtU3q19QQ/E+EBy4DaGdBSouU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oO4lNsou; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oO4lNsou" Received: by smtp.kernel.org (Postfix) with ESMTPS id 1EFEEC433A6; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711792677; bh=RV9r2ML9o3E1SdglYl1CXcwBgIOMSUNtjyseYqlJ2XA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=oO4lNsouDlCi7x3tGy4jRlm5bfoPpeFNXFCXYmonSDQLapIcaGBbX0/CMX4ScUZvr 2tpBJ4vEWQK2c7gFhTvDUxQvn154gwgjPrFWvg/bm8s0hGAq48ryGIo/7v+h+WsKrW khx8Q26y7F4p4bnD/o0qajzSbxHm+vWdyL8Gwl0HNbXPmwf0qy7+ByIeEnIhqYTFKx CPxgdB+tJegILuc64So3AmfzTDlo6QbUtCYCzf8xoR+Givx9Dw+44qQHNyelUa21Fk 8pl0yaM7qllFkT6KGdl92SsbX2cSQXIFHqf0BGJeb/HprHvOOYmpgasE62E8zAGb0x bFQfiZeiyalhw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 16568CD128D; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) From: Sam Ravnborg via B4 Relay Date: Sat, 30 Mar 2024 10:57:42 +0100 Subject: [PATCH 06/10] sparc64: Fix prototype warning for dma_4v_iotsb_bind Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240330-sparc64-warnings-v1-6-37201023ee2f@ravnborg.org> References: <20240330-sparc64-warnings-v1-0-37201023ee2f@ravnborg.org> In-Reply-To: <20240330-sparc64-warnings-v1-0-37201023ee2f@ravnborg.org> To: Andreas Larsson , "David S. Miller" , sparclinux@vger.kernel.org Cc: Nick Bowler , linux-kernel@vger.kernel.org, Arnd Bergmann , Sam Ravnborg X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711792675; l=1078; i=sam@ravnborg.org; s=20230107; h=from:subject:message-id; bh=ZJnDEoYRR+6aaZk7EEvtgtfnCnQfrvRZPpKL04kGYG8=; b=+P73wCmF6fdM+Yl/OL7n1h00X5/H9eGLRS8OkyaFLZ3lCyNQIMamva8JjdBzuzJz3RamkdNu+XXX HCDuKRN7BKCvLiNrDhVb2cA849WRpYW22u+gqscHluUdZ1SPyBf2 X-Developer-Key: i=sam@ravnborg.org; a=ed25519; pk=R0+pqV7BRYOAeOIGkyOrSNke7arx5y3LkEuNi37YEyU= X-Endpoint-Received: by B4 Relay for sam@ravnborg.org/20230107 with auth_id=22 X-Original-From: Sam Ravnborg Reply-To: sam@ravnborg.org From: Sam Ravnborg Fix the following warning: sparc/kernel/pci_sun4v.c:259:15: warning: no previous prototype for =E2=80= =98dma_4v_iotsb_bind=E2=80=99 The function dma_4v_iotsb_bind is not used outside the file, so declare it static. Signed-off-by: Sam Ravnborg Cc: Andreas Larsson Cc: "David S. Miller" Acked-by: Arnd Bergmann Reviewed-by: Andreas Larsson Tested-by: Andreas Larsson --- arch/sparc/kernel/pci_sun4v.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/sparc/kernel/pci_sun4v.c b/arch/sparc/kernel/pci_sun4v.c index 083e5f05a7f0..b720b21ccfbd 100644 --- a/arch/sparc/kernel/pci_sun4v.c +++ b/arch/sparc/kernel/pci_sun4v.c @@ -256,9 +256,9 @@ static void *dma_4v_alloc_coherent(struct device *dev, = size_t size, return NULL; } =20 -unsigned long dma_4v_iotsb_bind(unsigned long devhandle, - unsigned long iotsb_num, - struct pci_bus *bus_dev) +static unsigned long dma_4v_iotsb_bind(unsigned long devhandle, + unsigned long iotsb_num, + struct pci_bus *bus_dev) { struct pci_dev *pdev; unsigned long err; --=20 2.34.1 From nobody Fri Dec 19 06:57:09 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4BCD3208B6; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711792677; cv=none; b=Y8MZ/ai17tIfKV3SOXN4whHZrOx4W1mSmBncyZg4Vv0JdXOmL+pdJDnJai3bFgXO2c2iXhghjN736sacLNdt/ls9LQwhXwB+KpEbUtPWAIqBH5M/phK3gAkEUhDwTWtSZMkIgK73He+4tm8BJchNDgcpFdz8wEGKbSz97b8ynvg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711792677; c=relaxed/simple; bh=lhcM6K3TrpZBNI30rUUArfcpy+N8YiTmUvxeRdnrB5k=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QtRpjaxQYOX4RyPcxSNxQLaqMWYFU51tD6z/Y+NYFxUX/qTFwyiEif1tXLniCQi41PYxagpKFuyY0J3jQfzBgPPGUI8LGUWCpnoGSM00GtUWBddLz1yl6XUx1dxKj8bBatReDQzCqqWMZ1LHIJWrLmQ/qQOmK3HQROQbEQCye6I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eIiZZARl; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eIiZZARl" Received: by smtp.kernel.org (Postfix) with ESMTPS id 277F1C433B2; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711792677; bh=lhcM6K3TrpZBNI30rUUArfcpy+N8YiTmUvxeRdnrB5k=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=eIiZZARle/xlgXKw20QrbbCRJt0vYL5/z4leI4zsHCLp9cNlF/mJ2/PduJARKA40b JIfsBYRKqn2if1aVgQzQzuV8bxUAWn6ZVpzLWSzpdBokkYJd3IpLnZA/Xw7z7QkpK+ sQFWWycg99PAhY9A3214AkVS/qg2aqj/CF8qCNDCHXgupZ4vGDoI/1IkyiS+UCoc6S NK1dw4+vPKBr4L6jl/6D+MhZ2C8G8T6V0xURZ7Q9CeXdI2ryDja9DNGExmv1rtK41Y u3h9Sdcoy8Me1JijmJkLJ79YOBNGeDkF3yGIrVsohxoMO4fRLeM4VHI15NWg88ohmc BaM6ONovnIpZA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 206F3CD1290; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) From: Sam Ravnborg via B4 Relay Date: Sat, 30 Mar 2024 10:57:43 +0100 Subject: [PATCH 07/10] sparc64: Fix prototype warnings in adi_64.c Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240330-sparc64-warnings-v1-7-37201023ee2f@ravnborg.org> References: <20240330-sparc64-warnings-v1-0-37201023ee2f@ravnborg.org> In-Reply-To: <20240330-sparc64-warnings-v1-0-37201023ee2f@ravnborg.org> To: Andreas Larsson , "David S. Miller" , sparclinux@vger.kernel.org Cc: Nick Bowler , linux-kernel@vger.kernel.org, Arnd Bergmann , Sam Ravnborg X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711792675; l=1998; i=sam@ravnborg.org; s=20230107; h=from:subject:message-id; bh=4x3bdFE7JXKdL9191J0m+VT2gS8HRbYF0N4eZvrNsnU=; b=KqifCim/T+astHCsES+LmkrKBcWtdEitfmvxz1BoClBokgS1XQlcr/JHLjv9RGX/Od9w5o4aOkH0 f0LJ8jV5CPZjNphmsQqyVbM3ErgZW6krl3I5AYTISzKCQum0oi8T X-Developer-Key: i=sam@ravnborg.org; a=ed25519; pk=R0+pqV7BRYOAeOIGkyOrSNke7arx5y3LkEuNi37YEyU= X-Endpoint-Received: by B4 Relay for sam@ravnborg.org/20230107 with auth_id=22 X-Original-From: Sam Ravnborg Reply-To: sam@ravnborg.org From: Sam Ravnborg Fix the following warnings: arch/sparc/kernel/adi_64.c:124:21: warning: no previous prototype for =E2= =80=98find_tag_store=E2=80=99 arch/sparc/kernel/adi_64.c:156:21: warning: no previous prototype for =E2= =80=98alloc_tag_store=E2=80=99 arch/sparc/kernel/adi_64.c:299:6: warning: no previous prototype for =E2=80= =98del_tag_store=E2=80=99 None of the functions were used outside the file, so declare them static. Signed-off-by: Sam Ravnborg Cc: Andreas Larsson Cc: "David S. Miller" Acked-by: Arnd Bergmann Reviewed-by: Andreas Larsson Tested-by: Andreas Larsson --- arch/sparc/kernel/adi_64.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/sparc/kernel/adi_64.c b/arch/sparc/kernel/adi_64.c index ce332942de2d..e0e4fc527b24 100644 --- a/arch/sparc/kernel/adi_64.c +++ b/arch/sparc/kernel/adi_64.c @@ -121,9 +121,9 @@ void __init mdesc_adi_init(void) mdesc_release(hp); } =20 -tag_storage_desc_t *find_tag_store(struct mm_struct *mm, - struct vm_area_struct *vma, - unsigned long addr) +static tag_storage_desc_t *find_tag_store(struct mm_struct *mm, + struct vm_area_struct *vma, + unsigned long addr) { tag_storage_desc_t *tag_desc =3D NULL; unsigned long i, max_desc, flags; @@ -153,9 +153,9 @@ tag_storage_desc_t *find_tag_store(struct mm_struct *mm, return tag_desc; } =20 -tag_storage_desc_t *alloc_tag_store(struct mm_struct *mm, - struct vm_area_struct *vma, - unsigned long addr) +static tag_storage_desc_t *alloc_tag_store(struct mm_struct *mm, + struct vm_area_struct *vma, + unsigned long addr) { unsigned char *tags; unsigned long i, size, max_desc, flags; @@ -296,7 +296,7 @@ tag_storage_desc_t *alloc_tag_store(struct mm_struct *m= m, return tag_desc; } =20 -void del_tag_store(tag_storage_desc_t *tag_desc, struct mm_struct *mm) +static void del_tag_store(tag_storage_desc_t *tag_desc, struct mm_struct *= mm) { unsigned long flags; unsigned char *tags =3D NULL; --=20 2.34.1 From nobody Fri Dec 19 06:57:09 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 81F0D241EC; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711792677; cv=none; b=WnQaqdT6gJ6xPMb6iXHfshgNsgC4QNR3rTb41p8ZRBWzWIWSTq5BXGB0IGoFs3czvwrQLBOk+GtduuIGHkh0zHu4BYYXj1e25eonQAzi6KcRX7eQ41Fv62lojktFrqsaPXnr8ljZh52PujiLgZRlSemASdFSvIFhnEygfArr+WU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711792677; c=relaxed/simple; bh=2x1IekDisWrxO1QZCgeGBonkq2kpGwPfzqPpLTwCkTg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=stcMCBPs5GSqLIjz8gk+bE6zGBMIRhI9GUcZ99PQ6Sb1VEFLwrQq2CR5a80DasE+7rULWTIdnzFV+ehZXrGfPkOT/vdd7kJYcVPggvnQOl46ZV+21yFOvI8H/M7bVos5+fCUycVBnS0CupRZoEsYKMYVzGPdxYHe1xXMZvWy1uI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LWqa0DJA; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LWqa0DJA" Received: by smtp.kernel.org (Postfix) with ESMTPS id 31874C43330; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711792677; bh=2x1IekDisWrxO1QZCgeGBonkq2kpGwPfzqPpLTwCkTg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=LWqa0DJAIsItDuvPm2rnGmxWDwcB8YCM0NFLG6hA1HsHVE5v0mkCqwQGhUX8wGa6K kpeVYt3WJOP+J9BEL2nGQSgY2788DWykWZXI82ZqgTSYQDzzk4j8rOUv95SeS6mEUe oCSpesB1M62aQCnOisnw5yM5KOHQwfFDV9hJZsFd7mB8ynJuXJwAC1U1KoxAgrWOgm azWienMxItEXyGQ8u7iH7KXkMGs9FmwgjbZn3wNf0yh3mwlo+lhdpZTGtut3taQ1g4 2X4c4171aqYPEY2HTTUWO51jm+3kLWE80W3Ozc26x0vasj4pQ8sGR7ribuEsX0Qg3a ssYxPanNCpVog== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2975FCD1288; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) From: Sam Ravnborg via B4 Relay Date: Sat, 30 Mar 2024 10:57:44 +0100 Subject: [PATCH 08/10] sparc64: Fix prototype warning for sched_clock Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240330-sparc64-warnings-v1-8-37201023ee2f@ravnborg.org> References: <20240330-sparc64-warnings-v1-0-37201023ee2f@ravnborg.org> In-Reply-To: <20240330-sparc64-warnings-v1-0-37201023ee2f@ravnborg.org> To: Andreas Larsson , "David S. Miller" , sparclinux@vger.kernel.org Cc: Nick Bowler , linux-kernel@vger.kernel.org, Arnd Bergmann , Sam Ravnborg X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711792675; l=793; i=sam@ravnborg.org; s=20230107; h=from:subject:message-id; bh=LqRShLF2pPHi8lE2rdN92NEyqocrs1j4uVYYbMfSLj4=; b=PMlAy600lZhsdddNHFih9ANgCUb2ySEAKULe4KxaXQj8cNuE9rH8bUgekUv0O74HWlQK3QFI8FQT 6K32pHisBTZybIa4zA2VFCw4AylacJr627XuYudCqRPoXxaNfq7O X-Developer-Key: i=sam@ravnborg.org; a=ed25519; pk=R0+pqV7BRYOAeOIGkyOrSNke7arx5y3LkEuNi37YEyU= X-Endpoint-Received: by B4 Relay for sam@ravnborg.org/20230107 with auth_id=22 X-Original-From: Sam Ravnborg Reply-To: sam@ravnborg.org From: Sam Ravnborg Fix the following warning: arch/sparc/kernel/time_64.c:880:20: warning: no previous prototype for =E2= =80=98sched_clock=E2=80=99 Add the missing include to pick up the prototype. Signed-off-by: Sam Ravnborg Cc: Andreas Larsson Cc: "David S. Miller" Acked-by: Arnd Bergmann Reviewed-by: Andreas Larsson Tested-by: Andreas Larsson --- arch/sparc/kernel/time_64.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sparc/kernel/time_64.c b/arch/sparc/kernel/time_64.c index 89fb05f90609..60f1c8cc5363 100644 --- a/arch/sparc/kernel/time_64.c +++ b/arch/sparc/kernel/time_64.c @@ -33,6 +33,7 @@ #include #include #include +#include #include =20 #include --=20 2.34.1 From nobody Fri Dec 19 06:57:09 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 81F3224A03; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711792677; cv=none; b=YyZtDEsFziNpiYfe8pTUXuTo2EoAKykXWVJWAAP0Ycf4dBeBSMLLOTccIR2l05hxoeeAZzKu5sXfB6NzKdt8s+v5rEZeZncFQdSEh9ReKgE7I0i/trEbtB8Y/y1UOXlff6IKwrg0hyQNVMxxyRhL79WPXQpCj+EpITLZJKHMCA8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711792677; c=relaxed/simple; bh=bebuIwcUBNMtYbSzdkVNlj0yN3Mms/4B8BSns5s9jWM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CGytvjMe4oCbrEIMB9oeWTl8ysc6giLPLB03B4hi9D6j+kW/pg6ScXKQ7WgXiCdMpSYdOPdUXlKrAJCft/7KNiFSV9TT52Qj3rJ91G2+Zcrmd1g3O/pM34tn7YF61JJKSC4kDCf4nUKNPTkbQIUYeKnR+QeA1Ji+hBWrArySujw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bBkJQNjm; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bBkJQNjm" Received: by smtp.kernel.org (Postfix) with ESMTPS id 3BC5DC43609; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711792677; bh=bebuIwcUBNMtYbSzdkVNlj0yN3Mms/4B8BSns5s9jWM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=bBkJQNjm6+iwK7Oo9ZKoxNPmM3KMVEUXraK+5rpydUUIlhQ3PfN0XSdH7C9+wPHmR cBcCs8E6sUbfGsTKzwQBSJwE14ia6ZB7xJNCzTpEsroVuYh4iDEZOCVBZ1Kol6VJ2o kA4QD/IKVxnYS23KTndmvSLuJZ+uL9d3F7EvR1pUCjZIYgflD8Uk9Ewdmg0UtJzWXs fCirwBwTgORYFKUMCZufd89cmOjNcTA4VqNEMFfH+IIBqj2m+hSooSiMbqcUjtQetj gSMc4ScZ+QKsfIeWfbYS//UIfMf3dfxZ6bnDc7SBo3nPjTD9dngiVwJztg8miM0UZE FRgqmQOKOMxWw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34F4FCD128E; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) From: Sam Ravnborg via B4 Relay Date: Sat, 30 Mar 2024 10:57:45 +0100 Subject: [PATCH 09/10] sparc64: Fix number of online CPUs Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240330-sparc64-warnings-v1-9-37201023ee2f@ravnborg.org> References: <20240330-sparc64-warnings-v1-0-37201023ee2f@ravnborg.org> In-Reply-To: <20240330-sparc64-warnings-v1-0-37201023ee2f@ravnborg.org> To: Andreas Larsson , "David S. Miller" , sparclinux@vger.kernel.org Cc: Nick Bowler , linux-kernel@vger.kernel.org, Arnd Bergmann , Atish Patra , Sam Ravnborg , stable@vger.kernel.org, Bob Picco , Vijay Kumar X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711792675; l=4552; i=sam@ravnborg.org; s=20230107; h=from:subject:message-id; bh=dn/Iq8dROBgEtbrmvGqdZDKLIQGxfIlMZA5xlo5LiLk=; b=Mm0tyHZeXe/t+CUAz0TIDK29Bnh9pWuLw9N9PngOUrSliPSuEf3HaRhoErcq25a4YyE9mnLixJng DR+0exWWCpJJ9L0PynCkfmAWNCYEio9DUJVIyayOkKqpOy3h29V7 X-Developer-Key: i=sam@ravnborg.org; a=ed25519; pk=R0+pqV7BRYOAeOIGkyOrSNke7arx5y3LkEuNi37YEyU= X-Endpoint-Received: by B4 Relay for sam@ravnborg.org/20230107 with auth_id=22 X-Original-From: Sam Ravnborg Reply-To: sam@ravnborg.org From: Sam Ravnborg Nick Bowler reported: When using newer kernels on my Ultra 60 with dual 450MHz UltraSPARC-II CPUs, I noticed that only CPU 0 comes up, while older kernels (including 4.7) are working fine with both CPUs. I bisected the failure to this commit: 9b2f753ec23710aa32c0d837d2499db92fe9115b is the first bad commit commit 9b2f753ec23710aa32c0d837d2499db92fe9115b Author: Atish Patra Date: Thu Sep 15 14:54:40 2016 -0600 sparc64: Fix cpu_possible_mask if nr_cpus is set This is a small change that reverts very easily on top of 5.18: there is just one trivial conflict. Once reverted, both CPUs work again. Maybe this is related to the fact that the CPUs on this system are numbered CPU0 and CPU2 (there is no CPU1)? The current code that adjust cpu_possible based on nr_cpu_ids do not take into account that CPU's may not come one after each other. Move the chech to the function that setup the cpu_possible mask so there is no need to adjust it later. Signed-off-by: Sam Ravnborg Fixes: 9b2f753ec237 ("sparc64: Fix cpu_possible_mask if nr_cpus is set") Reported-by: Nick Bowler Tested-by: Nick Bowler Link: https://lore.kernel.org/sparclinux/20201009161924.c8f031c079dd8529413= 07870@gmx.de/ Link: https://lore.kernel.org/all/CADyTPEwt=3DZNams+1bpMB1F9w_vUdPsGCt92DBQ= xxq_VtaLoTdw@mail.gmail.com/ Cc: # v4.8+ Cc: Andreas Larsson Cc: "David S. Miller" Cc: Atish Patra Cc: Bob Picco Cc: Vijay Kumar Cc: David S. Miller Acked-by: Arnd Bergmann Reviewed-by: Andreas Larsson Tested-by: Andreas Larsson --- arch/sparc/include/asm/smp_64.h | 2 -- arch/sparc/kernel/prom_64.c | 4 +++- arch/sparc/kernel/setup_64.c | 1 - arch/sparc/kernel/smp_64.c | 14 -------------- 4 files changed, 3 insertions(+), 18 deletions(-) diff --git a/arch/sparc/include/asm/smp_64.h b/arch/sparc/include/asm/smp_6= 4.h index 505b6700805d..0964fede0b2c 100644 --- a/arch/sparc/include/asm/smp_64.h +++ b/arch/sparc/include/asm/smp_64.h @@ -47,7 +47,6 @@ void arch_send_call_function_ipi_mask(const struct cpumas= k *mask); int hard_smp_processor_id(void); #define raw_smp_processor_id() (current_thread_info()->cpu) =20 -void smp_fill_in_cpu_possible_map(void); void smp_fill_in_sib_core_maps(void); void __noreturn cpu_play_dead(void); =20 @@ -77,7 +76,6 @@ void __cpu_die(unsigned int cpu); #define smp_fill_in_sib_core_maps() do { } while (0) #define smp_fetch_global_regs() do { } while (0) #define smp_fetch_global_pmu() do { } while (0) -#define smp_fill_in_cpu_possible_map() do { } while (0) #define smp_init_cpu_poke() do { } while (0) #define scheduler_poke() do { } while (0) =20 diff --git a/arch/sparc/kernel/prom_64.c b/arch/sparc/kernel/prom_64.c index 998aa693d491..ba82884cb92a 100644 --- a/arch/sparc/kernel/prom_64.c +++ b/arch/sparc/kernel/prom_64.c @@ -483,7 +483,9 @@ static void *record_one_cpu(struct device_node *dp, int= cpuid, int arg) ncpus_probed++; #ifdef CONFIG_SMP set_cpu_present(cpuid, true); - set_cpu_possible(cpuid, true); + + if (num_possible_cpus() < nr_cpu_ids) + set_cpu_possible(cpuid, true); #endif return NULL; } diff --git a/arch/sparc/kernel/setup_64.c b/arch/sparc/kernel/setup_64.c index 1d519f18d2b2..63615f5c99b4 100644 --- a/arch/sparc/kernel/setup_64.c +++ b/arch/sparc/kernel/setup_64.c @@ -671,7 +671,6 @@ void __init setup_arch(char **cmdline_p) =20 paging_init(); init_sparc64_elf_hwcap(); - smp_fill_in_cpu_possible_map(); /* * Once the OF device tree and MDESC have been setup and nr_cpus has * been parsed, we know the list of possible cpus. Therefore we can diff --git a/arch/sparc/kernel/smp_64.c b/arch/sparc/kernel/smp_64.c index f3969a3600db..e50c38eba2b8 100644 --- a/arch/sparc/kernel/smp_64.c +++ b/arch/sparc/kernel/smp_64.c @@ -1220,20 +1220,6 @@ void __init smp_setup_processor_id(void) xcall_deliver_impl =3D hypervisor_xcall_deliver; } =20 -void __init smp_fill_in_cpu_possible_map(void) -{ - int possible_cpus =3D num_possible_cpus(); - int i; - - if (possible_cpus > nr_cpu_ids) - possible_cpus =3D nr_cpu_ids; - - for (i =3D 0; i < possible_cpus; i++) - set_cpu_possible(i, true); - for (; i < NR_CPUS; i++) - set_cpu_possible(i, false); -} - void smp_fill_in_sib_core_maps(void) { unsigned int i; --=20 2.34.1 From nobody Fri Dec 19 06:57:09 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 77520224DA; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711792677; cv=none; b=a/sjNxlAFIW7Ou5DJBefuJMgUNDJWmOisYl6sSt8Z42gT02ETeWUhNN/owcIH0cunOcWrn1xXQpu6ikjtTt/ogEgNQgtYkifz+8I5jOqAsc0gdW6FO1XISUkf3yaZ1xlFJII4Y8xQszChq0l70sf9rVHSFbFzbQkIcC4aPgZDts= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711792677; c=relaxed/simple; bh=AVnxMaD8P3lGJwIeugtBUSpep/nX1zh+KPd+aSmXedU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QXCNmd3SbBjkWK0umrxmpZblmffqWFEzHw5HMGwimqE/uTV+qxC3ZsUZjTQBveNXtNSqksN5ncnE9avmGYjiNELuctuMfS/v4qNTR8ZMMo4dheCMxF0W9/MTsSkMhtMDwszWKuCLlIsAIIzNZCBHcKaDVTcVCxmrchwtz2g16eo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=odzuW5+u; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="odzuW5+u" Received: by smtp.kernel.org (Postfix) with ESMTPS id 45DC7C43601; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711792677; bh=AVnxMaD8P3lGJwIeugtBUSpep/nX1zh+KPd+aSmXedU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=odzuW5+u/B/jYnzavgkMaEERbZf1qIKGj60zuug5SPLmJS1ofIqgQgZ9v7N+Eh2pO GwkMdXXATupfvRYwTPRR7iOlWSqbsmwDTcO8W1/fK40xmak4stFtBUEL+aqwnLrJ2J gNfxhXQ8IwvK1+2RnYOtOCk6tdWIidIJvjcgf/vHmZXJXH+nfCptSnmwgBt8KwtMAP Pqw5kc22Pmh0FHy74R0U+LFgDn41ebLXdwVaFeOrBLDswJrvs12dgcOhxF9Jz7mcRh nsa806NfOm10v+TDYt2roJYQXbvCsP+4FNLhtnikD5fX0ZSPwpnkljYWWqndDmkvGY zFSSJD3G+l0LA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F67ECD1290; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) From: Sam Ravnborg via B4 Relay Date: Sat, 30 Mar 2024 10:57:46 +0100 Subject: [PATCH 10/10] sparc64: Fix prototype warnings for vdso Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240330-sparc64-warnings-v1-10-37201023ee2f@ravnborg.org> References: <20240330-sparc64-warnings-v1-0-37201023ee2f@ravnborg.org> In-Reply-To: <20240330-sparc64-warnings-v1-0-37201023ee2f@ravnborg.org> To: Andreas Larsson , "David S. Miller" , sparclinux@vger.kernel.org Cc: Nick Bowler , linux-kernel@vger.kernel.org, Arnd Bergmann , Sam Ravnborg X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711792675; l=2638; i=sam@ravnborg.org; s=20230107; h=from:subject:message-id; bh=R3MJg/E/GhMxnu0wstTitJ5mJt9vPs+kNGIj3nVyBSg=; b=4VEx0rmCrYuq7fkcXCME2F2VaTvqyGizSK4moRhBlf1ov0rAPRrYYeczpL2dZngQSGnIn9AKOHKW VHWtcmrbCPy4hZGFW+ksDOU06O+Ax51RL6YmSQBF7KdC78OA3ryF X-Developer-Key: i=sam@ravnborg.org; a=ed25519; pk=R0+pqV7BRYOAeOIGkyOrSNke7arx5y3LkEuNi37YEyU= X-Endpoint-Received: by B4 Relay for sam@ravnborg.org/20230107 with auth_id=22 X-Original-From: Sam Ravnborg Reply-To: sam@ravnborg.org From: Sam Ravnborg Fix the following warnings: arch/sparc/vdso/vclock_gettime.c:254:1: error: no previous prototype for = =E2=80=98__vdso_clock_gettime=E2=80=99 arch/sparc/vdso/vclock_gettime.c:282:1: error: no previous prototype for = =E2=80=98__vdso_clock_gettime_stick=E2=80=99 arch/sparc/vdso/vclock_gettime.c:307:1: error: no previous prototype for = =E2=80=98__vdso_gettimeofday=E2=80=99 arch/sparc/vdso/vclock_gettime.c:343:1: error: no previous prototype for = =E2=80=98__vdso_gettimeofday_stick=E2=80=99 arch/sparc/vdso/vdso32/../vclock_gettime.c:254:1: error: no previous protot= ype for =E2=80=98__vdso_clock_gettime=E2=80=99 arch/sparc/vdso/vdso32/../vclock_gettime.c:282:1: error: no previous protot= ype for =E2=80=98__vdso_clock_gettime_stick=E2=80=99 arch/sparc/vdso/vdso32/../vclock_gettime.c:307:1: error: no previous protot= ype for =E2=80=98__vdso_gettimeofday=E2=80=99 arch/sparc/vdso/vdso32/../vclock_gettime.c:343:1: error: no previous protot= ype for =E2=80=98__vdso_gettimeofday_stick=E2=80=99 The warnings were fixed by adding the proper prototypes to asm/vdso.h. The better fix would be to convert sparc to be y2038 compliant so the generic variant of vdso.h could be used. Signed-off-by: Sam Ravnborg Cc: Andreas Larsson Cc: "David S. Miller" Cc: Arnd Bergmann Acked-by: Arnd Bergmann Reviewed-by: Andreas Larsson Tested-by: Andreas Larsson --- arch/sparc/include/asm/vdso.h | 10 ++++++++++ arch/sparc/vdso/vclock_gettime.c | 1 + 2 files changed, 11 insertions(+) diff --git a/arch/sparc/include/asm/vdso.h b/arch/sparc/include/asm/vdso.h index 59e79d35cd73..af630cad185c 100644 --- a/arch/sparc/include/asm/vdso.h +++ b/arch/sparc/include/asm/vdso.h @@ -5,6 +5,16 @@ #ifndef _ASM_SPARC_VDSO_H #define _ASM_SPARC_VDSO_H =20 +#include +#include +#include +#include + +notrace int __vdso_clock_gettime(clockid_t clock, struct __kernel_old_time= spec *ts); +notrace int __vdso_clock_gettime_stick(clockid_t clock, struct __kernel_ol= d_timespec *ts); +notrace int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct ti= mezone *tz); +notrace int __vdso_gettimeofday_stick(struct __kernel_old_timeval *tv, str= uct timezone *tz); + struct vdso_image { void *data; unsigned long size; /* Always a multiple of PAGE_SIZE */ diff --git a/arch/sparc/vdso/vclock_gettime.c b/arch/sparc/vdso/vclock_gett= ime.c index e794edde6755..a3f85d9cea52 100644 --- a/arch/sparc/vdso/vclock_gettime.c +++ b/arch/sparc/vdso/vclock_gettime.c @@ -19,6 +19,7 @@ #include #include #include +#include #include =20 #ifdef CONFIG_SPARC64 --=20 2.34.1