From patchwork Tue May 16 19:35:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243590 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12838C7EE24 for ; Tue, 16 May 2023 19:36:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 88CB9280001; Tue, 16 May 2023 15:36:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 83CF4900002; Tue, 16 May 2023 15:36:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7043E280001; Tue, 16 May 2023 15:36:12 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 617B5900002 for ; Tue, 16 May 2023 15:36:12 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 2927D403BD for ; Tue, 16 May 2023 19:36:12 +0000 (UTC) X-FDA: 80797124184.20.0813D77 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf24.hostedemail.com (Postfix) with ESMTP id 543F818000D for ; Tue, 16 May 2023 19:36:09 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=KwDbO61f; spf=pass (imf24.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1684265769; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=O6xJdLbEOI/54+AC04d1brsd6N0qTT4pdlPZE+xRiwc=; b=YD7+TyVbygpzui+0KzBHTySMmsPgPnwQsk9kRoE5201TtCixx2kl9bH48zNjSh36r9Ushj rYJmJux9I6AX2QrwsZdIvoGJHdbEs+wMSYJaDMxHG7T3lU5R4VzpZZ25A4XSse7HExapnG 6ZSCNKbZYLkL3f8jjNzSUWGCwSss03o= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=KwDbO61f; spf=pass (imf24.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1684265769; a=rsa-sha256; cv=none; b=5oXpZekNDDehxrkQqzYH+H2O+helzlnpU51OiglY1MKyDiFNLPzAWRKYKwG7Vo15JP7+xE Y5AR3UTnniylaFXJxk4/kCBS8/ugAVNTAVQcHt3+YmcmCPXNQfIy3garQdvibclvg5EwB9 lrhVcJf1kZYmWEWqeervFT5latlWLR8= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 21AD563CFE; Tue, 16 May 2023 19:36:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5E20C433EF; Tue, 16 May 2023 19:36:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265767; bh=oAoSmF3XxuLgHtI7FvZzT7auqFocUXgu+0MePwNsyrE=; h=From:To:Cc:Subject:Date:From; b=KwDbO61f3SBWhJix8Gr20ak/Qqboqqh3ldX/gA4euZLkNvRlBoYXYxgW34oKD5+bq lgA3GGHMsATzDaZfCh2jM0WzWNvEFjiOGPlsVGcQu/sXjiIoK3zNv5yWDm1DhznX7Y 9C89B6xO5lEbyaGUNpJ+Oy07z9iVjaOP927NmsglHmbwU2P2dm4OwFSIPr5PJ2r5Gz 1qqAqLg3NzZPU+tuOvCbIzt9KUilvGUbJ8Y+hlsLmDHIjedHIx/H1y1Bj+xZR8Goe8 03nF3w/T1w6FhjESnpTOJw33XxK0QUG9UAP0KyuSJ0VYZg4J2UxgOMGzi+kT2/XCMT GZd4OSYv/yqOQ== From: Arnd Bergmann To: x86@kernel.org Cc: Arnd Bergmann , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Andy Lutomirski , Steven Rostedt , Masami Hiramatsu , Mark Rutland , Juergen Gross , "Srivatsa S. Bhat (VMware)" , Alexey Makhalov , VMware PV-Drivers Reviewers , Peter Zijlstra , Darren Hart , Andy Shevchenko , Boris Ostrovsky , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-pci@vger.kernel.org, platform-driver-x86@vger.kernel.org, xen-devel@lists.xenproject.org, linux-pm@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 00/20] x86: address -Wmissing-prototype warnings Date: Tue, 16 May 2023 21:35:29 +0200 Message-Id: <20230516193549.544673-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 543F818000D X-Stat-Signature: kk5m5hw6obns9rqjqgi8y9cxamz75kxk X-HE-Tag: 1684265769-345335 X-HE-Meta: U2FsdGVkX1/0u5Hv+15uLcFR/e4QOrNFltrRq8cJvpbzG+zV0rUm2ZAbmxGIYli2vjD6ra1ZDBhuWh5paSy9KTsnUMNcMCy7XOI53htVXlklef1EfIk3vH8p9BffJ8hSViLiPx4r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8gZdNFkcuntexcuyO9Ol/nOc0gUxqOJEEqSDMwnVqpAuSu7mfLbEyQ+ml8jJPXkjcPVGemiTxbT77N7rnFovXVl+tD1Ih10MFgS+OCA5NYs3fNwMlzmen+FhJlE6kI9mTJ0mXrcikUFu9zM+Z9hQ/skynrmtxn7lZao5fj7Nhzlqhy1FMBoXLl8RW0y6zsHlHiGUqdVNMgqt7vF6hvzh6w9ix5rqFoKBLb2qzaq1TFY27gtpfkPBRTe9bfERvGRTuq3/MTDbyb7mxFbcgwwBiA7JPbcxt404z2pVRyXd2ZR5gE+BXyD9ERXcjqEvq9q8mMJFoKtZl0WAtokWlm3q8QrLqlWRT0f+fhvDNVITsD9XdbgKmEVJaB+ptJ/vbdOz4pAylIqw9x/jkxLfgvBTIFTFAzPnl2Rp5/qlVBegvZXp9o+bCu0t0U9ylD3Ao4gGHb/HHQ3H7anfV8VTZBkUChJQlLtSx14uHIN4FW+MWo8AHte2QRakBfedZCkM1oX2SmtYDPnxiLB4swa2+G8WyKnO99mCIvfuTV5wMRW/FdK4KHm8RKrCbIg/nWv9vFpnMGSB6EgpkVJaYRpA/6O2wZpXA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Arnd Bergmann This addresses all x86 specific prototype warnings. The majority of the patches should be straightforward, either adding an #include statement to get the right header, or ensuring that an unused global function is left out of the build when the prototype is hidden. The ones that are a bit awkward are those that just add a prototype to shut up the warning, but the prototypes are never used for calling the function because the only caller is in assembler code. I tried to come up with other ways to shut up the compiler using the asmlinkage annotation, but with no success. All of the warnings have to be addressed in some form before the warning can be enabled by default. Arnd Link: https://people.kernel.org/arnd/missing-prototype-warnings-in-the-kernel Arnd Bergmann (20): x86: move prepare_ftrace_return prototype to header x86: ce4100: Mark local functions as 'static' x86: apic: hide unused safe_smp_processor_id on UP x86: avoid unneeded __div64_32 function definition x86: head: add dummy prototype for mk_early_pgtbl_32 x86: math-emu: include asm/fpu/regset.h x86: doublefault: avoid missing-prototype warnings x86: highmem: include asm/numa.h for set_highmem_pages_init x86: platform_quirks: include linux/pnp.h for arch_pnpbios_disabled x86: xen: add missing prototypes x86: entry: add do_SYSENTER_32() prototype x86: qspinlock-paravirt: fix mising-prototype warnings x86: hibernate: declare global functions in suspend.h x86: fbdev: include asm/fb.h as needed x86: mce: add copy_mc_fragile_handle_tail prototype x86: vdso: include vdso/processor.h x86: usercopy: include arch_wb_cache_pmem declaration x86: ioremap: add early_memremap_pgprot_adjust prototype x86: purgatory: include header for warn() declaration x86: olpc: avoid missing-prototype warnings arch/x86/boot/compressed/error.c | 2 +- arch/x86/boot/compressed/error.h | 2 +- arch/x86/entry/vdso/vgetcpu.c | 1 + arch/x86/include/asm/div64.h | 2 ++ arch/x86/include/asm/doublefault.h | 4 ++++ arch/x86/include/asm/ftrace.h | 3 +++ arch/x86/include/asm/mce.h | 3 +++ arch/x86/include/asm/qspinlock_paravirt.h | 2 ++ arch/x86/include/asm/syscall.h | 6 ++++-- arch/x86/kernel/apic/ipi.c | 2 ++ arch/x86/kernel/doublefault_32.c | 1 + arch/x86/kernel/ftrace.c | 3 --- arch/x86/kernel/head32.c | 1 + arch/x86/kernel/paravirt.c | 2 ++ arch/x86/kernel/platform-quirks.c | 1 + arch/x86/lib/usercopy_64.c | 1 + arch/x86/math-emu/fpu_entry.c | 1 + arch/x86/mm/highmem_32.c | 1 + arch/x86/pci/ce4100.c | 4 ++-- arch/x86/platform/olpc/olpc_dt.c | 2 +- arch/x86/purgatory/purgatory.c | 1 + arch/x86/video/fbdev.c | 1 + arch/x86/xen/efi.c | 2 ++ arch/x86/xen/smp.h | 3 +++ arch/x86/xen/xen-ops.h | 14 ++++++++++++++ include/linux/io.h | 5 +++++ include/linux/olpc-ec.h | 2 ++ include/linux/suspend.h | 4 ++++ include/xen/xen.h | 3 +++ kernel/locking/qspinlock_paravirt.h | 20 ++++++++++---------- kernel/power/power.h | 5 ----- mm/internal.h | 6 ------ 32 files changed, 79 insertions(+), 31 deletions(-)