[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250612190347.GB1283@sol>
Date: Thu, 12 Jun 2025 12:03:47 -0700
From: Eric Biggers <ebiggers@...nel.org>
To: Zhenghan Cheng <chengzhenghan@...ontech.com>
Cc: tglx@...utronix.de, mingo@...hat.com, bp@...en8.de,
dave.hansen@...ux.intel.com, x86@...nel.org,
mario.limonciello@....com, yazen.ghannam@....com,
jpoimboe@...nel.org, tony.luck@...el.com, jarkko@...nel.org,
bhelgaas@...gle.com, pbonzini@...hat.com, oleg@...hat.com,
jbaron@...mai.com, ning.sun@...el.com, seanjc@...gle.com,
luto@...nel.org, andy@...nel.org, jim.cromie@...il.com,
kirill.shutemov@...ux.intel.com, hpa@...or.com,
pawan.kumar.gupta@...ux.intel.com, vkuznets@...hat.com,
rostedt@...dmis.org, ardb@...nel.org, thomas.lendacky@....com,
nikunj@....com, ashish.kalra@....com, kees@...nel.org,
alexandre.chartre@...cle.com, rppt@...nel.org, steve.wahl@....com,
jirislaby@...nel.org, apatel@...tanamicro.com, bvanassche@....org,
ptsm@...ux.microsoft.com, Jonathan.Cameron@...wei.com,
beata.michalska@....com, xin@...or.com, davydov-max@...dex-team.ru,
ravi.bangoria@....com, joel.granados@...nel.org,
ffmancera@...eup.net, kprateek.nayak@....com,
akpm@...ux-foundation.org, bhe@...hat.com, brgerst@...il.com,
coxu@...hat.com, dmaluka@...omium.org, linux-kernel@...r.kernel.org,
linux-edac@...r.kernel.org, linux-sgx@...r.kernel.org,
kvm@...r.kernel.org, virtualization@...ts.linux.dev,
tboot-devel@...ts.sourceforge.net, nouveau@...ts.freedesktop.org,
linux-coco@...ts.linux.dev, xen-devel@...ts.xenproject.org,
Huacai Chen <chenhuacai@...ngson.cn>,
Zhenghan Cheng <your_email@...mple.com>
Subject: Re: [PATCH] x86: Fix build warnings about export.h
On Thu, Jun 12, 2025 at 05:32:28PM +0800, Zhenghan Cheng wrote:
> After commit a934a57a42f64a4 ("scripts/misc-check:
> check missing #include <linux/export.h> when W=1")
> and commit 7d95680d64ac8e836c ("scripts/misc-check:
> check unnecessary #include <linux/export.h> when W=1"),
> we get some build warnings with W=1,such as:
>
> arch/x86/coco/sev/core.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
> arch/x86/crypto/aria_aesni_avx2_glue.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
> arch/x86/kernel/unwind_orc.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
> arch/x86/kvm/hyperv.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
> arch/x86/events/intel/core.c: warning: EXPORT_SYMBOL() is not used, but #include <linux/export.h> is present
> arch/x86/events/zhaoxin/core.c: warning: EXPORT_SYMBOL() is not used, but #include <linux/export.h> is present
> arch/x86/kernel/crash.c: warning: EXPORT_SYMBOL() is not used, but #include <linux/export.h> is present
> arch/x86/kernel/devicetree.c: warning: EXPORT_SYMBOL() is not used, but #include <linux/export.h> is present
>
> so fix these build warnings for x86.
>
> Signed-off-by: "Zhenghan Cheng" <chengzhenghan@...ontech.com>
> Suggested-by: "Huacai Chen" <chenhuacai@...ngson.cn>
FYI, I'm planning to handle arch/x86/lib/crc*.c and arch/x86/lib/crypto/.
(Specifically, I'm migrating them to lib/crc/ and lib/crypto/ respectively, and
one of the effects of that is the EXPORT_SYMBOL in arch-specific crc and crypto
library files go away. The lib/crc/ change is already in linux-next, and
https://lore.kernel.org/r/20250612183852.114878-1-ebiggers@kernel.org adds
<linux/export.h> to all files with EXPORT_SYMBOL in lib/crc/.)
- Eric
Powered by blists - more mailing lists