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.

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 <namjain@linux.microsoft.com>
Reviewed-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Link: https://lore.kernel.org/r/20250611100459.92900-7-namjain@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <20250611100459.92900-7-namjain@linux.microsoft.com>

authored by

Naman Jain and committed by
Wei Liu
9669ddda 4a4f1517

+2
+1
drivers/net/ethernet/microsoft/mana/gdma_main.c
··· 6 6 #include <linux/pci.h> 7 7 #include <linux/utsname.h> 8 8 #include <linux/version.h> 9 + #include <linux/export.h> 9 10 10 11 #include <net/mana/mana.h> 11 12
+1
drivers/net/ethernet/microsoft/mana/mana_en.c
··· 10 10 #include <linux/filter.h> 11 11 #include <linux/mm.h> 12 12 #include <linux/pci.h> 13 + #include <linux/export.h> 13 14 14 15 #include <net/checksum.h> 15 16 #include <net/ip6_checksum.h>