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

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

Fix below warning in Hyper-V PCI driver 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-6-namjain@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <20250611100459.92900-6-namjain@linux.microsoft.com>

authored by

Naman Jain and committed by
Wei Liu
4a4f1517 5b187e9a

+1
+1
drivers/pci/controller/pci-hyperv-intf.c
··· 14 14 #include <linux/kernel.h> 15 15 #include <linux/module.h> 16 16 #include <linux/hyperv.h> 17 + #include <linux/export.h> 17 18 18 19 struct hyperv_pci_block_ops hvpci_block_ops; 19 20 EXPORT_SYMBOL_GPL(hvpci_block_ops);