[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20250611015251.13258-1-chengzhenghan@uniontech.com>
Date: Wed, 11 Jun 2025 09:52:51 +0800
From: “ChengZhenghan” <chengzhenghan@...ontech.com>
To: Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>,
x86@...nel.org,
linux-kernel@...r.kernel.org
Cc: "H . Peter Anvin" <hpa@...or.com>,
Tom Lendacky <thomas.lendacky@....com>,
Nikunj A Dadhania <nikunj@....com>,
Ard Biesheuvel <ardb@...nel.org>,
Ashish Kalra <ashish.kalra@....com>,
ChengZhenghan <chengzhenghan@...ontech.com>
Subject: [PATCH] x86_coco_sev: Fix build warnings about export.h
From: ChengZhenghan <chengzhenghan@...ontech.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@...ontech.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
Powered by blists - more mailing lists