]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Drivers: hv: Fix warnings for missing export.h header inclusion
authorNaman Jain <namjain@linux.microsoft.com>
Wed, 11 Jun 2025 10:04:54 +0000 (15:34 +0530)
committerWei Liu <wei.liu@kernel.org>
Wed, 9 Jul 2025 23:43:52 +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: Nuno Das Neves <nunodasneves@linux.microsoft.com>
Reviewed-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Link: https://lore.kernel.org/r/20250611100459.92900-2-namjain@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <20250611100459.92900-2-namjain@linux.microsoft.com>

drivers/hv/channel.c
drivers/hv/channel_mgmt.c
drivers/hv/hv_proc.c
drivers/hv/mshv_common.c
drivers/hv/mshv_root_hv_call.c
drivers/hv/ring_buffer.c

index 35f26fa1ffe76e8a3fb4d64eb563c520d0da4d98..7c7c66e0dc3f23804d0763a9a5fa7ebc15c7a8f3 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/uio.h>
 #include <linux/interrupt.h>
 #include <linux/set_memory.h>
+#include <linux/export.h>
 #include <asm/page.h>
 #include <asm/mshyperv.h>
 
index 6e084c2074141ba00c5db4c54ca92856283921ce..65dd299e2944bd1284e1301a844e88b21182899a 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/delay.h>
 #include <linux/cpu.h>
 #include <linux/hyperv.h>
+#include <linux/export.h>
 #include <asm/mshyperv.h>
 #include <linux/sched/isolation.h>
 
index 7d7ecb6f6137d26b4562f16804912ceb4d7b4fe8..fbb4eb3901bbec4d0e271403e8939c66d3cd6e92 100644 (file)
@@ -6,6 +6,7 @@
 #include <linux/slab.h>
 #include <linux/cpuhotplug.h>
 #include <linux/minmax.h>
+#include <linux/export.h>
 #include <asm/mshyperv.h>
 
 /*
index 2575e6d7a71fa1a0abcf9cc22bbafeb7dee68d5c..6f227a8a5af719e13dd4601cf03f7eac680fe138 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/mm.h>
 #include <asm/mshyperv.h>
 #include <linux/resume_user_mode.h>
+#include <linux/export.h>
 
 #include "mshv.h"
 
index a222a16107f632cf4ea5e4e2cbc233c64c6ab19c..c9c274f29c3c612d080d71a3980054cef915b325 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <linux/kernel.h>
 #include <linux/mm.h>
+#include <linux/export.h>
 #include <asm/mshyperv.h>
 
 #include "mshv_root.h"
index 3c9b02471760a33d340c1f50914ab305e5bec0eb..23ce1fb70de143b249b3ce956adf2c27e3116d10 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/slab.h>
 #include <linux/prefetch.h>
 #include <linux/io.h>
+#include <linux/export.h>
 #include <asm/mshyperv.h>
 
 #include "hyperv_vmbus.h"