[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <42abc705-bdb5-4be0-9fe7-b49d0a0d9507@linux.microsoft.com>
Date: Thu, 12 Jun 2025 15:27:55 +0530
From: Naman Jain <namjain@...ux.microsoft.com>
To: Zhenghan Cheng <chengzhenghan@...ontech.com>,
herbert@...dor.apana.org.au, davem@...emloft.net, peterz@...radead.org,
acme@...nel.org, namhyung@...nel.org, kys@...rosoft.com,
haiyangz@...rosoft.com, wei.liu@...nel.org, decui@...rosoft.com,
rafael@...nel.org, jgross@...e.com, Jason@...c4.com, mhiramat@...nel.org,
ebiggers@...nel.org, masahiroy@...nel.org
Cc: linux-kernel@...r.kernel.org, mark.rutland@....com,
alexander.shishkin@...ux.intel.com, jolsa@...nel.org, irogers@...gle.com,
adrian.hunter@...el.com, kan.liang@...ux.intel.com, lenb@...nel.org,
ajay.kaher@...adcom.com, alexey.makhalov@...adcom.com,
bcm-kernel-feedback-list@...adcom.com, ppaalanen@...il.com,
boris.ostrovsky@...cle.com, nathan@...nel.org, nicolas@...sle.eu,
ilpo.jarvinen@...ux.intel.com, usamaarif642@...il.com, ubizjat@...il.com,
dyoung@...hat.com, myrrhperiwinkle@...labs.xyz, guoweikang.kernel@...il.com,
graf@...zon.com, chao.gao@...el.com, chang.seok.bae@...el.com,
sohil.mehta@...el.com, vigbalas@....com, aruna.ramakrishna@...cle.com,
zhangkunbo@...wei.com, fvdl@...gle.com, gatlin.newhouse@...il.com,
snovitoll@...il.com, bjohannesmeyer@...il.com, glider@...gle.com,
david@...hat.com, lorenzo.stoakes@...cle.com, Liam.Howlett@...cle.com,
shivankg@....com, peterx@...hat.com, dan.j.williams@...el.com,
dave.jiang@...el.com, kevin.brodsky@....com, willy@...radead.org,
linux@...blig.org, Neeraj.Upadhyay@....com, wangyuli@...ontech.com,
linux-crypto@...r.kernel.org, linux-perf-users@...r.kernel.org,
linux-hyperv@...r.kernel.org, linux-acpi@...r.kernel.org,
linux-pci@...r.kernel.org, linux-efi@...r.kernel.org,
linux-kbuild@...r.kernel.org, Huacai Chen <chenhuacai@...ngson.cn>,
Zhenghan Cheng <your_email@...mple.com>
Subject: Re: [PATCH] x86: Fix build warnings about export.h
On 6/12/2025 3:00 PM, 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>
>
Thanks for sharing.
FYI, I sent a patch to fix these warnings in Hyper-V related drivers
here:
https://lore.kernel.org/all/20250611100459.92900-1-namjain@linux.microsoft.com/
Some of the files are common to the ones in your patch.
Regards,
Naman
Powered by blists - more mailing lists