]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
x86/hyperv: Fix warnings for missing export.h header inclusion
authorNaman Jain <namjain@linux.microsoft.com>
Wed, 11 Jun 2025 10:04:55 +0000 (15:34 +0530)
committerWei Liu <wei.liu@kernel.org>
Wed, 9 Jul 2025 23:43:53 +0000 (23:43 +0000)
Fix below warning in Hyper-V drivers that comes when kernel is compiled
with W=1 option. Include export.h in driver files to fix it.
* warning: EXPORT_SYMBOL() is used, but #include <linux/export.h>
is missing

Signed-off-by: Naman Jain <namjain@linux.microsoft.com>
Reviewed-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Link: https://lore.kernel.org/r/20250611100459.92900-3-namjain@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <20250611100459.92900-3-namjain@linux.microsoft.com>

arch/x86/hyperv/hv_init.c
arch/x86/hyperv/irqdomain.c
arch/x86/hyperv/ivm.c
arch/x86/hyperv/nested.c

index 3d1d3547095a4c317e37550b87cb2897210919cd..afdbda2dd7b7e213289a272adcafed5e6e1e879f 100644 (file)
@@ -34,6 +34,7 @@
 #include <linux/syscore_ops.h>
 #include <clocksource/hyperv_timer.h>
 #include <linux/highmem.h>
+#include <linux/export.h>
 
 void *hv_hypercall_pg;
 EXPORT_SYMBOL_GPL(hv_hypercall_pg);
index 31f0d29cbc5e3e1f3651df9bb9b2c35687dbf577..f7627bc8fe4953e6222146082d51bc03dcbab46a 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <linux/pci.h>
 #include <linux/irq.h>
+#include <linux/export.h>
 #include <asm/mshyperv.h>
 
 static int hv_map_interrupt(union hv_device_id device_id, bool level,
index e93a2f488ff7b705c33eb33d5b130f17b79df8b6..ade6c665c97e9cd9a68cab0287dbbe8b6c417fd2 100644 (file)
@@ -10,6 +10,7 @@
 #include <linux/types.h>
 #include <linux/slab.h>
 #include <linux/cpu.h>
+#include <linux/export.h>
 #include <asm/svm.h>
 #include <asm/sev.h>
 #include <asm/io.h>
index 1083dc8646f9d2f7874daf76cb8c0f93e3dfa0e0..8ccbb7c4fc27d797d2e11ce9f6c00972f6dcbaf2 100644 (file)
@@ -11,6 +11,7 @@
 
 
 #include <linux/types.h>
+#include <linux/export.h>
 #include <hyperv/hvhdk.h>
 #include <asm/mshyperv.h>
 #include <asm/tlbflush.h>