From nobody Fri Sep 12 07:29:49 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5027BC001B0 for ; Thu, 10 Aug 2023 14:20:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235593AbjHJOUv (ORCPT ); Thu, 10 Aug 2023 10:20:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235620AbjHJOUp (ORCPT ); Thu, 10 Aug 2023 10:20:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35737273E for ; Thu, 10 Aug 2023 07:20:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BBEEC65D8A for ; Thu, 10 Aug 2023 14:20:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C10FC433C9; Thu, 10 Aug 2023 14:20:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691677239; bh=8zFFozZqwHjDHxSeDLIPA6Rg04SxjAKI0J794c4W9/E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rR+PmONwXVxISTA+O63YKwhBGOYwh5OPz78zISGZDuab6xF6eHSAL+F22MIYdArvw qQoV2aV6XaSBVR9iUw1QknspPIZwgFMTWLwnhA7+maILnEQA+61h3WbCHR6FZs+9Xs uQH2kl7R/Mfh7MQZR41pvdCq9cUQo1CAW3GR21jXjlomutG5k4mob8wvd8ocSxHlPy ZWonHu6Ad3ixk1TvPTohlX8sGNP2Wh7z8wVwdSQVfbq0iBAZJQ22yMmAoweeck07X9 Id/vADSfk5+cI90SFFFLkutV43A4bCkouEvAdsF4oO4dMpUPKHsmVOv62c1BY+byQY fmeA/4lyT4a8A== From: Arnd Bergmann To: Andrew Morton , linux-kernel@vger.kernel.org, David Woodhouse , Richard Weinberger Cc: Arnd Bergmann , Tudor Ambarus , linux-mtd@lists.infradead.org Subject: [PATCH 01/17] [RESEND] jffs2: mark __jffs2_dbg_superblock_counts() static Date: Thu, 10 Aug 2023 16:19:19 +0200 Message-Id: <20230810141947.1236730-2-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810141947.1236730-1-arnd@kernel.org> References: <20230810141947.1236730-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann This function is only called locally and does not need to be global. Since there is no external prototype, gcc warns about the non-static definition: fs/jffs2/debug.c:160:6: error: no previous prototype for '__jffs2_dbg_super= block_counts' [-Werror=3Dmissing-prototypes] Reviewed-by: Tudor Ambarus Signed-off-by: Arnd Bergmann Acked-by: Palmer Dabbelt # RISC-V --- fs/jffs2/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/jffs2/debug.c b/fs/jffs2/debug.c index 9d26b1b9fc014..0925caab23c4b 100644 --- a/fs/jffs2/debug.c +++ b/fs/jffs2/debug.c @@ -157,7 +157,7 @@ __jffs2_dbg_prewrite_paranoia_check(struct jffs2_sb_inf= o *c, kfree(buf); } =20 -void __jffs2_dbg_superblock_counts(struct jffs2_sb_info *c) +static void __jffs2_dbg_superblock_counts(struct jffs2_sb_info *c) { struct jffs2_eraseblock *jeb; uint32_t free =3D 0, dirty =3D 0, used =3D 0, wasted =3D 0, --=20 2.39.2 From nobody Fri Sep 12 07:29:49 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7398AC04A6A for ; Thu, 10 Aug 2023 14:21:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235595AbjHJOVS (ORCPT ); Thu, 10 Aug 2023 10:21:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229890AbjHJOVP (ORCPT ); Thu, 10 Aug 2023 10:21:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2AD626BD; Thu, 10 Aug 2023 07:21:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6053C65D8E; Thu, 10 Aug 2023 14:21:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2378C433C7; Thu, 10 Aug 2023 14:21:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691677273; bh=eMg6b9hkzab2TjJ02F2dWzegmP1PyYO6iwxCLd51D7g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L7R74EBA2R9WBLHGAWy2nljV13705Iy/m7NIJ2X2632QjPkYqBgi8h9HuikbipJHj TiBvkxqlZNgA6IUVAtWVNsupcb+BfJmQKoE7clkXhdohH+f293R7UXxR64DPQOarXF 5D+AINqTp8fo+95gfX2HEAkY+/BuNfKyIsBYlWOf16iUh9OyeZE3wIjD0yJUAwBaSa xo5AT+Is9KC9/LJ1AXOnWX0OhUww/zZPuPwRmAMvppnIAHIeim1I0l3UYwPZiUhoMY wAWMO+N2VGUGp6GMc/btPL38UKiZ91eudUJnkwRJdTFVOzmo+H25YuaSP8fOhYOfZD lvJ/uDzaDGVRg== From: Arnd Bergmann To: Andrew Morton , linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Catalin Marinas , Palmer Dabbelt , Guo Ren , Alexander Gordeev , Russell King , Will Deacon , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Sven Schnelle , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org Subject: [PATCH 02/17] [RESEND] irq_work: consolidate arch_irq_work_raise prototypes Date: Thu, 10 Aug 2023 16:19:20 +0200 Message-Id: <20230810141947.1236730-3-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810141947.1236730-1-arnd@kernel.org> References: <20230810141947.1236730-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann The prototype was hidden on x86, which causes a warning: kernel/irq_work.c:72:13: error: no previous prototype for 'arch_irq_work_ra= ise' [-Werror=3Dmissing-prototypes] Fix this by providing it in only one place that is always visible. Acked-by: Catalin Marinas Acked-by: Palmer Dabbelt Acked-by: Guo Ren Reviewed-by: Alexander Gordeev Signed-off-by: Arnd Bergmann Acked-by: Palmer Dabbelt # RISC-V --- arch/arm/include/asm/irq_work.h | 2 -- arch/arm64/include/asm/irq_work.h | 2 -- arch/csky/include/asm/irq_work.h | 2 +- arch/powerpc/include/asm/irq_work.h | 1 - arch/riscv/include/asm/irq_work.h | 2 +- arch/s390/include/asm/irq_work.h | 2 -- arch/x86/include/asm/irq_work.h | 1 - include/linux/irq_work.h | 3 +++ 8 files changed, 5 insertions(+), 10 deletions(-) diff --git a/arch/arm/include/asm/irq_work.h b/arch/arm/include/asm/irq_wor= k.h index 3149e4dc1b540..8895999834cc0 100644 --- a/arch/arm/include/asm/irq_work.h +++ b/arch/arm/include/asm/irq_work.h @@ -9,6 +9,4 @@ static inline bool arch_irq_work_has_interrupt(void) return is_smp(); } =20 -extern void arch_irq_work_raise(void); - #endif /* _ASM_ARM_IRQ_WORK_H */ diff --git a/arch/arm64/include/asm/irq_work.h b/arch/arm64/include/asm/irq= _work.h index 81bbfa3a035bd..a1020285ea750 100644 --- a/arch/arm64/include/asm/irq_work.h +++ b/arch/arm64/include/asm/irq_work.h @@ -2,8 +2,6 @@ #ifndef __ASM_IRQ_WORK_H #define __ASM_IRQ_WORK_H =20 -extern void arch_irq_work_raise(void); - static inline bool arch_irq_work_has_interrupt(void) { return true; diff --git a/arch/csky/include/asm/irq_work.h b/arch/csky/include/asm/irq_w= ork.h index 33aaf39d6f94f..d39fcc1f5395f 100644 --- a/arch/csky/include/asm/irq_work.h +++ b/arch/csky/include/asm/irq_work.h @@ -7,5 +7,5 @@ static inline bool arch_irq_work_has_interrupt(void) { return true; } -extern void arch_irq_work_raise(void); + #endif /* __ASM_CSKY_IRQ_WORK_H */ diff --git a/arch/powerpc/include/asm/irq_work.h b/arch/powerpc/include/asm= /irq_work.h index b8b0be8f1a07e..c6d3078bd8c3b 100644 --- a/arch/powerpc/include/asm/irq_work.h +++ b/arch/powerpc/include/asm/irq_work.h @@ -6,6 +6,5 @@ static inline bool arch_irq_work_has_interrupt(void) { return true; } -extern void arch_irq_work_raise(void); =20 #endif /* _ASM_POWERPC_IRQ_WORK_H */ diff --git a/arch/riscv/include/asm/irq_work.h b/arch/riscv/include/asm/irq= _work.h index b53891964ae03..b27a4d64fc6a0 100644 --- a/arch/riscv/include/asm/irq_work.h +++ b/arch/riscv/include/asm/irq_work.h @@ -6,5 +6,5 @@ static inline bool arch_irq_work_has_interrupt(void) { return IS_ENABLED(CONFIG_SMP); } -extern void arch_irq_work_raise(void); + #endif /* _ASM_RISCV_IRQ_WORK_H */ diff --git a/arch/s390/include/asm/irq_work.h b/arch/s390/include/asm/irq_w= ork.h index 603783766d0ab..f00c9f610d5a8 100644 --- a/arch/s390/include/asm/irq_work.h +++ b/arch/s390/include/asm/irq_work.h @@ -7,6 +7,4 @@ static inline bool arch_irq_work_has_interrupt(void) return true; } =20 -void arch_irq_work_raise(void); - #endif /* _ASM_S390_IRQ_WORK_H */ diff --git a/arch/x86/include/asm/irq_work.h b/arch/x86/include/asm/irq_wor= k.h index 800ffce0db29e..6b4d36c951655 100644 --- a/arch/x86/include/asm/irq_work.h +++ b/arch/x86/include/asm/irq_work.h @@ -9,7 +9,6 @@ static inline bool arch_irq_work_has_interrupt(void) { return boot_cpu_has(X86_FEATURE_APIC); } -extern void arch_irq_work_raise(void); #else static inline bool arch_irq_work_has_interrupt(void) { diff --git a/include/linux/irq_work.h b/include/linux/irq_work.h index 8cd11a2232605..136f2980cba30 100644 --- a/include/linux/irq_work.h +++ b/include/linux/irq_work.h @@ -66,6 +66,9 @@ void irq_work_sync(struct irq_work *work); void irq_work_run(void); bool irq_work_needs_cpu(void); void irq_work_single(void *arg); + +void arch_irq_work_raise(void); + #else static inline bool irq_work_needs_cpu(void) { return false; } static inline void irq_work_run(void) { } --=20 2.39.2 From nobody Fri Sep 12 07:29:49 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4833C41513 for ; Thu, 10 Aug 2023 14:21:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235598AbjHJOVb (ORCPT ); Thu, 10 Aug 2023 10:21:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229890AbjHJOV3 (ORCPT ); Thu, 10 Aug 2023 10:21:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 846CB26BA for ; Thu, 10 Aug 2023 07:21:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1AEDE65D8C for ; Thu, 10 Aug 2023 14:21:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D4ADC433C8; Thu, 10 Aug 2023 14:21:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691677288; bh=tTqvGfdqpSqLF9l0SW+6nk+RpKMVxa+ONkZwfa69O+0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TfRgllDuDt4/G7hW7Rt7G8F0kIsNIKHptUqki5KgQAyrb/TdOBdoRpWfkGQz9gxBZ M2dIFm02TYsFvPuXBh7YVae2IssCtAMCLTifuDsgpN8UJ3uy/SByvMeVthjYPJMtmx HvBaRyC1utACwGZFIEDFmh/KNugNfI+C+Aa3npPuh4ZUsMr69Ermh+zWoizy+nTVR4 PXsfmwtLRy+Iv50hRS0M2CYugo9wThGn75cOzX4iE64Zasev+yHPCOg99fNAOYNe/2 Qt94rXS3aWIw0tndDDXDQdGr8Wnm2PU6ocX5kUQrn7fQzPb/nQ1Xf8LxidEO09YR4b tPfaQ5Yzitb+w== From: Arnd Bergmann To: Andrew Morton , linux-kernel@vger.kernel.org, Matthew Wilcox Cc: Arnd Bergmann Subject: [PATCH 03/17] [RESEND] ida: make 'ida_dump' static Date: Thu, 10 Aug 2023 16:19:21 +0200 Message-Id: <20230810141947.1236730-4-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810141947.1236730-1-arnd@kernel.org> References: <20230810141947.1236730-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann There is no global declaration for ida_dump() and no other callers, so make it static to avoid this warning: lib/test_ida.c:16:6: error: no previous prototype for 'ida_dump' Fixes: 8ab8ba38d488 ("ida: Start new test_ida module") Signed-off-by: Arnd Bergmann Acked-by: Palmer Dabbelt # RISC-V --- lib/test_ida.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/test_ida.c b/lib/test_ida.c index b068806259615..f946c80ced8b6 100644 --- a/lib/test_ida.c +++ b/lib/test_ida.c @@ -13,7 +13,7 @@ static unsigned int tests_run; static unsigned int tests_passed; =20 #ifdef __KERNEL__ -void ida_dump(struct ida *ida) { } +static void ida_dump(struct ida *ida) { } #endif #define IDA_BUG_ON(ida, x) do { \ tests_run++; \ --=20 2.39.2 From nobody Fri Sep 12 07:29:49 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CE11DC04A6A for ; Thu, 10 Aug 2023 14:21:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234707AbjHJOVn (ORCPT ); Thu, 10 Aug 2023 10:21:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235613AbjHJOVl (ORCPT ); Thu, 10 Aug 2023 10:21:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F5EA2709; Thu, 10 Aug 2023 07:21:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id F3EB265D8B; Thu, 10 Aug 2023 14:21:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 819D5C433C8; Thu, 10 Aug 2023 14:21:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691677300; bh=ez3JL8BNfjOCxYcnwWUPckDUgraG8trVYo74A4xvgWg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ETdwqpKA+uHPxi/FhqBPMZ7sUPiTFHbZoWeRFm8cZL3k4ZWOEZxIKbHGeoqEM9+uJ ozwxxlFBZQfwTr/IUynyKDWO9lKvgYGwcq6ZOBTx8FSdQ2CbmznY+XZB43HvOkijdN 0MszufkNCEmW+WmNsm3/64H+3zVxByHkWjDz1zVhLDr3v8a3Yzz9OH1d9xx7BP5y12 dHyV7s7CR3eOHMA6/WvzNPPzdWNJeH1U7wx8KVXZulPtrykpBgUMFptJC+gNdifX/J yPxzjDm1Chvknde67QPWz68pYE5xvmp0fceBHZS9Q4mdmhW9qm7cPF3s+E5mJCIoOQ u7CNF5bdLbMHg== From: Arnd Bergmann To: Andrew Morton , linux-kernel@vger.kernel.org, Richard Henderson , Ivan Kokshaysky , Matt Turner , Bjorn Helgaas Cc: Arnd Bergmann , Thomas Gleixner , Andy Shevchenko , Dan Williams , Kuppuswamy Sathyanarayanan , Christophe JAILLET , Reinette Chatre , Ira Weiny , Mika Westerberg , "Ahmed S. Darwish" , Sami Tolvanen , linux-alpha@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH 04/17] pci: sysfs: move declarations to linux/pci.h Date: Thu, 10 Aug 2023 16:19:22 +0200 Message-Id: <20230810141947.1236730-5-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810141947.1236730-1-arnd@kernel.org> References: <20230810141947.1236730-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann A couple of architectures build the __weak versions of pci_create_resource_files() and pci_remove_resource_files() but don't have prototypes for these, which causes warnings: drivers/pci/pci-sysfs.c:1253:12: error: no previous prototype for 'pci_crea= te_resource_files' [-Werror=3Dmissing-prototypes] 1253 | int __weak pci_create_resource_files(struct pci_dev *dev) { return = 0; } drivers/pci/pci-sysfs.c:1254:13: error: no previous prototype for 'pci_remo= ve_resource_files' [-Werror=3Dmissing-prototypes] 1254 | void __weak pci_remove_resource_files(struct pci_dev *dev) { return= ; } Move the prototypes from alpha architecture into the global header to avoid these warnings for all of them. Signed-off-by: Arnd Bergmann Acked-by: Palmer Dabbelt # RISC-V --- arch/alpha/include/asm/pci.h | 3 --- include/linux/pci.h | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/alpha/include/asm/pci.h b/arch/alpha/include/asm/pci.h index 6312656279d79..6c04fcbdc8ed2 100644 --- a/arch/alpha/include/asm/pci.h +++ b/arch/alpha/include/asm/pci.h @@ -88,7 +88,4 @@ extern void pci_adjust_legacy_attr(struct pci_bus *bus, enum pci_mmap_state mmap_type); #define HAVE_PCI_LEGACY 1 =20 -extern int pci_create_resource_files(struct pci_dev *dev); -extern void pci_remove_resource_files(struct pci_dev *dev); - #endif /* __ALPHA_PCI_H */ diff --git a/include/linux/pci.h b/include/linux/pci.h index eeb2e6f6130f4..198a399c4b792 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -2260,6 +2260,11 @@ int pcibios_alloc_irq(struct pci_dev *dev); void pcibios_free_irq(struct pci_dev *dev); resource_size_t pcibios_default_alignment(void); =20 +#if !defined(HAVE_PCI_MMAP) && !defined(ARCH_GENERIC_PCI_MMAP_RESOURCE) +extern int pci_create_resource_files(struct pci_dev *dev); +extern void pci_remove_resource_files(struct pci_dev *dev); +#endif + #if defined(CONFIG_PCI_MMCONFIG) || defined(CONFIG_ACPI_MCFG) void __init pci_mmcfg_early_init(void); void __init pci_mmcfg_late_init(void); --=20 2.39.2 From nobody Fri Sep 12 07:29:49 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1A31C04E69 for ; Thu, 10 Aug 2023 14:21:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235616AbjHJOVu (ORCPT ); Thu, 10 Aug 2023 10:21:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235072AbjHJOVt (ORCPT ); Thu, 10 Aug 2023 10:21:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A51B1B4; Thu, 10 Aug 2023 07:21:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A951165D8B; Thu, 10 Aug 2023 14:21:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38266C433C7; Thu, 10 Aug 2023 14:21:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691677308; bh=I6IRExNYqo8UBCebkpvu5GaQ8IK18y0eKaizpHUnkOI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ucGTS2xqPZOWGCOiL4qxDpX0/atupBXJSJsS5X0BeogQKCNK8mvO/s4zrFaS4mdV0 4tRS00rUtYhZhqPBbVEq1nsrbkQ1lt/oByUyVv8gIa93XrULsHAJ3F29gm/xewTMwR BgZW94H8UYDjdvEN0+i9td4FcSHiSTouaX1nEmc/+6yQVdHlByuG/ymqJLmZFCX7Nn +2Bbbn3jlVg+XriGkRnzx2yjy0H0humi2wKvisIDQndBVATh9ziQdP56sdpDmsiQLB Gwnn9FXohCKRlMe5ku8CdWsDG2Wg8n5zTbQZHGafcNW1LhhT13CEgUolsiV3XJJ+M0 KjgcMyLswfCGw== From: Arnd Bergmann To: Andrew Morton , linux-kernel@vger.kernel.org, Jens Axboe Cc: Arnd Bergmann , Christian Brauner , Hannes Reinecke , Jack Wang , linux-block@vger.kernel.org Subject: [PATCH 05/17] swim3: mark swim3_init() static Date: Thu, 10 Aug 2023 16:19:23 +0200 Message-Id: <20230810141947.1236730-6-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810141947.1236730-1-arnd@kernel.org> References: <20230810141947.1236730-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann This is the module init function, which by definition is used only locally, so mark it static to avoid a warning: drivers/block/swim3.c:1280:5: error: no previous prototype for 'swim3_init'= [-Werror=3Dmissing-prototypes] Signed-off-by: Arnd Bergmann Acked-by: Palmer Dabbelt # RISC-V Reviewed-by: Jack Wang --- drivers/block/swim3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/swim3.c b/drivers/block/swim3.c index dc43a63b34694..c2bc85826358e 100644 --- a/drivers/block/swim3.c +++ b/drivers/block/swim3.c @@ -1277,7 +1277,7 @@ static struct macio_driver swim3_driver =3D }; =20 =20 -int swim3_init(void) +static int swim3_init(void) { macio_register_driver(&swim3_driver); return 0; --=20 2.39.2 From nobody Fri Sep 12 07:29:49 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96A02C001B0 for ; Thu, 10 Aug 2023 14:22:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235625AbjHJOWE (ORCPT ); Thu, 10 Aug 2023 10:22:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235635AbjHJOV6 (ORCPT ); Thu, 10 Aug 2023 10:21:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2A9A26A9 for ; Thu, 10 Aug 2023 07:21:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 56C4365D8A for ; Thu, 10 Aug 2023 14:21:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ABD33C433C7; Thu, 10 Aug 2023 14:21:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691677315; bh=NTZhJvX8Fa33MdPPJUJFrTri4+p2YZpKQVbTmgUMKFY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cqgKhGl2DoUwkrH27k0CfFHk4cjsMWCn+krIYRRadLbq/26dDO7M63XU2OA6RddWv dgIEDaGkr6CDt72ElTPqXoJmXpAzgguxwGmQcd5u+eXPiPrL0cRnTikIRskZp2XvBc qTC7ATNWHQdPUOVM8mxtsTB9A0G5Fan2dsnq1Ka109cwdlI1qNdKtZupKFKxnIX2Jb /ig+h6oo/9A1LKlxYouXUcTmsuAYmoLl/W1cxZBwBiWDSBWEqEYazRTK3Pp+zOHoi+ UPC4NKD8NVlpxXQu/Ksklwbi1HCt/mESFyGS970fgg4jU7F3MYgbxidp3qiaT43kji WgekgZXFjYdeA== From: Arnd Bergmann To: Andrew Morton , linux-kernel@vger.kernel.org Cc: Arnd Bergmann , linuxppc-dev@lists.ozlabs.org Subject: [PATCH 06/17] macintosh/ams: mark ams_init() static Date: Thu, 10 Aug 2023 16:19:24 +0200 Message-Id: <20230810141947.1236730-7-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810141947.1236730-1-arnd@kernel.org> References: <20230810141947.1236730-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann This is the module init function, which by definition is used only locally, so mark it static to avoid a warning: drivers/macintosh/ams/ams-core.c:179:12: error: no previous prototype for '= ams_init' [-Werror=3Dmissing-prototypes] Signed-off-by: Arnd Bergmann Acked-by: Palmer Dabbelt # RISC-V Reviewed-by: Christophe Leroy --- drivers/macintosh/ams/ams-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/macintosh/ams/ams-core.c b/drivers/macintosh/ams/ams-c= ore.c index 877e8cb231283..c978b4272daa5 100644 --- a/drivers/macintosh/ams/ams-core.c +++ b/drivers/macintosh/ams/ams-core.c @@ -176,7 +176,7 @@ int ams_sensor_attach(void) return result; } =20 -int __init ams_init(void) +static int __init ams_init(void) { struct device_node *np; =20 --=20 2.39.2 From nobody Fri Sep 12 07:29:49 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D445C001B0 for ; Thu, 10 Aug 2023 14:22:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235643AbjHJOWH (ORCPT ); Thu, 10 Aug 2023 10:22:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235627AbjHJOWF (ORCPT ); Thu, 10 Aug 2023 10:22:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AACFD26BD; Thu, 10 Aug 2023 07:22:03 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 47E6965D5E; Thu, 10 Aug 2023 14:22:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AAD67C433C7; Thu, 10 Aug 2023 14:22:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691677322; bh=Pw5U4R34UHo1qa7FlbT6kKqWNZNNPz53PW/3LnYPzmI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mmE6w9ZangEwJyl0bzL8nVZ6jjDHA5th1gO/E9ADy/Y1nZ75eRfOWyryiExAFP9pA ja9lflXZ0jCaVYmfWfhNuhWgIx/Vm+0GLyWIYL3F9sYVWjy+q3rTsDzqCy9ltZURDH jV8gflzc0nvW9glXOMtVeeDSHEdhTNjGWxSY7uOyMUUkTpeWRQRkJCSoIA0TvOAwO+ /yt00dCblwGj1tHgh0BhYZ441q/nReP8wvFhAJAYbKe2axRSbhSJRJ7NxP7bQaPFDY GpXf8uYqnqoVZehsfNcueXe4cgdWCB3sNK2RygVCQuhX3x1IAH1RMAfW+Et/uJXNnB qLwUD30C9dadQ== From: Arnd Bergmann To: Andrew Morton , linux-kernel@vger.kernel.org, "James E.J. Bottomley" , "Martin K. Petersen" Cc: Arnd Bergmann , Rob Herring , Bart Van Assche , Jack Wang , linux-scsi@vger.kernel.org Subject: [PATCH 07/17] scsi: qlogicpti: mark qlogicpti_info() static Date: Thu, 10 Aug 2023 16:19:25 +0200 Message-Id: <20230810141947.1236730-8-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810141947.1236730-1-arnd@kernel.org> References: <20230810141947.1236730-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann The qlogicpti_info() function is only used in this file and should be static to avoid a warning: drivers/scsi/qlogicpti.c:846:13: error: no previous prototype for 'qlogicpt= i_info' [-Werror=3Dmissing-prototypes] Signed-off-by: Arnd Bergmann Acked-by: Palmer Dabbelt # RISC-V Reviewed-by: Jack Wang --- drivers/scsi/qlogicpti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qlogicpti.c b/drivers/scsi/qlogicpti.c index f88a5421c483f..3b95f7a6216fe 100644 --- a/drivers/scsi/qlogicpti.c +++ b/drivers/scsi/qlogicpti.c @@ -843,7 +843,7 @@ static int qpti_map_queues(struct qlogicpti *qpti) return 0; } =20 -const char *qlogicpti_info(struct Scsi_Host *host) +static const char *qlogicpti_info(struct Scsi_Host *host) { static char buf[80]; struct qlogicpti *qpti =3D (struct qlogicpti *) host->hostdata; --=20 2.39.2 From nobody Fri Sep 12 07:29:49 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A64DDC001B0 for ; Thu, 10 Aug 2023 14:22:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235645AbjHJOWS (ORCPT ); Thu, 10 Aug 2023 10:22:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235667AbjHJOWN (ORCPT ); Thu, 10 Aug 2023 10:22:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB41C2715 for ; Thu, 10 Aug 2023 07:22:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4FEC065DA6 for ; Thu, 10 Aug 2023 14:22:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45BBDC433CA; Thu, 10 Aug 2023 14:22:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691677328; bh=JYabf5wMJUk5e6DNY2CCvp9jZouGFzZsXU/Y/nl7JD4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kbzkssEyw3oDpgrWbl40D89GEU2FyM0Da7GcQQWjOczt0tCaNuu5lKOM3BYavzk8l YRtG58g0VE3FvnV7jujSsT4Rv4Ca97uWBtvFSmt2aOVZPdIXz889tJuRxkDITmGnzC LiE+Z3QUi1SDfLiA8InaZsrzUJNFyI11K155utwPluxPu02iQ6gUigfe+bgFSNAn+X u7LbuxUwenMNBAc7V9xxT8AaasD8Cmc6/6QVf3gvzku1Wn1xom9SUL/+GA3UbAYDIP +FI/j3dwL/UGXUMl6QjKXH9o5H+olG6iZuBJKr1fgkSON13xxi3Nq2XfDKoudsXQBn pKFmkP7dwn02g== From: Arnd Bergmann To: Andrew Morton , linux-kernel@vger.kernel.org, Michal Simek , "Matthew Wilcox (Oracle)" , "Mike Rapoport (IBM)" Cc: Arnd Bergmann Subject: [PATCH 08/17] microblaze: mark flush_dcache_folio() inline Date: Thu, 10 Aug 2023 16:19:26 +0200 Message-Id: <20230810141947.1236730-9-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810141947.1236730-1-arnd@kernel.org> References: <20230810141947.1236730-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann The newly added flush_dcache_folio() causes a harmless warning that turns into a build failure with CONFIG_WERROR: arch/microblaze/include/asm/cacheflush.h:77:13: error: 'flush_dcache_folio'= defined but not used [-Werror=3Dunused-function] Mark it as inline to avoid this. Fixes: 1330c94f53996 ("microblaze: implement the new page table range API") Signed-off-by: Arnd Bergmann Acked-by: Michal Simek Acked-by: Palmer Dabbelt # RISC-V --- arch/microblaze/include/asm/cacheflush.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/microblaze/include/asm/cacheflush.h b/arch/microblaze/inc= lude/asm/cacheflush.h index e6641ff98cb30..ffa2cf3893e4b 100644 --- a/arch/microblaze/include/asm/cacheflush.h +++ b/arch/microblaze/include/asm/cacheflush.h @@ -74,7 +74,7 @@ do { \ flush_dcache_range((unsigned) (addr), (unsigned) (addr) + PAGE_SIZE); \ } while (0); =20 -static void flush_dcache_folio(struct folio *folio) +static inline void flush_dcache_folio(struct folio *folio) { unsigned long addr =3D folio_pfn(folio) << PAGE_SHIFT; =20 --=20 2.39.2 From nobody Fri Sep 12 07:29:49 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BDA28C04A6A for ; Thu, 10 Aug 2023 14:22:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235453AbjHJOWZ (ORCPT ); Thu, 10 Aug 2023 10:22:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235682AbjHJOWR (ORCPT ); Thu, 10 Aug 2023 10:22:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 336F1270A; Thu, 10 Aug 2023 07:22:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C2F4E65DA6; Thu, 10 Aug 2023 14:22:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85856C433C7; Thu, 10 Aug 2023 14:22:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691677335; bh=kWqVuzsH0Q6jtQzYrNt8dLcMGh1ZeB95zyVRAeHztoo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GNv0vjpVBSzAY0o+k/QbC/U9e6pdOuyj3VtnNWS+y0pG5p9v/7OPK9ufUKCeCk1vJ 6WztDoeLGqhPGJFQnjJG8Ri0WGCguaujdnWlSNLZDqIIR7MIeT1SMdT0kGqkyK5XlW HxoPY2a0HX6A76QKL6uKiR1c3dGXx2oXjRAMRlj1D7+nCgw0tLr/dJ4LNZotk2xQ7a hNZsZd2KRVfE9n8T0Z8O1mY8epSqvi3Il85a9tC6Z7S7+Jky96VwOD4Mbb3Zc5M+xP FMl1gY9Hfz5bbzXb7E4sNXgRG4DoJAIq0wkrtIpsHcfE1XhO0kLFoRR4jQbOKsCuvI 9KFQR9JKhfBlQ== From: Arnd Bergmann To: Andrew Morton , linux-kernel@vger.kernel.org, "James E.J. Bottomley" , Helge Deller , Sudip Mukherjee Cc: Arnd Bergmann , linux-parisc@vger.kernel.org Subject: [PATCH 09/17] parport: gsc: mark init function static Date: Thu, 10 Aug 2023 16:19:27 +0200 Message-Id: <20230810141947.1236730-10-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810141947.1236730-1-arnd@kernel.org> References: <20230810141947.1236730-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann This is only used locally, so mark it static to avoid a warning: drivers/parport/parport_gsc.c:395:5: error: no previous prototype for 'parp= ort_gsc_init' [-Werror=3Dmissing-prototypes] Signed-off-by: Arnd Bergmann Acked-by: Helge Deller Acked-by: Palmer Dabbelt # RISC-V Acked-by: Sudip Mukherjee --- drivers/parport/parport_gsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/parport/parport_gsc.c b/drivers/parport/parport_gsc.c index 5e4475254bd0a..c7e18382dc014 100644 --- a/drivers/parport/parport_gsc.c +++ b/drivers/parport/parport_gsc.c @@ -392,7 +392,7 @@ static struct parisc_driver parport_driver __refdata = =3D { .remove =3D __exit_p(parport_remove_chip), }; =20 -int parport_gsc_init(void) +static int parport_gsc_init(void) { return register_parisc_driver(&parport_driver); } --=20 2.39.2 From nobody Fri Sep 12 07:29:49 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68469C001B0 for ; Thu, 10 Aug 2023 14:22:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235667AbjHJOWi (ORCPT ); Thu, 10 Aug 2023 10:22:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235651AbjHJOW2 (ORCPT ); Thu, 10 Aug 2023 10:22:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36F8F2705 for ; Thu, 10 Aug 2023 07:22:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C000365D90 for ; Thu, 10 Aug 2023 14:22:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4ED0C433C7; Thu, 10 Aug 2023 14:22:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691677343; bh=TM24uN9AHGtsUilsrwg5FSsq+8PkBzf9zCmDCBK6pHs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qfVaivzZylAfe2Vo7lZzVKCdMWMCPe819yCAzVffAZ/7NggfFtLUheeQ3XYKEINnn qfLbrpn1tWj1AdB5lKjZnVH1AwVntCsN1Qz5BYGL6p5ILiU9AYG+kAG7F4dE6UI6KV syLekCJQQdjcinNjD9lZMlMXHzPl1k8wKN65EJ77HPaH13bCZdEHWb2HG31/5C/FEc 9jozP4HX9GIOhIePoM5TxtpXZYk92vo3GAecrdkywky+EK48qGk2aWmGSCsaMNutNa /mKuEC3QiPRlxLuQP8vnDstzIBBUrv9f/HniM1dBuMA1Bqa/ArfQas1CYc0QDVvmGD vyqNA8jBkXHWA== From: Arnd Bergmann To: Andrew Morton , linux-kernel@vger.kernel.org, Geert Uytterhoeven Cc: Arnd Bergmann , linux-m68k@lists.linux-m68k.org Subject: [PATCH 10/17] zorro: include zorro.h in names.c Date: Thu, 10 Aug 2023 16:19:28 +0200 Message-Id: <20230810141947.1236730-11-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810141947.1236730-1-arnd@kernel.org> References: <20230810141947.1236730-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann The zorro_name_device() function is defined in drivers/zorror/names.c, but the declaration is not visible there: drivers/zorro/names.c:58:13: error: no previous prototype for 'zorro_name_d= evice' [-Werror=3Dmissing-prototypes] 58 | void __init zorro_name_device(struct zorro_dev *dev) Include the header to avoid the warning. Signed-off-by: Arnd Bergmann Acked-by: Palmer Dabbelt # RISC-V Reviewed-by: Geert Uytterhoeven --- drivers/zorro/names.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/zorro/names.c b/drivers/zorro/names.c index fa3c83dbe8431..077114ccc8407 100644 --- a/drivers/zorro/names.c +++ b/drivers/zorro/names.c @@ -15,6 +15,7 @@ #include #include =20 +#include "zorro.h" =20 struct zorro_prod_info { __u16 prod; --=20 2.39.2 From nobody Fri Sep 12 07:29:49 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1B7ACC04E69 for ; Thu, 10 Aug 2023 14:22:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234760AbjHJOWv (ORCPT ); Thu, 10 Aug 2023 10:22:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235644AbjHJOWg (ORCPT ); Thu, 10 Aug 2023 10:22:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB4252702; Thu, 10 Aug 2023 07:22:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 82E0865DAF; Thu, 10 Aug 2023 14:22:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51790C433C7; Thu, 10 Aug 2023 14:22:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691677350; bh=ISbGQKHWjQZRyYhsqJ9yc7rqseEvmVUOesxoBZWtIsY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rgJUvBkBXyee745Ct1M5KdVyUKUZNJiAgNiUIGplaDMu2hMFn8v/IM4F5l6sK6+ZY +KImntCYp3KZQbqAwAKy0JpVtMe3OO3Hnv/fzz8gMkFobUsGQF7zSFUSgW/Z3FdS9i Z6LTo1bD8FcXaTxhBMINfstRZX7W6SIQNZtg4hvoW75adjwzvxUJ+pifLLdx+lsKah kKxHR3metr5beZSndYM4n7R56mZRCX0AEyKcXkYZI8uYU+p9b7vTjQbDDZjV6LejkK tgvClsudO87hSCxrrVxjTVJbrLIFid2e4wBjLf9gcSVwaElMkXV1hT0kipCLbL6Orm 9sxezx7zj7e0Q== From: Arnd Bergmann To: Andrew Morton , linux-kernel@vger.kernel.org, "James E.J. Bottomley" , "Martin K. Petersen" Cc: Arnd Bergmann , Bart Van Assche , linux-scsi@vger.kernel.org Subject: [PATCH 11/17] scsi: gvp11: remove unused gvp11_setup() function Date: Thu, 10 Aug 2023 16:19:29 +0200 Message-Id: <20230810141947.1236730-12-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810141947.1236730-1-arnd@kernel.org> References: <20230810141947.1236730-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann This function has no declaration, which causes a warning: drivers/scsi/gvp11.c:53:6: error: no previous prototype for 'gvp11_setup' [= -Werror=3Dmissing-prototypes] Since there is also no caller, just remove the function. Signed-off-by: Arnd Bergmann Acked-by: Palmer Dabbelt # RISC-V Reviewed-by: Geert Uytterhoeven --- drivers/scsi/gvp11.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/scsi/gvp11.c b/drivers/scsi/gvp11.c index d2eddad099a2b..0420bfe9bd42d 100644 --- a/drivers/scsi/gvp11.c +++ b/drivers/scsi/gvp11.c @@ -50,11 +50,6 @@ static irqreturn_t gvp11_intr(int irq, void *data) =20 static int gvp11_xfer_mask =3D 0; =20 -void gvp11_setup(char *str, int *ints) -{ - gvp11_xfer_mask =3D ints[1]; -} - static int dma_setup(struct scsi_cmnd *cmd, int dir_in) { struct scsi_pointer *scsi_pointer =3D WD33C93_scsi_pointer(cmd); --=20 2.39.2 From nobody Fri Sep 12 07:29:49 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9224FC001B0 for ; Thu, 10 Aug 2023 14:23:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235611AbjHJOXH (ORCPT ); Thu, 10 Aug 2023 10:23:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235663AbjHJOWr (ORCPT ); Thu, 10 Aug 2023 10:22:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2501A2D69 for ; Thu, 10 Aug 2023 07:22:38 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9355B65D97 for ; Thu, 10 Aug 2023 14:22:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A24BC433C8; Thu, 10 Aug 2023 14:22:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691677357; bh=yCLl77lX4o4d0X3UveMkTccIfSP8PULnksDo4HNqlss=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bE/5ycRcHjEHnJfYHG10Q7p/nvO0wujx9qYPBNw2jOxRQwrr3TUL8xLdRUm33QavS FM+7U5N2E1xlEHo3tlyPbm+UORZdsaHLQERAP1qDZ7NuG5I1CkkQXCZYO6gsXKm+mh rAadFrYiyu+E0fCffkjGfyeMt8tyrEz48ytFY01LGhZeZGztCWOReG5DZrO/PFJpRi NKIq2wvBvOpwS55ZJpdMyDBcSf4KqXmDukUsWPDuPL6JazmE+R3npWhiREVwh48OEx ugn48IcVYpnk7ajTDLlB6MoCFkCbxvSu3DxdJC6+1NZGihYS5PTnW4KjMkRPZtrf9c ID0JsCKigZCpA== From: Arnd Bergmann To: Andrew Morton , linux-kernel@vger.kernel.org, Frederic Weisbecker , Thomas Gleixner , Ingo Molnar Cc: Arnd Bergmann Subject: [PATCH 12/17] time: make sysfs_get_uname() function visible in header Date: Thu, 10 Aug 2023 16:19:30 +0200 Message-Id: <20230810141947.1236730-13-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810141947.1236730-1-arnd@kernel.org> References: <20230810141947.1236730-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann This function is defined globally in clocksource.c and used conditionally in clockevent.c, which the declaration hidden when clockevent support is disabled. This causes a harmless warning in the definition: kernel/time/clocksource.c:1324:9: warning: no previous prototype for 'sysfs= _get_uname' [-Wmissing-prototypes] 1324 | ssize_t sysfs_get_uname(const char *buf, char *dst, size_t cnt) Move the declaration out of the #ifdef so it is always visible. Signed-off-by: Arnd Bergmann Acked-by: Palmer Dabbelt # RISC-V --- kernel/time/tick-internal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/time/tick-internal.h b/kernel/time/tick-internal.h index 649f2b48e8f06..481b7ab65e2cf 100644 --- a/kernel/time/tick-internal.h +++ b/kernel/time/tick-internal.h @@ -56,7 +56,6 @@ extern int clockevents_program_event(struct clock_event_d= evice *dev, ktime_t expires, bool force); extern void clockevents_handle_noop(struct clock_event_device *dev); extern int __clockevents_update_freq(struct clock_event_device *dev, u32 f= req); -extern ssize_t sysfs_get_uname(const char *buf, char *dst, size_t cnt); =20 /* Broadcasting support */ # ifdef CONFIG_GENERIC_CLOCKEVENTS_BROADCAST @@ -197,3 +196,5 @@ void hrtimers_resume_local(void); #else #define JIFFIES_SHIFT 8 #endif + +extern ssize_t sysfs_get_uname(const char *buf, char *dst, size_t cnt); --=20 2.39.2 From nobody Fri Sep 12 07:29:49 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3B9F6C04A6A for ; Thu, 10 Aug 2023 14:23:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235634AbjHJOXR (ORCPT ); Thu, 10 Aug 2023 10:23:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235688AbjHJOXD (ORCPT ); Thu, 10 Aug 2023 10:23:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 870FA2D53 for ; Thu, 10 Aug 2023 07:22:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 193FD65D97 for ; Thu, 10 Aug 2023 14:22:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9BDD1C433C7; Thu, 10 Aug 2023 14:22:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691677367; bh=zm5Sn5aoo9lAExPG70q1GTsvtFdGFc5JFFuqji9a/WA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lpwr67WUt7XboGgjE35Yb5FuHHFbF8xfLwLRJScg6qXS5JQ1q+sp/Qdg735a63N9J hxm+hKPwITcQNHf2MfB12vwl7iWjn4aZgEZNbdHiV3GdADE4WOnRt7wbMSmB64hUWN YzVh7ZKXwjSnRD7KvnBPrzZWR7X3cl8eR32J5s0xZHGgqKzrWlL8Krg7jkbH8TVNR3 /Lc5uZS4BYzT9k8ZXtWqEWgAY+nZnJw8pyEr81X+tWJPPz8wQ2Sg5XADc4q+FKq1s4 4C7tpCe8q0aepKRZcNRkGm4dSodtw0kIhoSLE6ogUAqtganVElKZMjblH2vKC8m6va cCuCOK777NwCg== From: Arnd Bergmann To: Andrew Morton , linux-kernel@vger.kernel.org Cc: Arnd Bergmann Subject: [PATCH 13/17] stackleak: add declarations for global functions Date: Thu, 10 Aug 2023 16:19:31 +0200 Message-Id: <20230810141947.1236730-14-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810141947.1236730-1-arnd@kernel.org> References: <20230810141947.1236730-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann With -Wmissing-prototypes enabled, the stackleak code produces a couple of warnings that have no declarations because they are only called from assemb= ler: stackleak.c:127:25: error: no previous prototype for 'stackleak_erase' [-We= rror=3Dmissing-prototypes] stackleak.c:139:25: error: no previous prototype for 'stackleak_erase_on_ta= sk_stack' [-Werror=3Dmissing-prototypes] stackleak.c:151:25: error: no previous prototype for 'stackleak_erase_off_t= ask_stack' [-Werror=3Dmissing-prototypes] stackleak.c:159:49: error: no previous prototype for 'stackleak_track_stack= ' [-Werror=3Dmissing-prototypes] Add declarations to the stackleak header to shut up the warnings. Signed-off-by: Arnd Bergmann Acked-by: Palmer Dabbelt # RISC-V --- include/linux/stackleak.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/stackleak.h b/include/linux/stackleak.h index c36e7a3b45e7e..3be2cb564710b 100644 --- a/include/linux/stackleak.h +++ b/include/linux/stackleak.h @@ -14,6 +14,7 @@ =20 #ifdef CONFIG_GCC_PLUGIN_STACKLEAK #include +#include =20 /* * The lowest address on tsk's stack which we can plausibly erase. @@ -76,6 +77,11 @@ static inline void stackleak_task_init(struct task_struc= t *t) # endif } =20 +asmlinkage void noinstr stackleak_erase(void); +asmlinkage void noinstr stackleak_erase_on_task_stack(void); +asmlinkage void noinstr stackleak_erase_off_task_stack(void); +void __no_caller_saved_registers noinstr stackleak_track_stack(void); + #else /* !CONFIG_GCC_PLUGIN_STACKLEAK */ static inline void stackleak_task_init(struct task_struct *t) { } #endif --=20 2.39.2 From nobody Fri Sep 12 07:29:49 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81B9DC04FE0 for ; Thu, 10 Aug 2023 14:23:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234222AbjHJOXl (ORCPT ); Thu, 10 Aug 2023 10:23:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235716AbjHJOX3 (ORCPT ); Thu, 10 Aug 2023 10:23:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15B382704; Thu, 10 Aug 2023 07:23:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 92C6965DC3; Thu, 10 Aug 2023 14:23:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87822C433C7; Thu, 10 Aug 2023 14:23:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691677406; bh=cs9hAoMZsISt2PoCjIqaqsE5Y0qpeoj7NexdJjqc7FI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MhFCHi3JfnnOM/wH/IUOXANZeACqMVIJZ1ytPw9oqirmgzUbc4ifzc3UZCYagrzFa ab1BvcU8okF47/4vwMqvZE5SZcJsgFQR1j3MeDVm2xwJkG9X3SnjwhfSt3QZ8F5Tmz WbTe91EB1rcFkUsKbPcVuSqsvK1JV67KuASRjv0aOxBQc/TX+0g5x8CYtAo/w9ZN0T xAA6+TqvJPn7tmPP1BasNe0rDYp2JDl17cAbUzvfKuyAk7KJBvEI1h9mu8/Kr1hehw 4aa2owUC1brNn4/3U/VkfmM8Bkm2fdDLdQUnKxG3D1cch/NrLlHAsCUdn7G2Ox4pZ6 z8Zf/Z+WsCXJA== From: Arnd Bergmann To: Andrew Morton , linux-kernel@vger.kernel.org, "Naveen N. Rao" , Anil S Keshavamurthy , Masami Hiramatsu Cc: Arnd Bergmann , Vineet Gupta , Russell King , Catalin Marinas , Will Deacon , Thomas Bogendoerfer , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , "David S. Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Gaosheng Cui , "Steven Rostedt (Google)" , Yang Jihong , Jiri Olsa , Alexei Starovoitov , linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: [PATCH 14/17] kprobes: unify kprobes_exceptions_nofify() prototypes Date: Thu, 10 Aug 2023 16:19:32 +0200 Message-Id: <20230810141947.1236730-15-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810141947.1236730-1-arnd@kernel.org> References: <20230810141947.1236730-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann Most architectures that support kprobes declare this function in their own asm/kprobes.h header and provide an override, but some are missing the prototype, which causes a warning for the __weak stub implementation: kernel/kprobes.c:1865:12: error: no previous prototype for 'kprobe_exceptio= ns_notify' [-Werror=3Dmissing-prototypes] 1865 | int __weak kprobe_exceptions_notify(struct notifier_block *self, Move the prototype into linux/kprobes.h so it is visible to all the definitions. Signed-off-by: Arnd Bergmann Acked-by: Masami Hiramatsu (Google) Acked-by: Palmer Dabbelt # RISC-V --- arch/arc/include/asm/kprobes.h | 3 --- arch/arm/include/asm/kprobes.h | 2 -- arch/arm64/include/asm/kprobes.h | 2 -- arch/ia64/include/asm/kprobes.h | 2 -- arch/mips/include/asm/kprobes.h | 2 -- arch/powerpc/include/asm/kprobes.h | 2 -- arch/s390/include/asm/kprobes.h | 2 -- arch/sh/include/asm/kprobes.h | 2 -- arch/sparc/include/asm/kprobes.h | 2 -- arch/x86/include/asm/kprobes.h | 2 -- include/linux/kprobes.h | 4 ++++ 11 files changed, 4 insertions(+), 21 deletions(-) diff --git a/arch/arc/include/asm/kprobes.h b/arch/arc/include/asm/kprobes.h index de1566e32cb89..68e8301c0df2c 100644 --- a/arch/arc/include/asm/kprobes.h +++ b/arch/arc/include/asm/kprobes.h @@ -32,9 +32,6 @@ struct kprobe; =20 void arch_remove_kprobe(struct kprobe *p); =20 -int kprobe_exceptions_notify(struct notifier_block *self, - unsigned long val, void *data); - struct prev_kprobe { struct kprobe *kp; unsigned long status; diff --git a/arch/arm/include/asm/kprobes.h b/arch/arm/include/asm/kprobes.h index e26a278d301ab..5b8dbf1b0be49 100644 --- a/arch/arm/include/asm/kprobes.h +++ b/arch/arm/include/asm/kprobes.h @@ -40,8 +40,6 @@ struct kprobe_ctlblk { =20 void arch_remove_kprobe(struct kprobe *); int kprobe_fault_handler(struct pt_regs *regs, unsigned int fsr); -int kprobe_exceptions_notify(struct notifier_block *self, - unsigned long val, void *data); =20 /* optinsn template addresses */ extern __visible kprobe_opcode_t optprobe_template_entry[]; diff --git a/arch/arm64/include/asm/kprobes.h b/arch/arm64/include/asm/kpro= bes.h index 05cd82eeca136..be7a3680dadff 100644 --- a/arch/arm64/include/asm/kprobes.h +++ b/arch/arm64/include/asm/kprobes.h @@ -37,8 +37,6 @@ struct kprobe_ctlblk { =20 void arch_remove_kprobe(struct kprobe *); int kprobe_fault_handler(struct pt_regs *regs, unsigned int fsr); -int kprobe_exceptions_notify(struct notifier_block *self, - unsigned long val, void *data); void __kretprobe_trampoline(void); void __kprobes *trampoline_probe_handler(struct pt_regs *regs); =20 diff --git a/arch/ia64/include/asm/kprobes.h b/arch/ia64/include/asm/kprobe= s.h index 9e956768946cc..56004f97df6d2 100644 --- a/arch/ia64/include/asm/kprobes.h +++ b/arch/ia64/include/asm/kprobes.h @@ -107,8 +107,6 @@ struct arch_specific_insn { }; =20 extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr); -extern int kprobe_exceptions_notify(struct notifier_block *self, - unsigned long val, void *data); =20 extern void arch_remove_kprobe(struct kprobe *p); =20 diff --git a/arch/mips/include/asm/kprobes.h b/arch/mips/include/asm/kprobe= s.h index 68b1e5d458cfb..bc27d99c94363 100644 --- a/arch/mips/include/asm/kprobes.h +++ b/arch/mips/include/asm/kprobes.h @@ -71,8 +71,6 @@ struct kprobe_ctlblk { struct prev_kprobe prev_kprobe; }; =20 -extern int kprobe_exceptions_notify(struct notifier_block *self, - unsigned long val, void *data); =20 #endif /* CONFIG_KPROBES */ #endif /* _ASM_KPROBES_H */ diff --git a/arch/powerpc/include/asm/kprobes.h b/arch/powerpc/include/asm/= kprobes.h index c8e4b4fd4e330..4525a9c68260d 100644 --- a/arch/powerpc/include/asm/kprobes.h +++ b/arch/powerpc/include/asm/kprobes.h @@ -84,8 +84,6 @@ struct arch_optimized_insn { kprobe_opcode_t *insn; }; =20 -extern int kprobe_exceptions_notify(struct notifier_block *self, - unsigned long val, void *data); extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr); extern int kprobe_handler(struct pt_regs *regs); extern int kprobe_post_handler(struct pt_regs *regs); diff --git a/arch/s390/include/asm/kprobes.h b/arch/s390/include/asm/kprobe= s.h index 83f732ca3af4d..3f87125dd9b0d 100644 --- a/arch/s390/include/asm/kprobes.h +++ b/arch/s390/include/asm/kprobes.h @@ -72,8 +72,6 @@ struct kprobe_ctlblk { void arch_remove_kprobe(struct kprobe *p); =20 int kprobe_fault_handler(struct pt_regs *regs, int trapnr); -int kprobe_exceptions_notify(struct notifier_block *self, - unsigned long val, void *data); =20 #define flush_insn_slot(p) do { } while (0) =20 diff --git a/arch/sh/include/asm/kprobes.h b/arch/sh/include/asm/kprobes.h index eeba83e0a7d29..65d4c3316a5bd 100644 --- a/arch/sh/include/asm/kprobes.h +++ b/arch/sh/include/asm/kprobes.h @@ -46,8 +46,6 @@ struct kprobe_ctlblk { }; =20 extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr); -extern int kprobe_exceptions_notify(struct notifier_block *self, - unsigned long val, void *data); extern int kprobe_handle_illslot(unsigned long pc); #else =20 diff --git a/arch/sparc/include/asm/kprobes.h b/arch/sparc/include/asm/kpro= bes.h index 06c2bc767ef75..aec742cd898f2 100644 --- a/arch/sparc/include/asm/kprobes.h +++ b/arch/sparc/include/asm/kprobes.h @@ -47,8 +47,6 @@ struct kprobe_ctlblk { struct prev_kprobe prev_kprobe; }; =20 -int kprobe_exceptions_notify(struct notifier_block *self, - unsigned long val, void *data); int kprobe_fault_handler(struct pt_regs *regs, int trapnr); asmlinkage void __kprobes kprobe_trap(unsigned long trap_level, struct pt_regs *regs); diff --git a/arch/x86/include/asm/kprobes.h b/arch/x86/include/asm/kprobes.h index a2e9317aad495..5939694dfb28d 100644 --- a/arch/x86/include/asm/kprobes.h +++ b/arch/x86/include/asm/kprobes.h @@ -113,8 +113,6 @@ struct kprobe_ctlblk { }; =20 extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr); -extern int kprobe_exceptions_notify(struct notifier_block *self, - unsigned long val, void *data); extern int kprobe_int3_handler(struct pt_regs *regs); =20 #else diff --git a/include/linux/kprobes.h b/include/linux/kprobes.h index 85a64cb95d755..987911cdc90a2 100644 --- a/include/linux/kprobes.h +++ b/include/linux/kprobes.h @@ -450,6 +450,10 @@ int kprobe_get_kallsym(unsigned int symnum, unsigned l= ong *value, char *type, =20 int arch_kprobe_get_kallsym(unsigned int *symnum, unsigned long *value, char *type, char *sym); + +int kprobe_exceptions_notify(struct notifier_block *self, + unsigned long val, void *data); + #else /* !CONFIG_KPROBES: */ =20 static inline int kprobe_fault_handler(struct pt_regs *regs, int trapnr) --=20 2.39.2 From nobody Fri Sep 12 07:29:49 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4DC4C04E69 for ; Thu, 10 Aug 2023 14:23:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235678AbjHJOX5 (ORCPT ); Thu, 10 Aug 2023 10:23:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234457AbjHJOXm (ORCPT ); Thu, 10 Aug 2023 10:23:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47DDA2724; Thu, 10 Aug 2023 07:23:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CD0AF65DD3; Thu, 10 Aug 2023 14:23:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89935C433C8; Thu, 10 Aug 2023 14:23:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691677420; bh=v595bHoeyNn6tQTZFJfqAWz27K2FECm/q0MGvugZTZU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DxT8ZQR60KYnGL1DSAXEZb3e1nnFuS8GiPW51vMID+/XwWUWUbg5irPFhH22d+v5I 5P6keUTpqVVa6BuazI5kKmsRIVW+YoGuU3R9tfmzBlVq7RuFqDjkHpl7L0HQENHSjZ dqogsDVC0AgR5QsqljD6o0S64dhRp9SzJO1TgwJz/WNdMfM02VHc3Wk8sCW2QGYrei u9bZmviAMmcQHlvPrvCws57z2H9HKs18wiTjUFMI9BUI22xd24e9YF8GmzbclD2/hS YPszKWmjRf+wEWSq8Xr00+3rsFkOfBHam8jOtbyM9s2NLNhUkREwhzS78LuHQUgb3R 40Lce0N0wPBkA== From: Arnd Bergmann To: Andrew Morton , linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Richard Henderson , Ivan Kokshaysky , Matt Turner , Huacai Chen , WANG Xuerui , "David S. Miller" , Al Viro , "Steven Rostedt (Google)" , Qing Zhang , Donglin Peng , Qi Hu , linux-alpha@vger.kernel.org, linux-ia64@vger.kernel.org, loongarch@lists.linux.dev, sparclinux@vger.kernel.org Subject: [PATCH 15/17] arch: fix asm-offsets.c building with -Wmissing-prototypes Date: Thu, 10 Aug 2023 16:19:33 +0200 Message-Id: <20230810141947.1236730-16-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810141947.1236730-1-arnd@kernel.org> References: <20230810141947.1236730-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann When -Wmissing-prototypes is enabled, the some asm-offsets.c files fail to build, even when this warning is disabled in the Makefile for normal files: arch/sparc/kernel/asm-offsets.c:22:5: error: no previous prototype for 'spa= rc32_foo' [-Werror=3Dmissing-prototypes] arch/sparc/kernel/asm-offsets.c:48:5: error: no previous prototype for 'foo= ' [-Werror=3Dmissing-prototypes] Address this by making use of the same trick we have on other architectures, renaming the unused global function to main(), which has an implicit prototype. On loongarch, there are many functions in this file, so the trick does not work, adding explicit declarations works around it in a slightly more ugly way but is the best I could come up with here. Signed-off-by: Arnd Bergmann Acked-by: Palmer Dabbelt # RISC-V --- arch/alpha/kernel/asm-offsets.c | 2 +- arch/ia64/kernel/asm-offsets.c | 2 +- arch/loongarch/kernel/asm-offsets.c | 12 ++++++++++++ arch/sparc/kernel/asm-offsets.c | 13 ++----------- 4 files changed, 16 insertions(+), 13 deletions(-) diff --git a/arch/alpha/kernel/asm-offsets.c b/arch/alpha/kernel/asm-offset= s.c index b121294bee266..b87487e70488d 100644 --- a/arch/alpha/kernel/asm-offsets.c +++ b/arch/alpha/kernel/asm-offsets.c @@ -12,7 +12,7 @@ #include #include =20 -void foo(void) +int main(void) { DEFINE(TI_TASK, offsetof(struct thread_info, task)); DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); diff --git a/arch/ia64/kernel/asm-offsets.c b/arch/ia64/kernel/asm-offsets.c index be3b90fef2e92..62b9aaf10b3c0 100644 --- a/arch/ia64/kernel/asm-offsets.c +++ b/arch/ia64/kernel/asm-offsets.c @@ -20,7 +20,7 @@ #include "../kernel/sigframe.h" #include "../kernel/fsyscall_gtod_data.h" =20 -void foo(void) +int main(void) { DEFINE(IA64_TASK_SIZE, sizeof (struct task_struct)); DEFINE(IA64_THREAD_INFO_SIZE, sizeof (struct thread_info)); diff --git a/arch/loongarch/kernel/asm-offsets.c b/arch/loongarch/kernel/as= m-offsets.c index 8da0726777edb..735115f8341c9 100644 --- a/arch/loongarch/kernel/asm-offsets.c +++ b/arch/loongarch/kernel/asm-offsets.c @@ -14,6 +14,7 @@ #include #include =20 +void output_ptreg_defines(void); void output_ptreg_defines(void) { COMMENT("LoongArch pt_regs offsets."); @@ -61,6 +62,7 @@ void output_ptreg_defines(void) BLANK(); } =20 +void output_task_defines(void); void output_task_defines(void) { COMMENT("LoongArch task_struct offsets."); @@ -76,6 +78,7 @@ void output_task_defines(void) BLANK(); } =20 +void output_thread_info_defines(void); void output_thread_info_defines(void) { COMMENT("LoongArch thread_info offsets."); @@ -92,6 +95,7 @@ void output_thread_info_defines(void) BLANK(); } =20 +void output_thread_defines(void); void output_thread_defines(void) { COMMENT("LoongArch specific thread_struct offsets."); @@ -128,6 +132,7 @@ void output_thread_defines(void) BLANK(); } =20 +void output_thread_fpu_defines(void); void output_thread_fpu_defines(void) { OFFSET(THREAD_FPR0, loongarch_fpu, fpr[0]); @@ -169,6 +174,7 @@ void output_thread_fpu_defines(void) BLANK(); } =20 +void output_thread_lbt_defines(void); void output_thread_lbt_defines(void) { OFFSET(THREAD_SCR0, loongarch_lbt, scr0); @@ -179,6 +185,7 @@ void output_thread_lbt_defines(void) BLANK(); } =20 +void output_mm_defines(void); void output_mm_defines(void) { COMMENT("Size of struct page"); @@ -211,6 +218,7 @@ void output_mm_defines(void) BLANK(); } =20 +void output_sc_defines(void); void output_sc_defines(void) { COMMENT("Linux sigcontext offsets."); @@ -219,6 +227,7 @@ void output_sc_defines(void) BLANK(); } =20 +void output_signal_defines(void); void output_signal_defines(void) { COMMENT("Linux signal numbers."); @@ -257,6 +266,7 @@ void output_signal_defines(void) } =20 #ifdef CONFIG_SMP +void output_smpboot_defines(void); void output_smpboot_defines(void) { COMMENT("Linux smp cpu boot offsets."); @@ -267,6 +277,7 @@ void output_smpboot_defines(void) #endif =20 #ifdef CONFIG_HIBERNATION +void output_pbe_defines(void); void output_pbe_defines(void) { COMMENT("Linux struct pbe offsets."); @@ -279,6 +290,7 @@ void output_pbe_defines(void) #endif =20 #ifdef CONFIG_FUNCTION_GRAPH_TRACER +void output_fgraph_ret_regs_defines(void); void output_fgraph_ret_regs_defines(void) { COMMENT("LoongArch fgraph_ret_regs offsets."); diff --git a/arch/sparc/kernel/asm-offsets.c b/arch/sparc/kernel/asm-offset= s.c index 5784f2df489a4..4c8c9a6df2aa5 100644 --- a/arch/sparc/kernel/asm-offsets.c +++ b/arch/sparc/kernel/asm-offsets.c @@ -18,16 +18,12 @@ =20 #include =20 -#ifdef CONFIG_SPARC32 -int sparc32_foo(void) +int main(void) { +#ifdef CONFIG_SPARC32 DEFINE(AOFF_thread_fork_kpsr, offsetof(struct thread_struct, fork_kpsr)); - return 0; -} #else -int sparc64_foo(void) -{ #ifdef CONFIG_HIBERNATION BLANK(); OFFSET(SC_REG_FP, saved_context, fp); @@ -41,12 +37,7 @@ int sparc64_foo(void) OFFSET(SC_REG_G5, saved_context, g5); OFFSET(SC_REG_G6, saved_context, g6); #endif - return 0; -} #endif - -int foo(void) -{ BLANK(); DEFINE(AOFF_task_thread, offsetof(struct task_struct, thread)); BLANK(); --=20 2.39.2 From nobody Fri Sep 12 07:29:49 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 50A43C0729B for ; Thu, 10 Aug 2023 14:24:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235687AbjHJOYw (ORCPT ); Thu, 10 Aug 2023 10:24:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234753AbjHJOYt (ORCPT ); Thu, 10 Aug 2023 10:24:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FE82E4B; Thu, 10 Aug 2023 07:24:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8238465DEC; Thu, 10 Aug 2023 14:24:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12DA9C433C7; Thu, 10 Aug 2023 14:24:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691677484; bh=8LWcx+IlJfknXjQL350GNL29AdKspQPSIRVhseS1lkw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JZfjDiGQ/9d8bPoEeZBIv+iyYTx5hnCYbQIEeb3M4lu45DFUtn3CcrUdNhk+j3MJB 7mD1S394Bhufd1xc21NWQD1hYdbiGhezZIiXpOKCjt7qQ4CIFQSRrrV9fu7aEnuOny D6/+7soD9bU3TfolwdYQyGSoBLiFsIrsTBjwo9tJlHd6avApzTk0+9hncIb5smgVnQ Ucl2UrzjcepyCJzAHZasVd2Mj5SZyqlnWUPpqcedPLhyC1KhaHzmLfadjolf4D3cDw 5REN5bve4WltLoI3gWeCQ2EuCQ/ht5QYvCcl8KksxWxnowvhylAOGxDNJbrgcaXI4D 5ILQnPfkuftCg== From: Arnd Bergmann To: Andrew Morton , linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Matt Turner , Vineet Gupta , Russell King , Catalin Marinas , Will Deacon , Guo Ren , Brian Cain , Huacai Chen , WANG Xuerui , Geert Uytterhoeven , Michal Simek , Thomas Bogendoerfer , Dinh Nguyen , Jonas Bonn , Stafford Horne , "James E.J. Bottomley" , Helge Deller , Michael Ellerman , Christophe Leroy , Palmer Dabbelt , Heiko Carstens , John Paul Adrian Glaubitz , x86@kernel.org, Borislav Petkov , Nathan Chancellor , Nick Desaulniers , Guenter Roeck , Stephen Rothwell , linux-next@vger.kernel.org, linux-alpha@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, sparclinux@vger.kernel.org, Richard Henderson , Ivan Kokshaysky , Stefan Kristiansson , Yoshinori Sato , Rich Felker , "David S. Miller" , Chris Zankel , Max Filippov , Christian Brauner , Paul Walmsley , Albert Ou , Youling Tang , Tiezhu Yang , Masahiro Yamada , Randy Dunlap , "Masami Hiramatsu (Google)" , "Paul E. McKenney" , Miguel Ojeda , Zhen Lei , Xin Li , Nhat Pham , Greg Kroah-Hartman , =?UTF-8?q?Marc=20Aur=C3=A8le=20La=20France?= , Johannes Weiner , linux-parisc@vger.kernel.org, linux-sh@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH 16/17] [RFC] arch: turn -Wmissing-prototypes off conditionally Date: Thu, 10 Aug 2023 16:19:34 +0200 Message-Id: <20230810141947.1236730-17-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810141947.1236730-1-arnd@kernel.org> References: <20230810141947.1236730-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann I have cleaned up the -Wmissing-prototypes warnings for most of the major a= rchitectures as well as all drivers that get enabled for CONFIG_COMPILE_TEST, so now the= se should be close to fixed on x86, arm, arm64, powerpc, s390, and riscv. The other architectures tend to have a lot of these warning in architecture= specific code, primarily from functions that are only called from assembler code and= do not otherwise need a declaration but still cause a warning without one. Oth= er cases are simply functions that should just be static or are missing an #include = statement. In order to be able to turn the warning on globally by default without brea= king all these architectures, add a list of exceptions for architecture directories = that can revert back to the old behavior of not warning based on a new CONFIG_WNO_MISSING_PROTOTYPES option. Signed-off-by: Arnd Bergmann Acked-by: Palmer Dabbelt # RISC-V --- Below is the full list of warnings I see in defconfig builds for reference,= these do not need to be part of the changelog. arch/alpha/include/asm/core_t2.h:465:20: error: no previous prototype for '= t2_readb' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/core_t2.h:476:21: error: no previous prototype for '= t2_readw' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/core_t2.h:491:21: error: no previous prototype for '= t2_readl' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/core_t2.h:502:21: error: no previous prototype for '= t2_readq' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/core_t2.h:515:22: error: no previous prototype for '= t2_writeb' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/core_t2.h:526:22: error: no previous prototype for '= t2_writew' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/core_t2.h:541:22: error: no previous prototype for '= t2_writel' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/core_t2.h:550:22: error: no previous prototype for '= t2_writeq' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/core_t2.h:562:31: error: no previous prototype for '= t2_ioportmap' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/core_t2.h:567:31: error: no previous prototype for '= t2_ioremap' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/core_t2.h:573:21: error: no previous prototype for '= t2_is_ioaddr' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/core_t2.h:578:21: error: no previous prototype for '= t2_is_mmio' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/core_t2.h:587:23: error: no previous prototype for '= t2_ioread16' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/core_t2.h:587:23: error: no previous prototype for '= t2_ioread32' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/core_t2.h:587:23: error: no previous prototype for '= t2_ioread64' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/core_t2.h:587:23: error: no previous prototype for '= t2_ioread8' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/core_t2.h:594:22: error: no previous prototype for '= t2_iowrite16' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/core_t2.h:594:22: error: no previous prototype for '= t2_iowrite32' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/core_t2.h:594:22: error: no previous prototype for '= t2_iowrite64' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/core_t2.h:594:22: error: no previous prototype for '= t2_iowrite8' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/core_t2.h:614:33: error: no previous prototype for '= t2_iounmap' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:115:30: error: no previous prototype for 'j= ensen_local_inb' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:120:22: error: no previous prototype for 'j= ensen_local_outb' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:126:30: error: no previous prototype for 'j= ensen_bus_inb' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:135:22: error: no previous prototype for 'j= ensen_bus_outb' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:155:20: error: no previous prototype for 'j= ensen_inb' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:163:22: error: no previous prototype for 'j= ensen_outb' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:171:21: error: no previous prototype for 'j= ensen_inw' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:181:21: error: no previous prototype for 'j= ensen_inl' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:187:21: error: no previous prototype for 'j= ensen_inq' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:193:22: error: no previous prototype for 'j= ensen_outw' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:200:22: error: no previous prototype for 'j= ensen_outl' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:207:22: error: no previous prototype for 'j= ensen_outq' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:218:20: error: no previous prototype for 'j= ensen_readb' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:230:21: error: no previous prototype for 'j= ensen_readw' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:242:21: error: no previous prototype for 'j= ensen_readl' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:250:21: error: no previous prototype for 'j= ensen_readq' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:263:22: error: no previous prototype for 'j= ensen_writeb' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:271:22: error: no previous prototype for 'j= ensen_writew' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:279:22: error: no previous prototype for 'j= ensen_writel' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:287:22: error: no previous prototype for 'j= ensen_writeq' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:297:31: error: no previous prototype for 'j= ensen_ioportmap' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:302:31: error: no previous prototype for 'j= ensen_ioremap' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:308:21: error: no previous prototype for 'j= ensen_is_ioaddr' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:313:21: error: no previous prototype for 'j= ensen_is_mmio' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:322:23: error: no previous prototype for 'j= ensen_ioread16' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:322:23: error: no previous prototype for 'j= ensen_ioread32' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:322:23: error: no previous prototype for 'j= ensen_ioread64' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:322:23: error: no previous prototype for 'j= ensen_ioread8' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:329:22: error: no previous prototype for 'j= ensen_iowrite16' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:329:22: error: no previous prototype for 'j= ensen_iowrite32' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:329:22: error: no previous prototype for 'j= ensen_iowrite64' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:329:22: error: no previous prototype for 'j= ensen_iowrite8' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:348:33: error: no previous prototype for 'j= ensen_iounmap' [-Werror=3Dmissing-prototypes] arch/alpha/include/asm/jensen.h:92:22: error: no previous prototype for 'je= nsen_set_hae' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/bugs.c:19:9: error: no previous prototype for 'cpu_show_m= eltdown' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/bugs.c:28:9: error: no previous prototype for 'cpu_show_s= pectre_v1' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/bugs.c:37:9: error: no previous prototype for 'cpu_show_s= pectre_v2' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/console.c:39:1: error: no previous prototype for 'locate_= and_init_vga' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/console.c:72:1: error: no previous prototype for 'find_co= nsole_vga_hose' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/core_cia.c:284:1: error: no previous prototype for 'cia_p= ci_tbi_try2' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/core_cia.c:580:1: error: no previous prototype for 'cia_s= ave_srm_settings' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/core_cia.c:606:1: error: no previous prototype for 'cia_r= estore_srm_settings' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/core_lca.c:481:1: error: no previous prototype for 'lca_c= lock_print' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/core_lca.c:498:1: error: no previous prototype for 'lca_g= et_clock' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/core_lca.c:508:1: error: no previous prototype for 'lca_c= lock_fiddle' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/io.c:654:1: error: no previous prototype for 'scr_memcpyw= ' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/irq.c:96:1: error: no previous prototype for 'handle_irq'= [-Werror=3Dmissing-prototypes] arch/alpha/kernel/irq_alpha.c:45:1: error: no previous prototype for 'do_en= tInt' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/pci.c:285:1: error: no previous prototype for 'pcibios_cl= aim_one_bus' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/ptrace.c:322:26: error: no previous prototype for 'syscal= l_trace_enter' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/ptrace.c:334:1: error: no previous prototype for 'syscall= _trace_leave' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/signal.c:205:1: error: no previous prototype for 'do_sigr= eturn' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/signal.c:233:1: error: no previous prototype for 'do_rt_s= igreturn' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/signal.c:523:1: error: no previous prototype for 'do_work= _pending' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/smc37c669.c:2434:1: error: no previous prototype for 'SMC= 37c669_dump_registers' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/smc37c669.c:2467:13: error: no previous prototype for 'SM= C669_Init' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/smc37c93x.c:238:12: error: no previous prototype for 'SMC= 93x_Init' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/srmcons.c:272:1: error: no previous prototype for 'regist= er_srm_console' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/srmcons.c:282:1: error: no previous prototype for 'unregi= ster_srm_console' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/sys_nautilus.c:131:1: error: no previous prototype for 'n= autilus_machine_check' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/sys_nautilus.c:201:1: error: no previous prototype for 'n= autilus_init_pci' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/sys_nautilus.c:82:1: error: no previous prototype for 'na= utilus_kill_arch' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/sys_sio.c:312:1: error: no previous prototype for 'sio_ki= ll_arch' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/traps.c:210:1: error: no previous prototype for 'do_entAr= ith' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/traps.c:232:1: error: no previous prototype for 'do_entIF= ' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/traps.c:399:1: error: no previous prototype for 'do_entDb= g' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/traps.c:435:1: error: no previous prototype for 'do_entUn= a' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/traps.c:720:1: error: no previous prototype for 'do_entUn= aUser' [-Werror=3Dmissing-prototypes] arch/alpha/kernel/traps.c:975:1: error: no previous prototype for 'trap_ini= t' [-Werror=3Dmissing-prototypes] arch/alpha/lib/checksum.c:145:9: error: no previous prototype for 'ip_fast_= csum' [-Werror=3Dmissing-prototypes] arch/alpha/lib/checksum.c:163:8: error: no previous prototype for 'csum_par= tial' [-Werror=3Dmissing-prototypes] arch/alpha/lib/checksum.c:180:9: error: no previous prototype for 'ip_compu= te_csum' [-Werror=3Dmissing-prototypes] arch/alpha/lib/checksum.c:45:9: error: no previous prototype for 'csum_tcpu= dp_magic' [-Werror=3Dmissing-prototypes] arch/alpha/lib/checksum.c:54:8: error: no previous prototype for 'csum_tcpu= dp_nofold' [-Werror=3Dmissing-prototypes] arch/alpha/lib/fpreg.c:129:1: error: no previous prototype for 'alpha_read_= fp_reg_s' [-Werror=3Dmissing-prototypes] arch/alpha/lib/fpreg.c:186:1: error: no previous prototype for 'alpha_write= _fp_reg_s' [-Werror=3Dmissing-prototypes] arch/alpha/lib/fpreg.c:20:1: error: no previous prototype for 'alpha_read_f= p_reg' [-Werror=3Dmissing-prototypes] arch/alpha/lib/fpreg.c:75:1: error: no previous prototype for 'alpha_write_= fp_reg' [-Werror=3Dmissing-prototypes] arch/alpha/lib/memcpy.c:153:8: error: no previous prototype for 'memcpy' [-= Werror=3Dmissing-prototypes] arch/alpha/mm/fault.c:85:1: error: no previous prototype for 'do_page_fault= ' [-Werror=3Dmissing-prototypes] arch/alpha/mm/init.c:261:1: error: no previous prototype for 'srm_paging_st= op' [-Werror=3Dmissing-prototypes] arch/arc/kernel/ctx_sw.c:21:1: error: no previous prototype for '__switch_t= o' [-Werror=3Dmissing-prototypes] arch/arc/kernel/devtree.c:20:21: error: no previous prototype for 'arc_earl= y_base_baud' [-Werror=3Dmissing-prototypes] arch/arc/kernel/irq.c:42:6: error: no previous prototype for 'arch_do_IRQ' = [-Werror=3Dmissing-prototypes] arch/arc/kernel/kprobes.c:193:15: error: no previous prototype for 'arc_kpr= obe_handler' [-Werror=3Dmissing-prototypes] arch/arc/kernel/ptrace.c:344:16: error: no previous prototype for 'syscall_= trace_entry' [-Werror=3Dmissing-prototypes] arch/arc/kernel/ptrace.c:358:17: error: no previous prototype for 'syscall_= trace_exit' [-Werror=3Dmissing-prototypes] arch/arc/kernel/setup.c:498:13: error: no previous prototype for 'handle_ub= oot_args' [-Werror=3Dmissing-prototypes] arch/arc/kernel/signal.c:401:6: error: no previous prototype for 'do_signal= ' [-Werror=3Dmissing-prototypes] arch/arc/kernel/signal.c:434:6: error: no previous prototype for 'do_notify= _resume' [-Werror=3Dmissing-prototypes] arch/arc/kernel/stacktrace.c:116:1: error: no previous prototype for 'arc_u= nwind_core' [-Werror=3Dmissing-prototypes] arch/arc/kernel/traps.c:110:6: error: no previous prototype for 'do_non_swi= _trap' [-Werror=3Dmissing-prototypes] arch/arc/kernel/traps.c:141:6: error: no previous prototype for 'do_insterr= or_or_kprobe' [-Werror=3Dmissing-prototypes] arch/arc/kernel/traps.c:68:48: error: no previous prototype for 'do_privile= ge_fault' [-Werror=3Dmissing-prototypes] arch/arc/kernel/traps.c:69:44: error: no previous prototype for 'do_extensi= on_fault' [-Werror=3Dmissing-prototypes] arch/arc/kernel/traps.c:70:48: error: no previous prototype for 'insterror_= is_error' [-Werror=3Dmissing-prototypes] arch/arc/kernel/traps.c:71:52: error: no previous prototype for 'do_memory_= error' [-Werror=3Dmissing-prototypes] arch/arc/kernel/traps.c:72:42: error: no previous prototype for 'trap_is_br= kpt' [-Werror=3Dmissing-prototypes] arch/arc/kernel/traps.c:73:44: error: no previous prototype for 'do_misalig= ned_error' [-Werror=3Dmissing-prototypes] arch/arc/kernel/traps.c:74:56: error: no previous prototype for 'do_trap5_e= rror' [-Werror=3Dmissing-prototypes] arch/arc/kernel/traps.c:79:5: error: no previous prototype for 'do_misalign= ed_access' [-Werror=3Dmissing-prototypes] arch/arc/kernel/traps.c:93:6: error: no previous prototype for 'do_machine_= check_fault' [-Werror=3Dmissing-prototypes] arch/arc/mm/cache.c:1085:22: error: no previous prototype for 'arc_ioc_setu= p' [-Werror=3Dmissing-prototypes] arch/arc/mm/cache.c:1147:13: error: no previous prototype for 'arc_cache_in= it_master' [-Werror=3Dmissing-prototypes] arch/arc/mm/cache.c:584:15: error: no previous prototype for 'slc_op_rgn' [= -Werror=3Dmissing-prototypes] arch/arc/mm/cache.c:647:15: error: no previous prototype for 'slc_op_line' = [-Werror=3Dmissing-prototypes] arch/arc/mm/fault.c:72:6: error: no previous prototype for 'do_page_fault' = [-Werror=3Dmissing-prototypes] arch/arc/mm/init.c:35:13: error: no previous prototype for 'arc_get_mem_sz'= [-Werror=3Dmissing-prototypes] arch/arc/mm/init.c:83:13: error: no previous prototype for 'setup_arch_memo= ry' [-Werror=3Dmissing-prototypes] arch/arc/mm/tlb.c:392:6: error: no previous prototype for 'create_tlb' [-We= rror=3Dmissing-prototypes] arch/arc/mm/tlb.c:723:6: error: no previous prototype for 'do_tlb_overlap_f= ault' [-Werror=3Dmissing-prototypes] arch/csky/kernel/ptrace.c:320:16: error: no previous prototype for 'syscall= _trace_enter' [-Werror=3Dmissing-prototypes] arch/csky/kernel/ptrace.c:336:17: error: no previous prototype for 'syscall= _trace_exit' [-Werror=3Dmissing-prototypes] arch/csky/kernel/setup.c:116:34: error: no previous prototype for 'csky_sta= rt' [-Werror=3Dmissing-prototypes] arch/csky/kernel/signal.c:255:17: error: no previous prototype for 'do_noti= fy_resume' [-Werror=3Dmissing-prototypes] arch/csky/kernel/traps.c:150:15: error: no previous prototype for 'do_trap_= unknown' [-Werror=3Dmissing-prototypes] arch/csky/kernel/traps.c:152:15: error: no previous prototype for 'do_trap_= zdiv' [-Werror=3Dmissing-prototypes] arch/csky/kernel/traps.c:154:15: error: no previous prototype for 'do_trap_= buserr' [-Werror=3Dmissing-prototypes] arch/csky/kernel/traps.c:157:17: error: no previous prototype for 'do_trap_= misaligned' [-Werror=3Dmissing-prototypes] arch/csky/kernel/traps.c:168:17: error: no previous prototype for 'do_trap_= bkpt' [-Werror=3Dmissing-prototypes] arch/csky/kernel/traps.c:187:17: error: no previous prototype for 'do_trap_= illinsn' [-Werror=3Dmissing-prototypes] arch/csky/kernel/traps.c:210:17: error: no previous prototype for 'do_trap_= fpe' [-Werror=3Dmissing-prototypes] arch/csky/kernel/traps.c:220:17: error: no previous prototype for 'do_trap_= priv' [-Werror=3Dmissing-prototypes] arch/csky/kernel/traps.c:230:17: error: no previous prototype for 'trap_c' = [-Werror=3Dmissing-prototypes] arch/csky/kernel/traps.c:57:13: error: no previous prototype for 'trap_init= ' [-Werror=3Dmissing-prototypes] arch/csky/kernel/vdso/vgettimeofday.c:12:5: error: no previous prototype fo= r '__vdso_clock_gettime64' [-Werror=3Dmissing-prototypes] arch/csky/kernel/vdso/vgettimeofday.c:18:5: error: no previous prototype fo= r '__vdso_gettimeofday' [-Werror=3Dmissing-prototypes] arch/csky/kernel/vdso/vgettimeofday.c:24:5: error: no previous prototype fo= r '__vdso_clock_getres' [-Werror=3Dmissing-prototypes] arch/csky/kernel/vdso/vgettimeofday.c:6:5: error: no previous prototype for= '__vdso_clock_gettime' [-Werror=3Dmissing-prototypes] arch/csky/mm/fault.c:187:17: error: no previous prototype for 'do_page_faul= t' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/acpi.c:715:5: error: no previous prototype for 'acpi_map_c= pu2node' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/cyclone.c:18:13: error: no previous prototype for 'cyclone= _setup' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/cyclone.c:38:12: error: no previous prototype for 'init_cy= clone_clock' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/efi.c:971:1: error: no previous prototype for 'find_memmap= _space' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/elfcore.c:10:12: error: no previous prototype for 'elf_cor= e_extra_phdrs' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/elfcore.c:15:5: error: no previous prototype for 'elf_core= _write_extra_phdrs' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/elfcore.c:44:5: error: no previous prototype for 'elf_core= _write_extra_data' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/elfcore.c:63:8: error: no previous prototype for 'elf_core= _extra_data_size' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/iosapic.c:265:1: error: no previous prototype for 'kexec_d= isable_iosapic' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/irq.c:128:6: error: no previous prototype for 'fixup_irqs'= [-Werror=3Dmissing-prototypes] arch/ia64/kernel/irq_ia64.c:429:1: error: no previous prototype for 'ia64_h= andle_irq' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/irq_ia64.c:512:6: error: no previous prototype for 'ia64_p= rocess_pending_intr' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/irq_ia64.c:587:1: error: no previous prototype for 'regist= er_percpu_irq' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/mca.c:1284:1: error: no previous prototype for 'ia64_mca_h= andler' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/mca.c:504:1: error: no previous prototype for 'search_mca_= table' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/mca.c:607:1: error: no previous prototype for 'ia64_mca_re= gister_cpev' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/mca_drv.c:156:1: error: no previous prototype for 'mca_han= dler_bh' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/mca_drv.c:768:12: error: no previous prototype for 'mca_ex= ternal_handler_init' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/mca_drv.c:782:13: error: no previous prototype for 'mca_ex= ternal_handler_exit' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/module.c:245:1: error: no previous prototype for 'plt_targ= et' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/process.c:156:1: error: no previous prototype for 'console= _print' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/process.c:162:1: error: no previous prototype for 'do_noti= fy_resume_user' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/process.c:405:17: error: no previous prototype for 'ia64_c= lone' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/process.c:559:1: error: no previous prototype for 'cpu_hal= t' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/ptrace.c:1158:1: error: no previous prototype for 'syscall= _trace_enter' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/ptrace.c:1179:1: error: no previous prototype for 'syscall= _trace_leave' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/ptrace.c:1994:6: error: no previous prototype for 'syscall= _get_arguments' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/sal.c:43:29: error: cast between incompatible function typ= es from 'long int (*)(void)' to 'struct ia64_sal_retval (*)(u64, ...)' {aka= 'struct ia64_sal_retval (*)(long long unsigned int, ...)'} [-Werror=3Dcast= -function-type] arch/ia64/kernel/salinfo.c:212:1: error: no previous prototype for 'salinfo= _log_wakeup' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/signal.c:108:1: error: no previous prototype for 'ia64_rt_= sigreturn' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/smpboot.c:190:1: error: no previous prototype for 'sync_ma= ster' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/smpboot.c:275:1: error: no previous prototype for 'ia64_sy= nc_itc' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/smpboot.c:435:1: error: no previous prototype for 'start_s= econdary' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/smpboot.c:592:5: error: no previous prototype for 'migrate= _platform_irqs' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/sys_ia64.c:161:1: error: no previous prototype for 'ia64_m= remap' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/sys_ia64.c:171:1: error: no previous prototype for 'ia64_c= lock_getres' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/sys_ia64.c:71:1: error: no previous prototype for 'ia64_ge= tpriority' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/sys_ia64.c:85:1: error: no previous prototype for 'sys_get= pagesize' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/sys_ia64.c:91:1: error: no previous prototype for 'ia64_br= k' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/time.c:260:6: error: no previous prototype for 'ia64_init_= itm' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/traps.c:101:11: error: no previous prototype for 'ia64_bad= _break' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/traps.c:35:1: error: no previous prototype for 'trap_init'= [-Werror=3Dmissing-prototypes] arch/ia64/kernel/traps.c:387:1: error: no previous prototype for 'ia64_ille= gal_op_fault' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/traps.c:416:1: error: no previous prototype for 'ia64_faul= t' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/traps.c:43:1: error: no previous prototype for 'die' [-Wer= ror=3Dmissing-prototypes] arch/ia64/kernel/traps.c:93:1: error: no previous prototype for 'die_if_ker= nel' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/unaligned.c:1314:1: error: no previous prototype for 'ia64= _handle_unaligned' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/uncached.c:177:15: error: no previous prototype for 'uncac= hed_alloc_page' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/uncached.c:218:6: error: no previous prototype for 'uncach= ed_free_page' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/unwind.c:1449:59: error: suggest braces around empty body = in an 'else' statement [-Werror=3Dempty-body] arch/ia64/kernel/unwind.c:2314:1: error: no previous prototype for 'sys_get= unwind' [-Werror=3Dmissing-prototypes] arch/ia64/kernel/unwind.c:862:56: error: suggest braces around empty body i= n an 'else' statement [-Werror=3Dempty-body] arch/ia64/lib/checksum.c:38:1: error: no previous prototype for 'csum_tcpud= p_magic' [-Werror=3Dmissing-prototypes] arch/ia64/lib/checksum.c:49:1: error: no previous prototype for 'csum_tcpud= p_nofold' [-Werror=3Dmissing-prototypes] arch/ia64/lib/checksum.c:80:8: error: no previous prototype for 'csum_parti= al' [-Werror=3Dmissing-prototypes] arch/ia64/lib/checksum.c:97:9: error: no previous prototype for 'ip_compute= _csum' [-Werror=3Dmissing-prototypes] arch/ia64/mm/discontig.c:631:6: error: no previous prototype for 'vmemmap_f= ree' [-Werror=3Dmissing-prototypes] arch/ia64/mm/extable.c:15:1: error: no previous prototype for 'ia64_handle_= exception' [-Werror=3Dmissing-prototypes] arch/ia64/mm/fault.c:66:1: error: no previous prototype for 'ia64_do_page_f= ault' [-Werror=3Dmissing-prototypes] arch/ia64/mm/init.c:161:1: error: no previous prototype for 'free_initrd_me= m' [-Werror=3Dmissing-prototypes] arch/ia64/mm/init.c:309:6: error: no previous prototype for 'ia64_mmu_init'= [-Werror=3Dmissing-prototypes] arch/ia64/mm/tlb.c:369:6: error: no previous prototype for 'ia64_tlb_init' = [-Werror=3Dmissing-prototypes] arch/ia64/pci/pci.c:326:6: error: no previous prototype for 'pcibios_fixup_= device_resources' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/acpi.c:284:13: error: no previous prototype for 'acpi= _numa_arch_fixup' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/module-sections.c:103:5: error: no previous prototype= for 'module_frob_arch_sections' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/process.c:316:15: error: no previous prototype for 'a= rch_align_stack' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/signal.c:1040:6: error: no previous prototype for 'ar= ch_do_signal_or_restart' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/signal.c:894:14: error: no previous prototype for 'ge= t_sigframe' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/signal.c:925:17: error: no previous prototype for 'sy= s_rt_sigreturn' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/smp.c:501:17: error: no previous prototype for 'start= _secondary' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/smp.c:559:5: error: no previous prototype for 'setup_= profiling_timer' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/syscall.c:40:14: error: no previous prototype for 'do= _syscall' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/time.c:32:13: error: no previous prototype for 'const= ant_timer_interrupt' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/topology.c:13:5: error: no previous prototype for 'ar= ch_register_cpu' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/topology.c:27:6: error: no previous prototype for 'ar= ch_unregister_cpu' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/traps.c:1012:25: error: no previous prototype for 'do= _reserved' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/traps.c:1031:17: error: no previous prototype for 'ca= che_parity_error' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/traps.c:1040:25: error: no previous prototype for 'ha= ndle_loongarch_irq' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/traps.c:1051:25: error: no previous prototype for 'do= _vint' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/traps.c:373:6: error: no previous prototype for 'show= _registers' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/traps.c:438:6: error: no previous prototype for 'forc= e_fcsr_sig' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/traps.c:457:5: error: no previous prototype for 'proc= ess_fpemu_return' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/traps.c:492:25: error: no previous prototype for 'do_= fpe' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/traps.c:519:25: error: no previous prototype for 'do_= ade' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/traps.c:533:25: error: no previous prototype for 'do_= ale' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/traps.c:594:25: error: no previous prototype for 'do_= bce' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/traps.c:683:25: error: no previous prototype for 'do_= bp' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/traps.c:762:25: error: no previous prototype for 'do_= watch' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/traps.c:812:25: error: no previous prototype for 'do_= ri' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/traps.c:907:25: error: no previous prototype for 'do_= fpu' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/traps.c:924:25: error: no previous prototype for 'do_= lsx' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/traps.c:946:25: error: no previous prototype for 'do_= lasx' [-Werror=3Dmissing-prototypes] arch/loongarch/kernel/traps.c:981:25: error: no previous prototype for 'do_= lbt' [-Werror=3Dmissing-prototypes] arch/loongarch/mm/fault.c:256:27: error: no previous prototype for 'do_page= _fault' [-Werror=3Dmissing-prototypes] arch/loongarch/mm/hugetlbpage.c:56:5: error: no previous prototype for 'is_= aligned_hugepage_range' [-Werror=3Dmissing-prototypes] arch/loongarch/mm/ioremap.c:18:7: error: no previous prototype for 'early_m= emremap_ro' [-Werror=3Dmissing-prototypes] arch/loongarch/mm/ioremap.c:23:7: error: no previous prototype for 'early_m= emremap_prot' [-Werror=3Dmissing-prototypes] arch/loongarch/mm/tlb.c:264:6: error: no previous prototype for 'setup_tlb_= handler' [-Werror=3Dmissing-prototypes] arch/m68k/amiga/amisound.c:48:13: error: no previous prototype for 'amiga_i= nit_sound' [-Werror=3Dmissing-prototypes] arch/m68k/amiga/amisound.c:71:6: error: no previous prototype for 'amiga_mk= sound' [-Werror=3Dmissing-prototypes] arch/m68k/apollo/config.c:111:5: error: no previous prototype for 'dn_seria= l_console_wait_key' [-Werror=3Dmissing-prototypes] arch/m68k/apollo/config.c:118:6: error: no previous prototype for 'dn_seria= l_console_write' [-Werror=3Dmissing-prototypes] arch/m68k/apollo/config.c:132:6: error: no previous prototype for 'dn_seria= l_print' [-Werror=3Dmissing-prototypes] arch/m68k/apollo/config.c:240:6: error: no previous prototype for 'dn_dummy= _waitbut' [-Werror=3Dmissing-prototypes] arch/m68k/apollo/dn_ints.c:19:6: error: no previous prototype for 'apollo_i= rq_shutdown' [-Werror=3Dmissing-prototypes] arch/m68k/apollo/dn_ints.c:29:6: error: no previous prototype for 'apollo_i= rq_eoi' [-Werror=3Dmissing-prototypes] arch/m68k/apollo/dn_ints.c:43:13: error: no previous prototype for 'dn_init= _IRQ' [-Werror=3Dmissing-prototypes] arch/m68k/apollo/dn_ints.c:8:14: error: no previous prototype for 'apollo_i= rq_startup' [-Werror=3Dmissing-prototypes] arch/m68k/atari/ataints.c:267:13: error: no previous prototype for 'atari_i= nit_IRQ' [-Werror=3Dmissing-prototypes] arch/m68k/atari/atakeyb.c:335:6: error: no previous prototype for 'ikbd_res= et' [-Werror=3Dmissing-prototypes] arch/m68k/atari/atasound.c:36:6: error: no previous prototype for 'atari_mi= crowire_cmd' [-Werror=3Dmissing-prototypes] arch/m68k/atari/atasound.c:53:6: error: no previous prototype for 'atari_mk= sound' [-Werror=3Dmissing-prototypes] arch/m68k/atari/config.c:883:12: error: no previous prototype for 'atari_pl= atform_init' [-Werror=3Dmissing-prototypes] arch/m68k/atari/stram.c:118:12: error: no previous prototype for 'atari_str= am_map_pages' [-Werror=3Dmissing-prototypes] arch/m68k/atari/time.c:140:5: error: no previous prototype for 'atari_mste_= hwclk' [-Werror=3Dmissing-prototypes] arch/m68k/atari/time.c:199:5: error: no previous prototype for 'atari_tt_hw= clk' [-Werror=3Dmissing-prototypes] arch/m68k/atari/time.c:59:1: error: no previous prototype for 'atari_sched_= init' [-Werror=3Dmissing-prototypes] arch/m68k/bvme6000/config.c:133:13: error: no previous prototype for 'bvme6= 000_abort_int' [-Werror=3Dmissing-prototypes] arch/m68k/hp300/time.c:101:13: error: no previous prototype for 'hp300_sche= d_init' [-Werror=3Dmissing-prototypes] arch/m68k/kernel/ints.c:165:17: error: no previous prototype for 'handle_ba= dint' [-Werror=3Dmissing-prototypes] arch/m68k/kernel/process.c:115:16: error: no previous prototype for 'm68k_c= lone' [-Werror=3Dmissing-prototypes] arch/m68k/kernel/process.c:136:16: error: no previous prototype for 'm68k_c= lone3' [-Werror=3Dmissing-prototypes] arch/m68k/kernel/ptrace.c:275:16: error: no previous prototype for 'syscall= _trace_enter' [-Werror=3Dmissing-prototypes] arch/m68k/kernel/ptrace.c:288:17: error: no previous prototype for 'syscall= _trace_leave' [-Werror=3Dmissing-prototypes] arch/m68k/kernel/signal.c:1112:6: error: no previous prototype for 'do_noti= fy_resume' [-Werror=3Dmissing-prototypes] arch/m68k/kernel/signal.c:756:18: error: no previous prototype for 'do_sigr= eturn' [-Werror=3Dmissing-prototypes] arch/m68k/kernel/signal.c:783:18: error: no previous prototype for 'do_rt_s= igreturn' [-Werror=3Dmissing-prototypes] arch/m68k/kernel/sys_m68k.c:378:1: error: no previous prototype for 'sys_ca= cheflush' [-Werror=3Dmissing-prototypes] arch/m68k/kernel/sys_m68k.c:40:17: error: no previous prototype for 'sys_mm= ap2' [-Werror=3Dmissing-prototypes] arch/m68k/kernel/sys_m68k.c:463:1: error: no previous prototype for 'sys_at= omic_cmpxchg_32' [-Werror=3Dmissing-prototypes] arch/m68k/kernel/sys_m68k.c:564:16: error: no previous prototype for 'sys_g= etpagesize' [-Werror=3Dmissing-prototypes] arch/m68k/kernel/sys_m68k.c:569:26: error: no previous prototype for 'sys_g= et_thread_area' [-Werror=3Dmissing-prototypes] arch/m68k/kernel/sys_m68k.c:574:16: error: no previous prototype for 'sys_s= et_thread_area' [-Werror=3Dmissing-prototypes] arch/m68k/kernel/sys_m68k.c:580:16: error: no previous prototype for 'sys_a= tomic_barrier' [-Werror=3Dmissing-prototypes] arch/m68k/kernel/traps.c:1140:17: error: no previous prototype for 'set_esp= 0' [-Werror=3Dmissing-prototypes] arch/m68k/kernel/traps.c:1149:17: error: no previous prototype for 'fpsp040= _die' [-Werror=3Dmissing-prototypes] arch/m68k/kernel/traps.c:1155:17: error: no previous prototype for 'fpemu_s= ignal' [-Werror=3Dmissing-prototypes] arch/m68k/kernel/traps.c:754:17: error: no previous prototype for 'buserr_c= ' [-Werror=3Dmissing-prototypes] arch/m68k/kernel/traps.c:968:6: error: no previous prototype for 'bad_super= _trap' [-Werror=3Dmissing-prototypes] arch/m68k/kernel/vectors.c:51:13: error: no previous prototype for 'base_tr= ap_init' [-Werror=3Dmissing-prototypes] arch/m68k/kernel/vectors.c:74:13: error: no previous prototype for 'trap_in= it' [-Werror=3Dmissing-prototypes] arch/m68k/lib/ashldi3.c:35:1: error: no previous prototype for '__ashldi3' = [-Werror=3Dmissing-prototypes] arch/m68k/lib/ashrdi3.c:35:1: error: no previous prototype for '__ashrdi3' = [-Werror=3Dmissing-prototypes] arch/m68k/lib/lshrdi3.c:35:1: error: no previous prototype for '__lshrdi3' = [-Werror=3Dmissing-prototypes] arch/m68k/lib/muldi3.c:82:1: error: no previous prototype for '__muldi3' [-= Werror=3Dmissing-prototypes] arch/m68k/mac/baboon.c:25:13: error: no previous prototype for 'baboon_init= ' [-Werror=3Dmissing-prototypes] arch/m68k/mac/config.c:961:12: error: no previous prototype for 'mac_platfo= rm_init' [-Werror=3Dmissing-prototypes] arch/m68k/mac/iop.c:235:13: error: no previous prototype for 'iop_init' [-W= error=3Dmissing-prototypes] arch/m68k/mac/macboing.c:164:6: error: no previous prototype for 'mac_mksou= nd' [-Werror=3Dmissing-prototypes] arch/m68k/mac/misc.c:609:5: error: no previous prototype for 'mac_hwclk' [-= Werror=3Dmissing-prototypes] arch/m68k/mac/oss.c:37:13: error: no previous prototype for 'oss_init' [-We= rror=3Dmissing-prototypes] arch/m68k/mac/psc.c:76:13: error: no previous prototype for 'psc_init' [-We= rror=3Dmissing-prototypes] arch/m68k/mac/via.c:111:13: error: no previous prototype for 'via_init' [-W= error=3Dmissing-prototypes] arch/m68k/mac/via.c:593:13: error: no previous prototype for 'via_init_cloc= k' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_arith.c:310:1: error: no previous prototype for 'fp_f= sglmul' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_arith.c:367:1: error: no previous prototype for 'fp_f= sgldiv' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_log.c:102:1: error: no previous prototype for 'fp_fet= oxm1' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_log.c:112:1: error: no previous prototype for 'fp_fet= ox' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_log.c:122:1: error: no previous prototype for 'fp_ftw= otox' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_log.c:132:1: error: no previous prototype for 'fp_fte= ntox' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_log.c:142:1: error: no previous prototype for 'fp_flo= gn' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_log.c:152:1: error: no previous prototype for 'fp_flo= gnp1' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_log.c:162:1: error: no previous prototype for 'fp_flo= g10' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_log.c:172:1: error: no previous prototype for 'fp_flo= g2' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_log.c:182:1: error: no previous prototype for 'fp_fge= texp' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_log.c:203:1: error: no previous prototype for 'fp_fge= tman' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_log.c:29:1: error: no previous prototype for 'fp_fsqr= t' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_trig.c:102:1: error: no previous prototype for 'fp_ft= anh' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_trig.c:112:1: error: no previous prototype for 'fp_fa= tanh' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_trig.c:122:1: error: no previous prototype for 'fp_fs= incos0' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_trig.c:130:1: error: no previous prototype for 'fp_fs= incos1' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_trig.c:138:1: error: no previous prototype for 'fp_fs= incos2' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_trig.c:146:1: error: no previous prototype for 'fp_fs= incos3' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_trig.c:154:1: error: no previous prototype for 'fp_fs= incos4' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_trig.c:162:1: error: no previous prototype for 'fp_fs= incos5' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_trig.c:170:1: error: no previous prototype for 'fp_fs= incos6' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_trig.c:178:1: error: no previous prototype for 'fp_fs= incos7' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_trig.c:22:1: error: no previous prototype for 'fp_fsi= n' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_trig.c:32:1: error: no previous prototype for 'fp_fco= s' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_trig.c:42:1: error: no previous prototype for 'fp_fta= n' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_trig.c:52:1: error: no previous prototype for 'fp_fas= in' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_trig.c:62:1: error: no previous prototype for 'fp_fac= os' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_trig.c:72:1: error: no previous prototype for 'fp_fat= an' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_trig.c:82:1: error: no previous prototype for 'fp_fsi= nh' [-Werror=3Dmissing-prototypes] arch/m68k/math-emu/fp_trig.c:92:1: error: no previous prototype for 'fp_fco= sh' [-Werror=3Dmissing-prototypes] arch/m68k/mm/fault.c:22:5: error: no previous prototype for 'send_fault_sig= ' [-Werror=3Dmissing-prototypes] arch/m68k/mm/fault.c:68:5: error: no previous prototype for 'do_page_fault'= [-Werror=3Dmissing-prototypes] arch/m68k/mm/hwtest.c:29:5: error: no previous prototype for 'hwreg_present= ' [-Werror=3Dmissing-prototypes] arch/m68k/mm/hwtest.c:62:5: error: no previous prototype for 'hwreg_write' = [-Werror=3Dmissing-prototypes] arch/m68k/mm/motorola.c:418:13: error: no previous prototype for 'paging_in= it' [-Werror=3Dmissing-prototypes] arch/m68k/mvme147/config.c:76:13: error: no previous prototype for 'mvme147= _init_IRQ' [-Werror=3Dmissing-prototypes] arch/m68k/mvme16x/config.c:208:6: error: no previous prototype for 'mvme16x= _cons_write' [-Werror=3Dmissing-prototypes] arch/m68k/q40/q40ints.c:112:6: error: no previous prototype for 'q40_mksoun= d' [-Werror=3Dmissing-prototypes] arch/m68k/q40/q40ints.c:152:6: error: no previous prototype for 'q40_sched_= init' [-Werror=3Dmissing-prototypes] arch/m68k/q40/q40ints.c:84:13: error: no previous prototype for 'q40_init_I= RQ' [-Werror=3Dmissing-prototypes] arch/m68k/sun3/idprom.c:86:6: error: no previous prototype for 'sun3_get_mo= del' [-Werror=3Dmissing-prototypes] arch/m68k/sun3x/config.c:29:6: error: no previous prototype for 'sun3_leds'= [-Werror=3Dmissing-prototypes] arch/m68k/sun3x/config.c:42:13: error: no previous prototype for 'config_su= n3x' [-Werror=3Dmissing-prototypes] arch/m68k/sun3x/dvma.c:179:6: error: no previous prototype for 'dvma_unmap_= iommu' [-Werror=3Dmissing-prototypes] arch/m68k/sun3x/prom.c:33:6: error: no previous prototype for 'sun3x_halt' = [-Werror=3Dmissing-prototypes] arch/microblaze/kernel/traps.c:21:6: error: no previous prototype for 'trap= _init' [-Werror=3Dmissing-prototypes] arch/mips/kernel/ftrace.c:305:6: error: no previous prototype for 'prepare_= ftrace_return' [-Werror=3Dmissing-prototypes] arch/mips/kernel/jump_label.c:93:6: error: no previous prototype for 'jump_= label_apply_nops' [-Werror=3Dmissing-prototypes] arch/mips/kernel/linux32.c:102:20: error: no previous prototype for 'sys32_= readahead' [-Werror=3Dmissing-prototypes] arch/mips/kernel/linux32.c:108:17: error: no previous prototype for 'sys32_= sync_file_range' [-Werror=3Dmissing-prototypes] arch/mips/kernel/linux32.c:118:17: error: no previous prototype for 'sys32_= fadvise64_64' [-Werror=3Dmissing-prototypes] arch/mips/kernel/linux32.c:128:17: error: no previous prototype for 'sys32_= fallocate' [-Werror=3Dmissing-prototypes] arch/mips/kernel/machine_kexec.c:136:1: error: no previous prototype for 'm= achine_shutdown' [-Werror=3Dmissing-prototypes] arch/mips/kernel/machine_kexec.c:152:1: error: no previous prototype for 'm= achine_crash_shutdown' [-Werror=3Dmissing-prototypes] arch/mips/kernel/mips-cm.c:204:13: error: no previous prototype for '__mips= _cm_l2sync_phys_base' [-Werror=3Dmissing-prototypes] arch/mips/kernel/mips-mt-fpaff.c:157:17: error: no previous prototype for '= mipsmt_sys_sched_getaffinity' [-Werror=3Dmissing-prototypes] arch/mips/kernel/mips-mt-fpaff.c:65:17: error: no previous prototype for 'm= ipsmt_sys_sched_setaffinity' [-Werror=3Dmissing-prototypes] arch/mips/kernel/mips-mt.c:159:6: error: no previous prototype for 'mips_mt= _set_cpuoptions' [-Werror=3Dmissing-prototypes] arch/mips/kernel/mips-mt.c:50:6: error: no previous prototype for 'mips_mt_= regdump' [-Werror=3Dmissing-prototypes] arch/mips/kernel/signal.c:438:5: error: no previous prototype for 'setup_si= gcontext' [-Werror=3Dmissing-prototypes] arch/mips/kernel/signal.c:438:5: error: no previous prototype for 'setup_si= gcontext' [-Werror=3Dmissing-prototypes] arch/mips/kernel/signal.c:515:5: error: no previous prototype for 'restore_= sigcontext' [-Werror=3Dmissing-prototypes] arch/mips/kernel/signal.c:515:5: error: no previous prototype for 'restore_= sigcontext' [-Werror=3Dmissing-prototypes] arch/mips/kernel/signal.c:636:17: error: no previous prototype for 'sys_sig= return' [-Werror=3Dmissing-prototypes] arch/mips/kernel/signal.c:673:17: error: no previous prototype for 'sys_rt_= sigreturn' [-Werror=3Dmissing-prototypes] arch/mips/kernel/signal.c:673:17: error: no previous prototype for 'sys_rt_= sigreturn' [-Werror=3Dmissing-prototypes] arch/mips/kernel/signal.c:903:17: error: no previous prototype for 'do_noti= fy_resume' [-Werror=3Dmissing-prototypes] arch/mips/kernel/signal.c:903:17: error: no previous prototype for 'do_noti= fy_resume' [-Werror=3Dmissing-prototypes] arch/mips/kernel/signal32.c:33:16: error: no previous prototype for 'sys32_= sigsuspend' [-Werror=3Dmissing-prototypes] arch/mips/kernel/signal_n32.c:53:17: error: no previous prototype for 'sysn= 32_rt_sigreturn' [-Werror=3Dmissing-prototypes] arch/mips/kernel/signal_o32.c:154:17: error: no previous prototype for 'sys= 32_rt_sigreturn' [-Werror=3Dmissing-prototypes] arch/mips/kernel/signal_o32.c:256:17: error: no previous prototype for 'sys= 32_sigreturn' [-Werror=3Dmissing-prototypes] arch/mips/kernel/smp.c:352:17: error: no previous prototype for 'start_seco= ndary' [-Werror=3Dmissing-prototypes] arch/mips/kernel/smp.c:352:17: error: no previous prototype for 'start_seco= ndary' [-Werror=3Dmissing-prototypes] arch/mips/kernel/smp.c:472:5: error: no previous prototype for 'setup_profi= ling_timer' [-Werror=3Dmissing-prototypes] arch/mips/kernel/smp.c:472:5: error: no previous prototype for 'setup_profi= ling_timer' [-Werror=3Dmissing-prototypes] arch/mips/kernel/spram.c:194:6: error: no previous prototype for 'spram_con= fig' [-Werror=3Dmissing-prototypes] arch/mips/kernel/spram.c:194:6: error: no previous prototype for 'spram_con= fig' [-Werror=3Dmissing-prototypes] arch/mips/kernel/syscall.c:51:16: error: no previous prototype for 'sysm_pi= pe' [-Werror=3Dmissing-prototypes] arch/mips/kernel/syscall.c:51:16: error: no previous prototype for 'sysm_pi= pe' [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1027:17: error: no previous prototype for 'do_bp' = [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1027:17: error: no previous prototype for 'do_bp' = [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1114:17: error: no previous prototype for 'do_tr' = [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1114:17: error: no previous prototype for 'do_tr' = [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1151:17: error: no previous prototype for 'do_ri' = [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1151:17: error: no previous prototype for 'do_ri' = [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1402:17: error: no previous prototype for 'do_cpu'= [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1402:17: error: no previous prototype for 'do_cpu'= [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1507:17: error: no previous prototype for 'do_msa_= fpe' [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1507:17: error: no previous prototype for 'do_msa_= fpe' [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1527:17: error: no previous prototype for 'do_msa'= [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1527:17: error: no previous prototype for 'do_msa'= [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1548:17: error: no previous prototype for 'do_mdmx= ' [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1548:17: error: no previous prototype for 'do_mdmx= ' [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1560:17: error: no previous prototype for 'do_watc= h' [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1560:17: error: no previous prototype for 'do_watc= h' [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1587:17: error: no previous prototype for 'do_mche= ck' [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1587:17: error: no previous prototype for 'do_mche= ck' [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1612:17: error: no previous prototype for 'do_mt' = [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1612:17: error: no previous prototype for 'do_mt' = [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1648:17: error: no previous prototype for 'do_dsp'= [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1648:17: error: no previous prototype for 'do_dsp'= [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1656:17: error: no previous prototype for 'do_rese= rved' [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1656:17: error: no previous prototype for 'do_rese= rved' [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1832:17: error: no previous prototype for 'cache_p= arity_error' [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1832:17: error: no previous prototype for 'cache_p= arity_error' [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1880:17: error: no previous prototype for 'do_ftlb= ' [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1880:17: error: no previous prototype for 'do_ftlb= ' [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1909:17: error: no previous prototype for 'do_gsex= c' [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1909:17: error: no previous prototype for 'do_gsex= c' [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1944:6: error: no previous prototype for 'ejtag_ex= ception_handler' [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1944:6: error: no previous prototype for 'ejtag_ex= ception_handler' [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1989:17: error: no previous prototype for 'nmi_exc= eption_handler' [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:1989:17: error: no previous prototype for 'nmi_exc= eption_handler' [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:370:6: error: no previous prototype for 'show_regi= sters' [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:370:6: error: no previous prototype for 'show_regi= sters' [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:447:17: error: no previous prototype for 'do_be' [= -Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:447:17: error: no previous prototype for 'do_be' [= -Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:752:17: error: no previous prototype for 'do_ov' [= -Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:752:17: error: no previous prototype for 'do_ov' [= -Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:874:17: error: no previous prototype for 'do_fpe' = [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:874:17: error: no previous prototype for 'do_fpe' = [-Werror=3Dmissing-prototypes] arch/mips/kernel/unaligned.c:1516:17: error: no previous prototype for 'do_= ade' [-Werror=3Dmissing-prototypes] arch/mips/kernel/unaligned.c:1516:17: error: no previous prototype for 'do_= ade' [-Werror=3Dmissing-prototypes] arch/mips/kvm/loongson_ipi.c:190:6: error: no previous prototype for 'kvm_i= nit_loongson_ipi' [-Werror=3Dmissing-prototypes] arch/mips/loongson64/dma.c:25:13: error: no previous prototype for 'plat_sw= iotlb_setup' [-Werror=3Dmissing-prototypes] arch/mips/loongson64/pm.c:59:13: error: no previous prototype for 'setup_wa= keup_events' [-Werror=3Dmissing-prototypes] arch/mips/loongson64/pm.c:63:13: error: no previous prototype for 'mach_sus= pend' [-Werror=3Dmissing-prototypes] arch/mips/loongson64/pm.c:67:13: error: no previous prototype for 'mach_res= ume' [-Werror=3Dmissing-prototypes] arch/mips/mm/c-r4k.c:1588:6: error: no previous prototype for 'au1x00_fixup= _config_od' [-Werror=3Dmissing-prototypes] arch/mips/mm/c-r4k.c:1588:6: error: no previous prototype for 'au1x00_fixup= _config_od' [-Werror=3Dmissing-prototypes] arch/mips/mm/c-r4k.c:1703:6: error: no previous prototype for 'r4k_cache_in= it' [-Werror=3Dmissing-prototypes] arch/mips/mm/c-r4k.c:1703:6: error: no previous prototype for 'r4k_cache_in= it' [-Werror=3Dmissing-prototypes] arch/mips/mm/c-r4k.c:1831:12: error: no previous prototype for 'r4k_cache_i= nit_pm' [-Werror=3Dmissing-prototypes] arch/mips/mm/c-r4k.c:1831:12: error: no previous prototype for 'r4k_cache_i= nit_pm' [-Werror=3Dmissing-prototypes] arch/mips/mm/fault.c:323:17: error: no previous prototype for 'do_page_faul= t' [-Werror=3Dmissing-prototypes] arch/mips/mm/fault.c:323:17: error: no previous prototype for 'do_page_faul= t' [-Werror=3Dmissing-prototypes] arch/mips/mm/init.c:60:6: error: no previous prototype for 'setup_zero_page= s' [-Werror=3Dmissing-prototypes] arch/mips/mm/pgtable-64.c:101:6: error: no previous prototype for 'set_pmd_= at' [-Werror=3Dmissing-prototypes] arch/mips/mm/pgtable-64.c:92:7: error: no previous prototype for 'mk_pmd' [= -Werror=3Dmissing-prototypes] arch/mips/mm/sc-mips.c:255:5: error: no previous prototype for 'mips_sc_ini= t' [-Werror=3Dmissing-prototypes] arch/mips/mm/tlb-r4k.c:461:12: error: no previous prototype for 'add_tempor= ary_entry' [-Werror=3Dmissing-prototypes] arch/mips/mm/tlb-r4k.c:553:6: error: no previous prototype for 'tlb_init' [= -Werror=3Dmissing-prototypes] arch/mips/mm/tlb-r4k.c:553:6: error: no previous prototype for 'tlb_init' [= -Werror=3Dmissing-prototypes] arch/mips/mm/tlbex.c:2547:6: error: no previous prototype for 'build_tlb_re= fill_handler' [-Werror=3Dmissing-prototypes] arch/mips/mm/tlbex.c:2547:6: error: no previous prototype for 'build_tlb_re= fill_handler' [-Werror=3Dmissing-prototypes] arch/mips/mm/uasm.c:421:5: error: no previous prototype for 'uasm_in_compat= _space_p' [-Werror=3Dmissing-prototypes] arch/mips/vdso/vgettimeofday.c:14:5: error: no previous prototype for '__vd= so_clock_gettime' [-Werror=3Dmissing-prototypes] arch/mips/vdso/vgettimeofday.c:14:5: error: no previous prototype for '__vd= so_clock_gettime' [-Werror=3Dmissing-prototypes] arch/mips/vdso/vgettimeofday.c:14:5: error: no previous prototype for '__vd= so_clock_gettime' [-Werror=3Dmissing-prototypes] arch/mips/vdso/vgettimeofday.c:28:5: error: no previous prototype for '__vd= so_gettimeofday' [-Werror=3Dmissing-prototypes] arch/mips/vdso/vgettimeofday.c:28:5: error: no previous prototype for '__vd= so_gettimeofday' [-Werror=3Dmissing-prototypes] arch/mips/vdso/vgettimeofday.c:28:5: error: no previous prototype for '__vd= so_gettimeofday' [-Werror=3Dmissing-prototypes] arch/mips/vdso/vgettimeofday.c:36:5: error: no previous prototype for '__vd= so_clock_getres' [-Werror=3Dmissing-prototypes] arch/mips/vdso/vgettimeofday.c:36:5: error: no previous prototype for '__vd= so_clock_getres' [-Werror=3Dmissing-prototypes] arch/mips/vdso/vgettimeofday.c:36:5: error: no previous prototype for '__vd= so_clock_getres' [-Werror=3Dmissing-prototypes] arch/mips/vdso/vgettimeofday.c:42:5: error: no previous prototype for '__vd= so_clock_gettime64' [-Werror=3Dmissing-prototypes] arch/mips/vdso/vgettimeofday.c:42:5: error: no previous prototype for '__vd= so_clock_gettime64' [-Werror=3Dmissing-prototypes] arch/mips/vdso/vgettimeofday.c:42:5: error: no previous prototype for '__vd= so_clock_gettime64' [-Werror=3Dmissing-prototypes] arch/mips/vdso/vgettimeofday.c:50:5: error: no previous prototype for '__vd= so_clock_gettime' [-Werror=3Dmissing-prototypes] arch/mips/vdso/vgettimeofday.c:64:5: error: no previous prototype for '__vd= so_gettimeofday' [-Werror=3Dmissing-prototypes] arch/mips/vdso/vgettimeofday.c:72:5: error: no previous prototype for '__vd= so_clock_getres' [-Werror=3Dmissing-prototypes] arch/nios2/kernel/irq.c:19:17: error: no previous prototype for 'do_IRQ' [-= Werror=3Dmissing-prototypes] arch/nios2/kernel/misaligned.c:66:17: error: no previous prototype for 'han= dle_unaligned_c' [-Werror=3Dmissing-prototypes] arch/nios2/kernel/process.c:152:6: error: no previous prototype for 'dump' = [-Werror=3Dmissing-prototypes] arch/nios2/kernel/process.c:253:16: error: no previous prototype for 'nios2= _clone' [-Werror=3Dmissing-prototypes] arch/nios2/kernel/process.c:34:6: error: no previous prototype for 'arch_cp= u_idle' [-Werror=3Dmissing-prototypes] arch/nios2/kernel/process.c:43:6: error: no previous prototype for 'machine= _restart' [-Werror=3Dmissing-prototypes] arch/nios2/kernel/process.c:54:6: error: no previous prototype for 'machine= _halt' [-Werror=3Dmissing-prototypes] arch/nios2/kernel/process.c:66:6: error: no previous prototype for 'machine= _power_off' [-Werror=3Dmissing-prototypes] arch/nios2/kernel/setup.c:107:24: error: no previous prototype for 'nios2_b= oot_init' [-Werror=3Dmissing-prototypes] arch/nios2/kernel/signal.c:101:16: error: no previous prototype for 'do_rt_= sigreturn' [-Werror=3Dmissing-prototypes] arch/nios2/kernel/signal.c:302:16: error: no previous prototype for 'do_not= ify_resume' [-Werror=3Dmissing-prototypes] arch/nios2/kernel/sys_nios2.c:21:16: error: no previous prototype for 'sys_= cacheflush' [-Werror=3Dmissing-prototypes] arch/nios2/kernel/sys_nios2.c:57:16: error: no previous prototype for 'sys_= getpagesize' [-Werror=3Dmissing-prototypes] arch/nios2/kernel/time.c:200:13: error: no previous prototype for 'timer_in= terrupt' [-Werror=3Dmissing-prototypes] arch/nios2/kernel/traps.c:109:17: error: no previous prototype for 'breakpo= int_c' [-Werror=3Dmissing-prototypes] arch/nios2/kernel/traps.c:147:17: error: no previous prototype for 'handle_= illegal_c' [-Werror=3Dmissing-prototypes] arch/nios2/kernel/traps.c:154:17: error: no previous prototype for 'handle_= supervisor_instr' [-Werror=3Dmissing-prototypes] arch/nios2/kernel/traps.c:161:17: error: no previous prototype for 'handle_= diverror_c' [-Werror=3Dmissing-prototypes] arch/nios2/kernel/traps.c:168:17: error: no previous prototype for 'unhandl= ed_exception' [-Werror=3Dmissing-prototypes] arch/nios2/kernel/traps.c:183:17: error: no previous prototype for 'handle_= trap_1_c' [-Werror=3Dmissing-prototypes] arch/nios2/kernel/traps.c:188:17: error: no previous prototype for 'handle_= trap_2_c' [-Werror=3Dmissing-prototypes] arch/nios2/kernel/traps.c:193:17: error: no previous prototype for 'handle_= trap_3_c' [-Werror=3Dmissing-prototypes] arch/nios2/kernel/traps.c:32:6: error: no previous prototype for 'die' [-We= rror=3Dmissing-prototypes] arch/nios2/lib/memcpy.c:160:7: error: no previous prototype for 'memcpy' [-= Werror=3Dmissing-prototypes] arch/nios2/lib/memcpy.c:194:7: error: no previous prototype for 'memcpyb' [= -Werror=3Dmissing-prototypes] arch/nios2/mm/dma-mapping.c:21:6: error: no previous prototype for 'arch_sy= nc_dma_for_device' [-Werror=3Dmissing-prototypes] arch/nios2/mm/dma-mapping.c:45:6: error: no previous prototype for 'arch_sy= nc_dma_for_cpu' [-Werror=3Dmissing-prototypes] arch/nios2/mm/dma-mapping.c:63:6: error: no previous prototype for 'arch_dm= a_prep_coherent' [-Werror=3Dmissing-prototypes] arch/nios2/mm/dma-mapping.c:70:7: error: no previous prototype for 'arch_dm= a_set_uncached' [-Werror=3Dmissing-prototypes] arch/nios2/mm/fault.c:43:17: error: no previous prototype for 'do_page_faul= t' [-Werror=3Dmissing-prototypes] arch/nios2/mm/pgtable.c:53:8: error: no previous prototype for 'pgd_alloc' = [-Werror=3Dmissing-prototypes] arch/nios2/mm/pgtable.c:68:13: error: no previous prototype for 'pagetable_= init' [-Werror=3Dmissing-prototypes] arch/nios2/mm/tlb.c:167:6: error: no previous prototype for 'dump_tlb_line'= [-Werror=3Dmissing-prototypes] arch/nios2/mm/tlb.c:208:6: error: no previous prototype for 'dump_tlb' [-We= rror=3Dmissing-prototypes] arch/nios2/mm/tlb.c:216:6: error: no previous prototype for 'flush_tlb_pid'= [-Werror=3Dmissing-prototypes] arch/openrisc/kernel/process.c:100:6: error: no previous prototype for 'arc= h_cpu_idle' [-Werror=3Dmissing-prototypes] arch/openrisc/kernel/process.c:240:21: error: no previous prototype for '__= switch_to' [-Werror=3Dmissing-prototypes] arch/openrisc/kernel/ptrace.c:191:17: error: no previous prototype for 'do_= syscall_trace_enter' [-Werror=3Dmissing-prototypes] arch/openrisc/kernel/ptrace.c:210:17: error: no previous prototype for 'do_= syscall_trace_leave' [-Werror=3Dmissing-prototypes] arch/openrisc/kernel/signal.c:227:5: error: no previous prototype for 'do_s= ignal' [-Werror=3Dmissing-prototypes] arch/openrisc/kernel/signal.c:293:1: error: no previous prototype for 'do_w= ork_pending' [-Werror=3Dmissing-prototypes] arch/openrisc/kernel/signal.c:68:17: error: no previous prototype for '_sys= _rt_sigreturn' [-Werror=3Dmissing-prototypes] arch/openrisc/kernel/time.c:111:25: error: no previous prototype for 'timer= _interrupt' [-Werror=3Dmissing-prototypes] arch/openrisc/kernel/traps.c:146:6: error: no previous prototype for 'nommu= _dump_state' [-Werror=3Dmissing-prototypes] arch/openrisc/kernel/traps.c:221:17: error: no previous prototype for 'die'= [-Werror=3Dmissing-prototypes] arch/openrisc/kernel/traps.c:239:17: error: no previous prototype for 'unha= ndled_exception' [-Werror=3Dmissing-prototypes] arch/openrisc/kernel/traps.c:246:17: error: no previous prototype for 'do_f= pe_trap' [-Werror=3Dmissing-prototypes] arch/openrisc/kernel/traps.c:268:17: error: no previous prototype for 'do_t= rap' [-Werror=3Dmissing-prototypes] arch/openrisc/kernel/traps.c:273:17: error: no previous prototype for 'do_u= naligned_access' [-Werror=3Dmissing-prototypes] arch/openrisc/kernel/traps.c:286:17: error: no previous prototype for 'do_b= us_fault' [-Werror=3Dmissing-prototypes] arch/openrisc/kernel/traps.c:462:17: error: no previous prototype for 'do_i= llegal_instruction' [-Werror=3Dmissing-prototypes] arch/openrisc/kernel/traps.c:67:6: error: no previous prototype for 'show_r= egisters' [-Werror=3Dmissing-prototypes] arch/openrisc/mm/fault.c:44:17: error: no previous prototype for 'do_page_f= ault' [-Werror=3Dmissing-prototypes] arch/openrisc/mm/tlb.c:188:13: error: no previous prototype for 'tlb_init' = [-Werror=3Dmissing-prototypes] arch/parisc/lib/ucmpdi2.c:12:5: error: no previous prototype for '__ucmpdi2= ' [-Werror=3Dmissing-prototypes] arch/sh/kernel/cpu/init.c:99:29: error: no previous prototype for 'l2_cache= _init' [-Werror=3Dmissing-prototypes] arch/sh/kernel/cpu/init.c:99:29: error: no previous prototype for 'l2_cache= _init' [-Werror=3Dmissing-prototypes] arch/sh/kernel/cpu/sh4/fpu.c:389:6: error: no previous prototype for 'float= _raise' [-Werror=3Dmissing-prototypes] arch/sh/kernel/cpu/sh4/fpu.c:394:5: error: no previous prototype for 'float= _rounding_mode' [-Werror=3Dmissing-prototypes] arch/sh/kernel/hw_breakpoint.c:135:5: error: no previous prototype for 'arc= h_bp_generic_fields' [-Werror=3Dmissing-prototypes] arch/sh/kernel/hw_breakpoint.c:135:5: error: no previous prototype for 'arc= h_bp_generic_fields' [-Werror=3Dmissing-prototypes] arch/sh/kernel/return_address.c:49:7: error: no previous prototype for 'ret= urn_address' [-Werror=3Dmissing-prototypes] arch/sh/kernel/return_address.c:49:7: error: no previous prototype for 'ret= urn_address' [-Werror=3Dmissing-prototypes] arch/sh/kernel/sys_sh.c:58:16: error: no previous prototype for 'sys_cachef= lush' [-Werror=3Dmissing-prototypes] arch/sh/kernel/sys_sh.c:58:16: error: no previous prototype for 'sys_cachef= lush' [-Werror=3Dmissing-prototypes] arch/sh/kernel/traps_32.c:735:6: error: no previous prototype for 'per_cpu_= trap_init' [-Werror=3Dmissing-prototypes] arch/sh/kernel/traps_32.c:735:6: error: no previous prototype for 'per_cpu_= trap_init' [-Werror=3Dmissing-prototypes] arch/sh/mm/cache-sh2.c:85:13: error: no previous prototype for 'sh2_cache_i= nit' [-Werror=3Dmissing-prototypes] arch/sh/mm/cache-sh4.c:384:13: error: no previous prototype for 'sh4_cache_= init' [-Werror=3Dmissing-prototypes] arch/sh/mm/fault.c:389:27: error: no previous prototype for 'do_page_fault'= [-Werror=3Dmissing-prototypes] arch/sh/mm/flush-sh4.c:106:13: error: no previous prototype for 'sh4__flush= _region_init' [-Werror=3Dmissing-prototypes] arch/sh/mm/nommu.c:76:13: error: no previous prototype for 'kmap_coherent_i= nit' [-Werror=3Dmissing-prototypes] arch/sh/mm/nommu.c:80:7: error: no previous prototype for 'kmap_coherent' [= -Werror=3Dmissing-prototypes] arch/sh/mm/nommu.c:86:6: error: no previous prototype for 'kunmap_coherent'= [-Werror=3Dmissing-prototypes] arch/sh/mm/pgtable.c:10:6: error: no previous prototype for 'pgd_ctor' [-We= rror=3Dmissing-prototypes] arch/sh/mm/pgtable.c:32:8: error: no previous prototype for 'pgd_alloc' [-W= error=3Dmissing-prototypes] arch/sh/mm/pgtable.c:37:6: error: no previous prototype for 'pgd_free' [-We= rror=3Dmissing-prototypes] arch/sh/mm/tlbex_32.c:22:1: error: no previous prototype for 'handle_tlbmis= s' [-Werror=3Dmissing-prototypes] arch/sparc/kernel/adi_64.c:124:21: error: no previous prototype for 'find_t= ag_store' [-Werror=3Dmissing-prototypes] arch/sparc/kernel/adi_64.c:156:21: error: no previous prototype for 'alloc_= tag_store' [-Werror=3Dmissing-prototypes] arch/sparc/kernel/adi_64.c:299:6: error: no previous prototype for 'del_tag= _store' [-Werror=3Dmissing-prototypes] arch/sparc/kernel/pci_sun4v.c:258:15: error: no previous prototype for 'dma= _4v_iotsb_bind' [-Werror=3Dmissing-prototypes] arch/sparc/kernel/setup_64.c:615:13: error: no previous prototype for 'allo= c_irqstack_bootmem' [-Werror=3Dmissing-prototypes] arch/sparc/kernel/time_64.c:880:20: error: no previous prototype for 'sched= _clock' [-Werror=3Dmissing-prototypes] arch/sparc/kernel/traps_32.c:366:6: error: no previous prototype for 'trap_= init' [-Werror=3Dmissing-prototypes] arch/sparc/kernel/traps_64.c:2034:6: error: no previous prototype for 'do_m= cd_err' [-Werror=3Dmissing-prototypes] arch/sparc/kernel/traps_64.c:2152:6: error: no previous prototype for 'sun4= v_nonresum_error_user_handled' [-Werror=3Dmissing-prototypes] arch/sparc/kernel/traps_64.c:252:6: error: no previous prototype for 'is_no= _fault_exception' [-Werror=3Dmissing-prototypes] arch/sparc/kernel/traps_64.c:2839:13: error: no previous prototype for 'tra= p_init' [-Werror=3Dmissing-prototypes] arch/sparc/kernel/uprobes.c:237:17: error: no previous prototype for 'uprob= e_trap' [-Werror=3Dmissing-prototypes] arch/sparc/lib/cmpdi2.c:6:11: error: no previous prototype for '__cmpdi2' [= -Werror=3Dmissing-prototypes] arch/sparc/lib/ucmpdi2.c:5:11: error: no previous prototype for '__ucmpdi2'= [-Werror=3Dmissing-prototypes] arch/sparc/mm/init_64.c:2644:6: error: no previous prototype for 'vmemmap_f= ree' [-Werror=3Dmissing-prototypes] arch/sparc/prom/misc_64.c:165:5: error: no previous prototype for 'prom_get= _mmu_ihandle' [-Werror=3Dmissing-prototypes] arch/sparc/prom/p1275.c:52:6: error: no previous prototype for 'prom_cif_in= it' [-Werror=3Dmissing-prototypes] arch/sparc/vdso/vclock_gettime.c:254:1: error: no previous prototype for '_= _vdso_clock_gettime' [-Werror=3Dmissing-prototypes] arch/sparc/vdso/vclock_gettime.c:282:1: error: no previous prototype for '_= _vdso_clock_gettime_stick' [-Werror=3Dmissing-prototypes] arch/sparc/vdso/vclock_gettime.c:307:1: error: no previous prototype for '_= _vdso_gettimeofday' [-Werror=3Dmissing-prototypes] arch/sparc/vdso/vclock_gettime.c:343:1: error: no previous prototype for '_= _vdso_gettimeofday_stick' [-Werror=3Dmissing-prototypes] arch/sparc/vdso/vdso32/../vclock_gettime.c:254:1: error: no previous protot= ype for '__vdso_clock_gettime' [-Werror=3Dmissing-prototypes] arch/sparc/vdso/vdso32/../vclock_gettime.c:282:1: error: no previous protot= ype for '__vdso_clock_gettime_stick' [-Werror=3Dmissing-prototypes] arch/sparc/vdso/vdso32/../vclock_gettime.c:307:1: error: no previous protot= ype for '__vdso_gettimeofday' [-Werror=3Dmissing-prototypes] arch/sparc/vdso/vdso32/../vclock_gettime.c:343:1: error: no previous protot= ype for '__vdso_gettimeofday_stick' [-Werror=3Dmissing-prototypes] arch/sparc/vdso/vma.c:246:12: error: no previous prototype for 'init_vdso_i= mage' [-Werror=3Dmissing-prototypes] arch/xtensa/kernel/irq.c:34:17: error: no previous prototype for 'do_IRQ' [= -Werror=3Dmissing-prototypes] arch/xtensa/kernel/ptrace.c:545:5: error: no previous prototype for 'do_sys= call_trace_enter' [-Werror=3Dmissing-prototypes] arch/xtensa/kernel/setup.c:244:13: error: no previous prototype for 'init_a= rch' [-Werror=3Dmissing-prototypes] arch/xtensa/kernel/signal.c:246:17: error: no previous prototype for 'xtens= a_rt_sigreturn' [-Werror=3Dmissing-prototypes] arch/xtensa/kernel/signal.c:525:6: error: no previous prototype for 'do_not= ify_resume' [-Werror=3Dmissing-prototypes] arch/xtensa/kernel/stacktrace.c:263:15: error: no previous prototype for 'r= eturn_address' [-Werror=3Dmissing-prototypes] arch/xtensa/kernel/traps.c:484:13: error: no previous prototype for 'trap_i= nit' [-Werror=3Dmissing-prototypes] arch/xtensa/mm/fault.c:87:6: error: no previous prototype for 'do_page_faul= t' [-Werror=3Dmissing-prototypes] arch/xtensa/platforms/iss/network.c:204:16: error: no previous prototype fo= r 'tuntap_protocol' [-Werror=3Dmissing-prototypes] arch/xtensa/platforms/iss/network.c:444:6: error: no previous prototype for= 'iss_net_user_timer_expire' [-Werror=3Dmissing-prototypes] Cc: Matt Turner Cc: Vineet Gupta Cc: Russell King Cc: Catalin Marinas Cc: Will Deacon Cc: Guo Ren Cc: Brian Cain Cc: Huacai Chen Cc: WANG Xuerui Cc: Geert Uytterhoeven Cc: Michal Simek Cc: Thomas Bogendoerfer Cc: Dinh Nguyen Cc: Jonas Bonn Cc: Stafford Horne Cc: "James E.J. Bottomley" Cc: Helge Deller Cc: Michael Ellerman Cc: Christophe Leroy Cc: Palmer Dabbelt Cc: Heiko Carstens Cc: John Paul Adrian Glaubitz Cc: x86@kernel.org Cc: Borislav Petkov Cc: Nathan Chancellor Cc: Nick Desaulniers Cc: Arnd Bergmann Cc: Guenter Roeck Cc: Stephen Rothwell Cc: linux-next@vger.kernel.org Cc: Andrew Morton Cc: linux-alpha@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-snps-arc@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-csky@vger.kernel.org Cc: linux-hexagon@vger.kernel.org Cc: linux-ia64@vger.kernel.org Cc: loongarch@lists.linux.dev Cc: linux-m68k@lists.linux-m68k.org Cc: linux-mips@vger.kernel.org Cc: linux-openrisc@vger.kernel.org Cc: sparclinux@vger.kernel.org --- arch/alpha/Kbuild | 2 ++ arch/alpha/lib/Makefile | 1 + arch/arc/Kbuild | 2 ++ arch/csky/Kbuild | 2 ++ arch/hexagon/Kbuild | 2 ++ arch/ia64/Kbuild | 2 ++ arch/ia64/lib/Makefile | 1 + arch/loongarch/Kbuild | 2 ++ arch/m68k/Kbuild | 2 ++ arch/m68k/lib/Makefile | 1 + arch/microblaze/Kbuild | 2 ++ arch/mips/Kbuild | 2 ++ arch/mips/boot/compressed/Makefile | 3 ++- arch/nios2/Kbuild | 2 ++ arch/nios2/lib/Makefile | 1 + arch/openrisc/Kbuild | 2 ++ arch/parisc/Kbuild | 2 ++ arch/parisc/lib/Makefile | 1 + arch/sh/Kbuild | 2 ++ arch/sh/boot/compressed/Makefile | 1 + arch/sparc/Kbuild | 2 ++ arch/sparc/lib/Makefile | 1 + arch/sparc/prom/Makefile | 1 + arch/xtensa/Kbuild | 2 ++ arch/xtensa/boot/lib/Makefile | 2 ++ init/Kconfig | 10 ++++++++++ 26 files changed, 52 insertions(+), 1 deletion(-) diff --git a/arch/alpha/Kbuild b/arch/alpha/Kbuild index 345d79df24bb9..283cb9d5b022c 100644 --- a/arch/alpha/Kbuild +++ b/arch/alpha/Kbuild @@ -4,3 +4,5 @@ obj-$(CONFIG_MATHEMU) +=3D math-emu/ =20 # for cleaning subdir- +=3D boot + +subdir-ccflags-$(CONFIG_WNO_MISSING_PROTOTYPES) :=3D -Wno-missing-prototyp= es -Wno-missing-declarations diff --git a/arch/alpha/lib/Makefile b/arch/alpha/lib/Makefile index 1cc74f7b50efb..09e0be65caa93 100644 --- a/arch/alpha/lib/Makefile +++ b/arch/alpha/lib/Makefile @@ -5,6 +5,7 @@ =20 asflags-y :=3D $(KBUILD_CFLAGS) ccflags-y :=3D -Werror +ccflags-$(CONFIG_WNO_MISSING_PROTOTYPES) :=3D -Wno-missing-prototypes -Wno= -missing-declarations =20 # Many of these routines have implementations tuned for ev6. # Choose them iff we're targeting ev6 specifically. diff --git a/arch/arc/Kbuild b/arch/arc/Kbuild index b94102fff68b4..9bc728209f747 100644 --- a/arch/arc/Kbuild +++ b/arch/arc/Kbuild @@ -4,3 +4,5 @@ obj-y +=3D mm/ =20 # for cleaning subdir- +=3D boot + +subdir-ccflags-$(CONFIG_WNO_MISSING_PROTOTYPES) :=3D -Wno-missing-prototyp= es -Wno-missing-declarations diff --git a/arch/csky/Kbuild b/arch/csky/Kbuild index 0621eaea41962..1d4322ebc95e5 100644 --- a/arch/csky/Kbuild +++ b/arch/csky/Kbuild @@ -4,3 +4,5 @@ obj-y +=3D kernel/ mm/ =20 # for cleaning subdir- +=3D boot + +subdir-ccflags-$(CONFIG_WNO_MISSING_PROTOTYPES) :=3D -Wno-missing-prototyp= es -Wno-missing-declarations diff --git a/arch/hexagon/Kbuild b/arch/hexagon/Kbuild index 8421baba13518..9aceffc706d4a 100644 --- a/arch/hexagon/Kbuild +++ b/arch/hexagon/Kbuild @@ -1,2 +1,4 @@ # SPDX-License-Identifier: GPL-2.0-only obj-y +=3D kernel/ mm/ lib/ + +subdir-ccflags-$(CONFIG_WNO_MISSING_PROTOTYPES) :=3D -Wno-missing-prototyp= es -Wno-missing-declarations diff --git a/arch/ia64/Kbuild b/arch/ia64/Kbuild index e77cc76d228cd..69e3c2dadde0e 100644 --- a/arch/ia64/Kbuild +++ b/arch/ia64/Kbuild @@ -1,3 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only obj-y +=3D kernel/ mm/ obj-$(CONFIG_IA64_SGI_UV) +=3D uv/ + +subdir-ccflags-$(CONFIG_WNO_MISSING_PROTOTYPES) :=3D -Wno-missing-prototyp= es -Wno-missing-declarations diff --git a/arch/ia64/lib/Makefile b/arch/ia64/lib/Makefile index 081fcba01dc0c..03999c9f19bb3 100644 --- a/arch/ia64/lib/Makefile +++ b/arch/ia64/lib/Makefile @@ -2,6 +2,7 @@ # # Makefile for ia64-specific library routines.. # +ccflags-$(CONFIG_WNO_MISSING_PROTOTYPES) :=3D -Wno-missing-prototypes -Wno= -missing-declarations =20 lib-y :=3D io.o __divsi3.o __udivsi3.o __modsi3.o __umodsi3.o \ __divdi3.o __udivdi3.o __moddi3.o __umoddi3.o \ diff --git a/arch/loongarch/Kbuild b/arch/loongarch/Kbuild index b01f5cdb27e03..f3b89e5f79050 100644 --- a/arch/loongarch/Kbuild +++ b/arch/loongarch/Kbuild @@ -5,3 +5,5 @@ obj-y +=3D vdso/ =20 # for cleaning subdir- +=3D boot + +subdir-ccflags-$(CONFIG_WNO_MISSING_PROTOTYPES) :=3D -Wno-missing-prototyp= es -Wno-missing-declarations diff --git a/arch/m68k/Kbuild b/arch/m68k/Kbuild index 7762af9f6defe..b2abbf427e8f2 100644 --- a/arch/m68k/Kbuild +++ b/arch/m68k/Kbuild @@ -18,3 +18,5 @@ obj-$(CONFIG_M68KFPU_EMU) +=3D math-emu/ obj-$(CONFIG_M68000) +=3D 68000/ obj-$(CONFIG_COLDFIRE) +=3D coldfire/ obj-$(CONFIG_VIRT) +=3D virt/ + +subdir-ccflags-$(CONFIG_WNO_MISSING_PROTOTYPES) :=3D -Wno-missing-prototyp= es -Wno-missing-declarations diff --git a/arch/m68k/lib/Makefile b/arch/m68k/lib/Makefile index eca17f14b4d5e..3aea84ffa0db2 100644 --- a/arch/m68k/lib/Makefile +++ b/arch/m68k/lib/Makefile @@ -3,6 +3,7 @@ # # Makefile for m68k-specific library files.. # +ccflags-$(CONFIG_WNO_MISSING_PROTOTYPES) :=3D -Wno-missing-prototypes -Wno= -missing-declarations =20 lib-y :=3D ashldi3.o ashrdi3.o lshrdi3.o muldi3.o \ memcpy.o memset.o memmove.o diff --git a/arch/microblaze/Kbuild b/arch/microblaze/Kbuild index 077a0b8e96157..b2799946ae01d 100644 --- a/arch/microblaze/Kbuild +++ b/arch/microblaze/Kbuild @@ -6,3 +6,5 @@ obj-y +=3D boot/dts/ =20 # for cleaning subdir- +=3D boot + +subdir-ccflags-$(CONFIG_WNO_MISSING_PROTOTYPES) :=3D -Wno-missing-prototyp= es -Wno-missing-declarations diff --git a/arch/mips/Kbuild b/arch/mips/Kbuild index af2967bffb73d..484cfda563b68 100644 --- a/arch/mips/Kbuild +++ b/arch/mips/Kbuild @@ -28,3 +28,5 @@ endif =20 # for cleaning subdir- +=3D boot + +subdir-ccflags-$(CONFIG_WNO_MISSING_PROTOTYPES) :=3D -Wno-missing-prototyp= es -Wno-missing-declarations diff --git a/arch/mips/boot/compressed/Makefile b/arch/mips/boot/compressed= /Makefile index 6cc28173bee89..58be7966d839f 100644 --- a/arch/mips/boot/compressed/Makefile +++ b/arch/mips/boot/compressed/Makefile @@ -11,9 +11,10 @@ # Copyright (C) 2009 Lemote Inc. & DSLab, Lanzhou University # Author: Wu Zhangjin # - include $(srctree)/arch/mips/Kbuild.platforms =20 +ccflags-$(CONFIG_WNO_MISSING_PROTOTYPES) :=3D -Wno-missing-prototypes -Wno= -missing-declarations + # set the default size of the mallocing area for decompressing BOOT_HEAP_SIZE :=3D 0x400000 =20 diff --git a/arch/nios2/Kbuild b/arch/nios2/Kbuild index fc2952edd2dec..5f79d266fd4ef 100644 --- a/arch/nios2/Kbuild +++ b/arch/nios2/Kbuild @@ -4,3 +4,5 @@ obj-y +=3D kernel/ mm/ platform/ boot/dts/ =20 # for cleaning subdir- +=3D boot + +subdir-ccflags-$(CONFIG_WNO_MISSING_PROTOTYPES) :=3D -Wno-missing-prototyp= es -Wno-missing-declarations diff --git a/arch/nios2/lib/Makefile b/arch/nios2/lib/Makefile index 9d5bf1df520c1..9acc5a98760fa 100644 --- a/arch/nios2/lib/Makefile +++ b/arch/nios2/lib/Makefile @@ -2,6 +2,7 @@ # # Makefile for Nios2-specific library files. # +ccflags-$(CONFIG_WNO_MISSING_PROTOTYPES) :=3D -Wno-missing-prototypes -Wno= -missing-declarations =20 lib-y +=3D delay.o lib-y +=3D memcpy.o diff --git a/arch/openrisc/Kbuild b/arch/openrisc/Kbuild index b0b0f2b03f872..ba60f445bf429 100644 --- a/arch/openrisc/Kbuild +++ b/arch/openrisc/Kbuild @@ -4,3 +4,5 @@ obj-y +=3D boot/dts/ =20 # for cleaning subdir- +=3D boot + +subdir-ccflags-$(CONFIG_WNO_MISSING_PROTOTYPES) :=3D -Wno-missing-prototyp= es -Wno-missing-declarations diff --git a/arch/parisc/Kbuild b/arch/parisc/Kbuild index a6d3b280ba0c2..b825fb5cf9226 100644 --- a/arch/parisc/Kbuild +++ b/arch/parisc/Kbuild @@ -3,3 +3,5 @@ obj-y +=3D mm/ kernel/ math-emu/ =20 # for cleaning subdir- +=3D boot + +subdir-ccflags-$(CONFIG_WNO_MISSING_PROTOTYPES) :=3D -Wno-missing-prototyp= es -Wno-missing-declarations diff --git a/arch/parisc/lib/Makefile b/arch/parisc/lib/Makefile index 7b197667faf6c..348a286ab68fe 100644 --- a/arch/parisc/lib/Makefile +++ b/arch/parisc/lib/Makefile @@ -2,6 +2,7 @@ # # Makefile for parisc-specific library files # +ccflags-$(CONFIG_WNO_MISSING_PROTOTYPES) :=3D -Wno-missing-prototypes -Wno= -missing-declarations =20 lib-y :=3D lusercopy.o bitops.o checksum.o io.o memset.o memcpy.o \ ucmpdi2.o delay.o diff --git a/arch/sh/Kbuild b/arch/sh/Kbuild index 056efec72c2a0..df2cf06eea5f6 100644 --- a/arch/sh/Kbuild +++ b/arch/sh/Kbuild @@ -7,3 +7,5 @@ obj-$(CONFIG_HD6446X_SERIES) +=3D cchips/hd6446x/ =20 # for cleaning subdir- +=3D boot + +subdir-ccflags-$(CONFIG_WNO_MISSING_PROTOTYPES) :=3D -Wno-missing-prototyp= es -Wno-missing-declarations diff --git a/arch/sh/boot/compressed/Makefile b/arch/sh/boot/compressed/Mak= efile index b5e29f99c02c8..25000003c94eb 100644 --- a/arch/sh/boot/compressed/Makefile +++ b/arch/sh/boot/compressed/Makefile @@ -4,6 +4,7 @@ # # create a compressed vmlinux image from the original vmlinux # +ccflags-$(CONFIG_WNO_MISSING_PROTOTYPES) :=3D -Wno-missing-prototypes -Wno= -missing-declarations =20 OBJECTS :=3D head_32.o misc.o cache.o piggy.o \ ashiftrt.o ashldi3.o ashrsi3.o ashlsi3.o lshrsi3.o diff --git a/arch/sparc/Kbuild b/arch/sparc/Kbuild index 71cb3d934bf6c..320a4092b334e 100644 --- a/arch/sparc/Kbuild +++ b/arch/sparc/Kbuild @@ -12,3 +12,5 @@ obj-$(CONFIG_SPARC64) +=3D vdso/ =20 # for cleaning subdir- +=3D boot + +subdir-ccflags-$(CONFIG_WNO_MISSING_PROTOTYPES) :=3D -Wno-missing-prototyp= es -Wno-missing-declarations diff --git a/arch/sparc/lib/Makefile b/arch/sparc/lib/Makefile index 063556fe2cb1d..2a5cba8e68dfd 100644 --- a/arch/sparc/lib/Makefile +++ b/arch/sparc/lib/Makefile @@ -4,6 +4,7 @@ =20 asflags-y :=3D -ansi -DST_DIV0=3D0x02 ccflags-y :=3D -Werror +ccflags-$(CONFIG_WNO_MISSING_PROTOTYPES) :=3D -Wno-missing-prototypes -Wno= -missing-declarations =20 lib-$(CONFIG_SPARC32) +=3D ashrdi3.o lib-$(CONFIG_SPARC32) +=3D memcpy.o memset.o diff --git a/arch/sparc/prom/Makefile b/arch/sparc/prom/Makefile index 397b79af77f7b..0a82ebb014130 100644 --- a/arch/sparc/prom/Makefile +++ b/arch/sparc/prom/Makefile @@ -4,6 +4,7 @@ # asflags :=3D -ansi ccflags :=3D -Werror +ccflags-$(CONFIG_WNO_MISSING_PROTOTYPES) :=3D -Wno-missing-prototypes -Wno= -missing-declarations =20 lib-y :=3D bootstr_$(BITS).o lib-y +=3D init_$(BITS).o diff --git a/arch/xtensa/Kbuild b/arch/xtensa/Kbuild index fd12f61745bad..f01d1ca727b97 100644 --- a/arch/xtensa/Kbuild +++ b/arch/xtensa/Kbuild @@ -1,2 +1,4 @@ # SPDX-License-Identifier: GPL-2.0-only obj-y +=3D kernel/ mm/ platforms/ boot/dts/ + +subdir-ccflags-$(CONFIG_WNO_MISSING_PROTOTYPES) :=3D -Wno-missing-prototyp= es -Wno-missing-declarations diff --git a/arch/xtensa/boot/lib/Makefile b/arch/xtensa/boot/lib/Makefile index 0378a22a08e33..a9f1c1e139389 100644 --- a/arch/xtensa/boot/lib/Makefile +++ b/arch/xtensa/boot/lib/Makefile @@ -8,6 +8,8 @@ zlib :=3D inffast.c inflate.c inftrees.c lib-y +=3D $(zlib:.c=3D.o) zmem.o =20 ccflags-y :=3D -I $(srctree)/lib/zlib_inflate +ccflags-$(CONFIG_WNO_MISSING_PROTOTYPES) :=3D -Wno-missing-prototypes -Wno= -missing-declarations + ifdef CONFIG_FUNCTION_TRACER CFLAGS_REMOVE_inflate.o =3D -pg CFLAGS_REMOVE_zmem.o =3D -pg diff --git a/init/Kconfig b/init/Kconfig index 639e8a3363c30..80cd67c0d7fa4 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -170,6 +170,16 @@ config WERROR =20 If in doubt, say Y. =20 +config WNO_MISSING_PROTOTYPES + bool "Hide -Wmissing-prototype warnings in arch code" + default WERROR || !COMPILE_TEST + help + Some architectures have not yet eliminated all warnings for + missing prototypes in their core code and will produce a lot + of output for these. Ideally these should all be addresszed + by individual bugfix patches, but in the meantime saying 'y' + will skip that output. + config UAPI_HEADER_TEST bool "Compile test UAPI headers" depends on HEADERS_INSTALL && CC_CAN_LINK --=20 2.39.2 From nobody Fri Sep 12 07:29:49 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C3F01C04E69 for ; Thu, 10 Aug 2023 14:25:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235694AbjHJOZ0 (ORCPT ); Thu, 10 Aug 2023 10:25:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235692AbjHJOZT (ORCPT ); Thu, 10 Aug 2023 10:25:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BCFB2D52; Thu, 10 Aug 2023 07:24:54 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 967F365DFA; Thu, 10 Aug 2023 14:24:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C70F1C433C8; Thu, 10 Aug 2023 14:24:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691677493; bh=7p8Hud1MeCzOurHJwL3jJ1TBhDa8aySU3uDX+gwqFgg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Zp8C13AiP+ArasUcg0BgwEKeZ9TF5iXSg6OViYuVDo203gqQgE3o0Xxo4p6mJ4Y6C VFO2vA9/QOj3KmGQwhS7r+Jt6qfBJNdSfcUzAsOwm/A0N7u5Nd2/Jzr1/Kc5w1bzML VUbMRNq7Wiz5suRmfFYhXOs/nVoJjQfQtbcgOZj+vEjBTqaTa3dFEcYQbzVeKJX+mD 9nztt2BWivoW8zv+xZtuz3HGXihsHp/xoeijTk3jS6H4HmdMTsWyt90zDfaHMdj/dM 4/AlLc/ul5P333x2yqROmctGhXDhsqCg98QgcvG1WPnJGc1Wdphg1j5Pf5ThUcY4x/ lCJ11zuL+A/Tg== From: Arnd Bergmann To: Andrew Morton , linux-kernel@vger.kernel.org, Masahiro Yamada Cc: Arnd Bergmann , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Kees Cook , Sami Tolvanen , linux-kbuild@vger.kernel.org Subject: [PATCH 17/17] [RFC] Makefile.extrawarn: turn on missing-prototypes again Date: Thu, 10 Aug 2023 16:19:35 +0200 Message-Id: <20230810141947.1236730-18-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810141947.1236730-1-arnd@kernel.org> References: <20230810141947.1236730-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann Over the years we went from > 1000 of warnings to under 100 earlier this year, and I sent patches to address all the ones that I saw with compile testing randcom configs on arm64, arm and x86 kernels. This is a really useful warning, as it catches real bugs when there are mismatched prototypes. In particular with kernel control flow integrity enabled, those are no longer allowed. Move the options out of the W=3D1 section to have them enabled by default. Signed-off-by: Arnd Bergmann Acked-by: Palmer Dabbelt # RISC-V Reviewed-by: Kees Cook --- I'm sure there are still regressions with CONFIG_WERROR when this gets turned on, but it's getting very close, so it might be best to already enable this in linux-next but wait one extra merge window to have it in mainline while the last fixes trickle in. --- scripts/Makefile.extrawarn | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index 40cd13eca82e8..fda5f9087a863 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -15,6 +15,9 @@ ifeq ("$(origin W)", "command line") KBUILD_EXTRA_WARN :=3D $(W) endif =20 +KBUILD_CFLAGS +=3D -Wmissing-declarations +KBUILD_CFLAGS +=3D -Wmissing-prototypes + export KBUILD_EXTRA_WARN =20 # @@ -23,9 +26,7 @@ export KBUILD_EXTRA_WARN ifneq ($(findstring 1, $(KBUILD_EXTRA_WARN)),) =20 KBUILD_CFLAGS +=3D -Wextra -Wunused -Wno-unused-parameter -KBUILD_CFLAGS +=3D -Wmissing-declarations KBUILD_CFLAGS +=3D -Wmissing-format-attribute -KBUILD_CFLAGS +=3D -Wmissing-prototypes KBUILD_CFLAGS +=3D -Wold-style-definition KBUILD_CFLAGS +=3D -Wmissing-include-dirs KBUILD_CFLAGS +=3D $(call cc-option, -Wunused-but-set-variable) --=20 2.39.2