Skip to content

Commit 9669ddd

Browse files
Naman Jainliuw
authored andcommitted
net: mana: Fix warnings for missing export.h header inclusion
Fix below warning in Hyper-V's MANA 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 4a4f151 commit 9669ddd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/net/ethernet/microsoft/mana/gdma_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <linux/pci.h>
77
#include <linux/utsname.h>
88
#include <linux/version.h>
9+
#include <linux/export.h>
910

1011
#include <net/mana/mana.h>
1112

drivers/net/ethernet/microsoft/mana/mana_en.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <linux/filter.h>
1111
#include <linux/mm.h>
1212
#include <linux/pci.h>
13+
#include <linux/export.h>
1314

1415
#include <net/checksum.h>
1516
#include <net/ip6_checksum.h>

0 commit comments

Comments
 (0)