From: “ChengZhenghan” <chengzhenghan@uniontech.com>
To: Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
x86@kernel.org, linux-kernel@vger.kernel.org
Cc: "H . Peter Anvin" <hpa@zytor.com>,
Tom Lendacky <thomas.lendacky@amd.com>,
Nikunj A Dadhania <nikunj@amd.com>,
Ard Biesheuvel <ardb@kernel.org>,
Ashish Kalra <ashish.kalra@amd.com>,
ChengZhenghan <chengzhenghan@uniontech.com>
Subject: [PATCH] x86_coco_sev: Fix build warnings about export.h
Date: Wed, 11 Jun 2025 09:52:51 +0800 [thread overview]
Message-ID: <20250611015251.13258-1-chengzhenghan@uniontech.com> (raw)
From: ChengZhenghan <chengzhenghan@uniontech.com>
I got a build warning with W=1:
arch/x86/coco/sev/core.c:
warning: EXPORT_SYMBOL() is used,
but #include <linux/export.h> is missing
so I fixed the build warning for x86_64.
Signed-off-by: ChengZhenghan <chengzhenghan@uniontech.com>
---
arch/x86/coco/sev/core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/coco/sev/core.c b/arch/x86/coco/sev/core.c
index b6db4e0b936b..4b5d41bdd58d 100644
--- a/arch/x86/coco/sev/core.c
+++ b/arch/x86/coco/sev/core.c
@@ -20,6 +20,7 @@
#include <linux/mm.h>
#include <linux/cpumask.h>
#include <linux/efi.h>
+#include <linux/export.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/psp-sev.h>
--
2.47.2
next reply other threads:[~2025-06-11 1:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-11 1:52 “ChengZhenghan” [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-06-11 2:49 [PATCH] x86_coco_sev: Fix build warnings about export.h “ChengZhenghan”
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250611015251.13258-1-chengzhenghan@uniontech.com \
--to=chengzhenghan@uniontech.com \
--cc=ardb@kernel.org \
--cc=ashish.kalra@amd.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=nikunj@amd.com \
--cc=tglx@linutronix.de \
--cc=thomas.lendacky@amd.com \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox