Skip to content

Commit 0271e72

Browse files
Naman Jainliuw
authored andcommitted
x86/hyperv: 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 <[email protected]> Reviewed-by: Saurabh Sengar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Wei Liu <[email protected]> Message-ID: <[email protected]>
1 parent 2b206d3 commit 0271e72

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

arch/x86/hyperv/hv_init.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include <linux/syscore_ops.h>
3535
#include <clocksource/hyperv_timer.h>
3636
#include <linux/highmem.h>
37+
#include <linux/export.h>
3738

3839
void *hv_hypercall_pg;
3940
EXPORT_SYMBOL_GPL(hv_hypercall_pg);

arch/x86/hyperv/irqdomain.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#include <linux/pci.h>
1212
#include <linux/irq.h>
13+
#include <linux/export.h>
1314
#include <asm/mshyperv.h>
1415

1516
static int hv_map_interrupt(union hv_device_id device_id, bool level,

arch/x86/hyperv/ivm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <linux/types.h>
1111
#include <linux/slab.h>
1212
#include <linux/cpu.h>
13+
#include <linux/export.h>
1314
#include <asm/svm.h>
1415
#include <asm/sev.h>
1516
#include <asm/io.h>

arch/x86/hyperv/nested.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212

1313
#include <linux/types.h>
14+
#include <linux/export.h>
1415
#include <hyperv/hvhdk.h>
1516
#include <asm/mshyperv.h>
1617
#include <asm/tlbflush.h>

0 commit comments

Comments
 (0)