* [PATCH] x86_coco_sev: Fix build warnings about export.h
@ 2025-06-11 1:52 “ChengZhenghan”
0 siblings, 0 replies; 2+ messages in thread
From: “ChengZhenghan” @ 2025-06-11 1:52 UTC (permalink / raw)
To: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen, x86,
linux-kernel
Cc: H . Peter Anvin, Tom Lendacky, Nikunj A Dadhania, Ard Biesheuvel,
Ashish Kalra, ChengZhenghan
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] x86_coco_sev: Fix build warnings about export.h
@ 2025-06-11 2:49 “ChengZhenghan”
0 siblings, 0 replies; 2+ messages in thread
From: “ChengZhenghan” @ 2025-06-11 2:49 UTC (permalink / raw)
To: Herbert Xu, David S . Miller, Thomas Gleixner, Ingo Molnar,
Borislav Petkov, Dave Hansen, x86, linux-crypto, linux-kernel
Cc: H . Peter Anvin, ChengZhenghan
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-06-11 2:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-11 2:49 [PATCH] x86_coco_sev: Fix build warnings about export.h “ChengZhenghan”
-- strict thread matches above, loose matches on Subject: below --
2025-06-11 1:52 “ChengZhenghan”
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox