From patchwork Wed Nov 8 12:58:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 1861543 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=D/oJSx1u; 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=hdJmX6Tf; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SQQCC6PLXz1yQK for ; Wed, 8 Nov 2023 23:59:19 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=pdQpPn+K5ri4wdqWjYsjBzA+xeYwo+xFyT6vlrQNTGQ=; b=D/oJSx1uF71tx1 ItgfDCkrKDH8IAqF02xjqMNrzgM46EqNyl8TZJKVvtyU2JVRP108vJs+5qhoPx98nkDPelPHq3w0q xyrq8EC+fEHoUdQIcDMAo9gMhmEjZlnY3lwSBya7oeQtmGyuOEIS8S9tfQTcILdg7e5uReqYItGLa sttdw1yKmP4HMGYsfKNuMGUeoNGTLL6HMEQeXlqH5kG9+UMetahLNapl3NO7HJywK7MYFS31T9I3D CyJw5CK9Ii9XM87fL19zttfSOKHA4BPUA2VyRb7l1kto0CyHyefirI/UGhsy+N36Z7wUyq8VHRfs5 WrYXbd3j+xsRIgMJYnPg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r0i9N-003otC-19; Wed, 08 Nov 2023 12:59:17 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r0i9H-003oqU-0i; Wed, 08 Nov 2023 12:59:13 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 74CD6CE10CA; Wed, 8 Nov 2023 12:59:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 397CEC433C7; Wed, 8 Nov 2023 12:58:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699448345; bh=mCKY7B1NUlBI0NuotW3ba1ch9AEY8/W0fCgPLr2mO8c=; h=From:To:Cc:Subject:Date:From; b=hdJmX6TfcykocaTr5OrRW3LbdILEh0itmqr9P21mwGlg6MNeeNmqG3lC80LfvXy6g VtUPAhXRHS6nGjOfsUwjv4hGM05Gke0gSh30zzdYv1zPY1K/pw/ewTT8Yp/pFtHxgA CqlBBLPXwAyP7VR93PLJDWmmif9jbReJ7JLAXEI1K/cSXYfGNGTUY0jhDW7DQKkLkv 3fLnVWbGfEdWbODApTbzfegitWoXOm7yzXOFjF2nGEbrSRbNtAzwlzPk6EFXSXbWOk /dWaNDETcJ9PdXN+Cgh02YBuiyQScJCQc1vmxaWB0AVd7HB7HFVPq6/I5aemCJlBbV L+fUTsc/kSZfw== From: Arnd Bergmann To: Andrew Morton , linux-kernel@vger.kernel.org, Masahiro Yamada , linux-kbuild@vger.kernel.org Cc: Arnd Bergmann , Matt Turner , Vineet Gupta , Russell King , Catalin Marinas , Will Deacon , Steven Rostedt , Masami Hiramatsu , Mark Rutland , Guo Ren , Peter Zijlstra , Ard Biesheuvel , Huacai Chen , Greg Ungerer , Michal Simek , Thomas Bogendoerfer , Dinh Nguyen , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Geoff Levand , Palmer Dabbelt , Heiko Carstens , John Paul Adrian Glaubitz , "David S. Miller" , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , x86@kernel.org, Helge Deller , Sudip Mukherjee , Greg Kroah-Hartman , Timur Tabi , Kent Overstreet , David Woodhouse , "Naveen N. Rao" , Anil S Keshavamurthy , Kees Cook , Vincenzo Frascino , Juri Lelli , Vincent Guittot , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Al Viro , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , linux-alpha@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-trace-kernel@vger.kernel.org, linux-csky@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, netdev@vger.kernel.org, linux-parisc@vger.kernel.org, linux-usb@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-bcachefs@vger.kernel.org, linux-mtd@lists.infradead.org Subject: [PATCH 00/22] -Wmissing-prototype warning fixes Date: Wed, 8 Nov 2023 13:58:21 +0100 Message-Id: <20231108125843.3806765-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231108_045911_608407_32F41C64 X-CRM114-Status: GOOD ( 26.07 ) X-Spam-Score: -2.7 (--) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Arnd Bergmann I slightly dropped the ball on this since last sending the series in August, but a number of warning fixes have made it into the kernel in the meantime, both from my earlier submission and from archit [...] Content analysis details: (-2.7 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [145.40.73.55 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.2 DKIMWL_WL_HIGH DKIMwl.org - High trust sender X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Arnd Bergmann I slightly dropped the ball on this since last sending the series in August, but a number of warning fixes have made it into the kernel in the meantime, both from my earlier submission and from architecture maintainers. I have none patches that remain from the previous submission, with two of them reworked according to comments. The additional patches are from more testing across architectures and configurations that I had previously missed. At least one patch is for a newly added warning in recent kernels. Regarding the regressions in terms of added warnings, there are now only five architectures left that add warnings (alpha, mips, nios2, sh and sparc) rather than 15, so I think we can apply the Kbuild change directly and have the architecture maintainers take care of the warnings just like the others did already. As before, my preference would be for the patches to make it through the respective subsystem maintainer trees, though I can apply the architecture specific ones to the asm-generic tree as well. Sorry for posting these during the merge window, I wanted to get them out before LPC so we can have them in linux-next as early as possible. Arnd Link: https://lore.kernel.org/lkml/20230810141947.1236730-1-arnd@kernel.org/ Arnd Bergmann (22): [RESEND^2] ida: make 'ida_dump' static [RESEND^2] jffs2: mark __jffs2_dbg_superblock_counts() static [RESEND] kprobes: unify kprobes_exceptions_nofify() prototypes [RESEND] time: make sysfs_get_uname() function visible in header [RESEND] parport: gsc: mark init function static [RESEND] stackleak: add declarations for global functions [RESEND] sched: fair: move unused stub functions to header [v2] arch: consolidate arch_irq_work_raise prototypes [v2] arch: fix asm-offsets.c building with -Wmissing-prototypes microblaze: include linux/cpu.h for trap_init() prototype x86: sta2x11: include header for sta2x11_get_instance() prototype csky: fix arch_jump_label_transform_static override arch: add do_page_fault prototypes arch: add missing prepare_ftrace_return() prototypes arch: vdso: consolidate gettime prototypes bcachefs: mark bch2_target_to_text_sb() static powerpc: ps3: move udbg_shutdown_ps3gelic prototype powerpc: pasemi: mark pas_shutdown() static powerpc: powermac: mark smp_psurge_{give,take}_timebase static usb: fsl-mph-dr-of: mark fsl_usb2_mpc5121_init() static fbdev/fsl-diu-fb: mark wr_reg_wa() static Makefile.extrawarn: turn on missing-prototypes globally arch/alpha/include/asm/mmu_context.h | 2 ++ arch/alpha/kernel/asm-offsets.c | 2 +- arch/alpha/kernel/traps.c | 1 + arch/arc/include/asm/kprobes.h | 3 --- arch/arm/include/asm/irq_work.h | 2 -- arch/arm/include/asm/kprobes.h | 2 -- arch/arm/include/asm/vdso.h | 5 ---- arch/arm/vdso/vgettimeofday.c | 1 + arch/arm64/include/asm/irq_work.h | 2 -- arch/arm64/include/asm/kprobes.h | 2 -- arch/arm64/kernel/vdso32/vgettimeofday.c | 1 + arch/csky/include/asm/ftrace.h | 4 +++ arch/csky/include/asm/irq_work.h | 2 +- arch/csky/include/asm/jump_label.h | 5 ++++ arch/csky/include/asm/traps.h | 2 +- arch/csky/kernel/traps.c | 1 + arch/csky/kernel/vdso/vgettimeofday.c | 11 +-------- arch/loongarch/kernel/asm-offsets.c | 26 ++++++++++---------- arch/loongarch/vdso/vgettimeofday.c | 7 +----- arch/m68k/coldfire/vectors.c | 3 +-- arch/m68k/coldfire/vectors.h | 3 --- arch/microblaze/include/asm/ftrace.h | 1 + arch/microblaze/kernel/traps.c | 1 + arch/mips/include/asm/ftrace.h | 4 +++ arch/mips/include/asm/kprobes.h | 2 -- arch/mips/include/asm/traps.h | 3 +++ arch/mips/vdso/vgettimeofday.c | 1 + arch/nios2/include/asm/traps.h | 2 ++ arch/powerpc/include/asm/irq_work.h | 1 - arch/powerpc/include/asm/kprobes.h | 2 -- arch/powerpc/include/asm/ps3.h | 6 +++++ arch/powerpc/platforms/pasemi/setup.c | 2 +- arch/powerpc/platforms/powermac/smp.c | 4 +-- arch/powerpc/platforms/ps3/gelic_udbg.c | 1 + arch/riscv/include/asm/irq_work.h | 2 +- arch/riscv/kernel/vdso/vgettimeofday.c | 7 +----- arch/s390/include/asm/irq_work.h | 2 -- arch/s390/include/asm/kprobes.h | 2 -- arch/sh/include/asm/kprobes.h | 2 -- arch/sh/include/asm/traps_32.h | 3 +++ arch/sparc/include/asm/kprobes.h | 2 -- arch/sparc/kernel/asm-offsets.c | 6 ++--- arch/sparc/kernel/traps_32.c | 1 + arch/sparc/kernel/traps_64.c | 1 + arch/x86/entry/vdso/vclock_gettime.c | 10 +------- arch/x86/include/asm/irq_work.h | 1 - arch/x86/include/asm/kprobes.h | 2 -- arch/x86/include/asm/traps.h | 1 - arch/x86/include/asm/vdso/gettimeofday.h | 2 -- arch/x86/kernel/traps.c | 1 + arch/x86/pci/sta2x11-fixup.c | 1 + arch/x86/um/vdso/um_vdso.c | 1 + drivers/net/ethernet/toshiba/ps3_gelic_net.h | 6 ----- drivers/parport/parport_gsc.c | 2 +- drivers/usb/host/fsl-mph-dr-of.c | 2 +- drivers/video/fbdev/fsl-diu-fb.c | 2 +- fs/bcachefs/disk_groups.c | 2 +- fs/jffs2/debug.c | 2 +- include/linux/irq_work.h | 3 +++ include/linux/kprobes.h | 4 +++ include/linux/stackleak.h | 6 +++++ include/vdso/gettime.h | 23 +++++++++++++++++ kernel/sched/fair.c | 13 ---------- kernel/sched/sched.h | 11 +++++++++ kernel/time/tick-internal.h | 3 ++- lib/test_ida.c | 2 +- scripts/Makefile.extrawarn | 4 +-- 67 files changed, 127 insertions(+), 122 deletions(-) delete mode 100644 arch/m68k/coldfire/vectors.h create mode 100644 include/vdso/gettime.h