Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Drivers: hv: Fix warnings for missing export.h header inclusion

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>

authored by

Naman Jain and committed by
Wei Liu
2b206d34 b0871aa0

+6
+1
drivers/hv/channel.c
··· 18 18 #include <linux/uio.h> 19 19 #include <linux/interrupt.h> 20 20 #include <linux/set_memory.h> 21 + #include <linux/export.h> 21 22 #include <asm/page.h> 22 23 #include <asm/mshyperv.h> 23 24
+1
drivers/hv/channel_mgmt.c
··· 20 20 #include <linux/delay.h> 21 21 #include <linux/cpu.h> 22 22 #include <linux/hyperv.h> 23 + #include <linux/export.h> 23 24 #include <asm/mshyperv.h> 24 25 #include <linux/sched/isolation.h> 25 26
+1
drivers/hv/hv_proc.c
··· 6 6 #include <linux/slab.h> 7 7 #include <linux/cpuhotplug.h> 8 8 #include <linux/minmax.h> 9 + #include <linux/export.h> 9 10 #include <asm/mshyperv.h> 10 11 11 12 /*
+1
drivers/hv/mshv_common.c
··· 13 13 #include <linux/mm.h> 14 14 #include <asm/mshyperv.h> 15 15 #include <linux/resume_user_mode.h> 16 + #include <linux/export.h> 16 17 17 18 #include "mshv.h" 18 19
+1
drivers/hv/mshv_root_hv_call.c
··· 9 9 10 10 #include <linux/kernel.h> 11 11 #include <linux/mm.h> 12 + #include <linux/export.h> 12 13 #include <asm/mshyperv.h> 13 14 14 15 #include "mshv_root.h"
+1
drivers/hv/ring_buffer.c
··· 18 18 #include <linux/slab.h> 19 19 #include <linux/prefetch.h> 20 20 #include <linux/io.h> 21 + #include <linux/export.h> 21 22 #include <asm/mshyperv.h> 22 23 23 24 #include "hyperv_vmbus.h"