From patchwork Thu Aug 10 14:19:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 1820416 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=linuxppc-dev-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=sEToNoLW; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RMx5t6PZJz1yYC for ; Sat, 12 Aug 2023 07:00:50 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=sEToNoLW; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4RMx5t4vB1z2ysC for ; Sat, 12 Aug 2023 07:00:50 +1000 (AEST) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=sEToNoLW; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=139.178.84.217; helo=dfw.source.kernel.org; envelope-from=arnd@kernel.org; receiver=lists.ozlabs.org) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4RM8GH4TL6z2ygr for ; Fri, 11 Aug 2023 00:20:23 +1000 (AEST) 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 BDD466462E; Thu, 10 Aug 2023 14:20:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E700C433C7; Thu, 10 Aug 2023 14:20:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691677220; bh=M6pCzl56hQfYBur6YmsekmzG2MMWL9hk5rFjJ0OsUU0=; h=From:To:Cc:Subject:Date:From; b=sEToNoLWqGtj4+RI0IeL2/r+G3nimZRvSUqztupu9NJ+WYoZP0DMJQzTc7AhlsCRR jK+SIxlfrcfMXKvWeumyeQOK5nFc2dY4tBk6a84vRp7cTftkekwCVyX2rgv9+6AmrC Dh91SfRjBjwYI9+cQxGNywuPyE4jUPyAUbzRq1qlPCpdc5pfBe17qe4QSw1GWxutDV LEqx6GOFuLUoidCbQEbTBmg9pIzjp2gcCgmaYfyZA/oR7dMrTfDlL6wCOIJiRAEh5z 7bD2ltW5YMGSzYVVjE66ksMmUMrACNMp5UJJUI+KM+0mH1fxsUmNyF/NEvXI4YbDxf rS2tPNYilE83g== From: Arnd Bergmann To: Andrew Morton , linux-kernel@vger.kernel.org Subject: [PATCH 00/17] -Wmissing-prototype warning fixes Date: Thu, 10 Aug 2023 16:19:18 +0200 Message-Id: <20230810141947.1236730-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Mailman-Approved-At: Sat, 12 Aug 2023 06:59:44 +1000 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: x86@kernel.org, linux-ia64@vger.kernel.org, linux-sh@vger.kernel.org, Catalin Marinas , linux-block@vger.kernel.org, "James E.J. Bottomley" , Max Filippov , Guo Ren , linux-csky@vger.kernel.org, sparclinux@vger.kernel.org, linux-hexagon@vger.kernel.org, WANG Xuerui , Will Deacon , linux-riscv@lists.infradead.org, Jonas Bonn , Stephen Rothwell , linux-snps-arc@lists.infradead.org, linux-scsi@vger.kernel.org, Helge Deller , Huacai Chen , Russell King , linux-next@vger.kernel.org, Geert Uytterhoeven , Vineet Gupta , Matt Turner , Masahiro Yamada , Guenter Roeck , linux-trace-kernel@vger.kernel.org, Arnd Bergmann , linux-s390@vger .kernel.org, Heiko Carstens , linux-alpha@vger.kernel.org, Stefan Kristiansson , Nathan Chancellor , linux-m68k@lists.linux-m68k.org, Borislav Petkov , loongarch@lists.linux.dev, John Paul Adrian Glaubitz , Bjorn Helgaas , Stafford Horne , linux-arm-kernel@lists.infradead.org, Jens Axboe , Brian Cain , Michal Simek , Thomas Bogendoerfer , linux-parisc@vger.kernel.org, "Martin K. Petersen" , linux-openrisc@vger.kernel.org, linux-pci@vger.kernel.org, Nick Desaulniers , linux-mips@vger.kernel.org, linux-kbuild@vger.kernel.org, Dinh Nguyen , Palmer Dabbelt , Richard Weinberger , linux-mtd@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, Sudip Mukherjee Errors-To: linuxppc-dev-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" From: Arnd Bergmann Most of the patches I sent so far for the -Wmissing-prototype warnings have made it into linux-next now. There are a few that I'm resending now as nobody has picked them up, and then a number of fixes that I found while test-building across all architectures rather than just the ones I usually test. The first 15 patches in this series should be uncontroversial, so I expect that either a subsystem maintainer or Andrew Morton can apply these directly. For the last two patches, these might still need some debate about how to handle them. I added a Kconfig option to turn off most of the missing prototype warnings in the architectures that nobody has fixed yet, see patch 16 for those. The last patch does cause some known warnings and likely unknown ones for architectures other than x86 and arm, so applying it now will bring new problems, but not applying it also means that new warnings creep in, so I think this is mainly a question of what the best timing is for having this in linux-next. Arnd Bergmann (17): [RESEND] jffs2: mark __jffs2_dbg_superblock_counts() static [RESEND] irq_work: consolidate arch_irq_work_raise prototypes [RESEND] ida: make 'ida_dump' static pci: sysfs: move declarations to linux/pci.h swim3: mark swim3_init() static macintosh/ams: mark ams_init() static scsi: qlogicpti: mark qlogicpti_info() static microblaze: mark flush_dcache_folio() inline parport: gsc: mark init function static zorro: include zorro.h in names.c scsi: gvp11: remove unused gvp11_setup() function time: make sysfs_get_uname() function visible in header stackleak: add declarations for global functions kprobes: unify kprobes_exceptions_nofify() prototypes arch: fix asm-offsets.c building with -Wmissing-prototypes [RFC] arch: turn -Wmissing-prototypes off conditionally [RFC] Makefile.extrawarn: turn on missing-prototypes again arch/alpha/Kbuild | 2 ++ arch/alpha/include/asm/pci.h | 3 --- arch/alpha/kernel/asm-offsets.c | 2 +- arch/alpha/lib/Makefile | 1 + arch/arc/Kbuild | 2 ++ arch/arc/include/asm/kprobes.h | 3 --- arch/arm/include/asm/irq_work.h | 2 -- arch/arm/include/asm/kprobes.h | 2 -- arch/arm64/include/asm/irq_work.h | 2 -- arch/arm64/include/asm/kprobes.h | 2 -- arch/csky/Kbuild | 2 ++ arch/csky/include/asm/irq_work.h | 2 +- arch/hexagon/Kbuild | 2 ++ arch/ia64/Kbuild | 2 ++ arch/ia64/include/asm/kprobes.h | 2 -- arch/ia64/kernel/asm-offsets.c | 2 +- arch/ia64/lib/Makefile | 1 + arch/loongarch/Kbuild | 2 ++ arch/loongarch/kernel/asm-offsets.c | 12 ++++++++++++ arch/m68k/Kbuild | 2 ++ arch/m68k/lib/Makefile | 1 + arch/microblaze/Kbuild | 2 ++ arch/microblaze/include/asm/cacheflush.h | 2 +- arch/mips/Kbuild | 2 ++ arch/mips/boot/compressed/Makefile | 3 ++- arch/mips/include/asm/kprobes.h | 2 -- arch/nios2/Kbuild | 2 ++ arch/nios2/lib/Makefile | 1 + arch/openrisc/Kbuild | 2 ++ arch/parisc/Kbuild | 2 ++ arch/parisc/lib/Makefile | 1 + arch/powerpc/include/asm/irq_work.h | 1 - arch/powerpc/include/asm/kprobes.h | 2 -- arch/riscv/include/asm/irq_work.h | 2 +- arch/s390/include/asm/irq_work.h | 2 -- arch/s390/include/asm/kprobes.h | 2 -- arch/sh/Kbuild | 2 ++ arch/sh/boot/compressed/Makefile | 1 + arch/sh/include/asm/kprobes.h | 2 -- arch/sparc/Kbuild | 2 ++ arch/sparc/include/asm/kprobes.h | 2 -- arch/sparc/kernel/asm-offsets.c | 13 ++----------- arch/sparc/lib/Makefile | 1 + arch/sparc/prom/Makefile | 1 + arch/x86/include/asm/irq_work.h | 1 - arch/x86/include/asm/kprobes.h | 2 -- arch/xtensa/Kbuild | 2 ++ arch/xtensa/boot/lib/Makefile | 2 ++ drivers/block/swim3.c | 2 +- drivers/macintosh/ams/ams-core.c | 2 +- drivers/parport/parport_gsc.c | 2 +- drivers/scsi/gvp11.c | 5 ----- drivers/scsi/qlogicpti.c | 2 +- drivers/zorro/names.c | 1 + fs/jffs2/debug.c | 2 +- include/linux/irq_work.h | 3 +++ include/linux/kprobes.h | 4 ++++ include/linux/pci.h | 5 +++++ include/linux/stackleak.h | 6 ++++++ init/Kconfig | 10 ++++++++++ kernel/time/tick-internal.h | 3 ++- lib/test_ida.c | 2 +- scripts/Makefile.extrawarn | 5 +++-- 63 files changed, 101 insertions(+), 63 deletions(-) Acked-by: Palmer Dabbelt # RISC-V