]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
PCI: hv: Fix warnings for missing export.h header inclusion
authorNaman Jain <namjain@linux.microsoft.com>
Wed, 11 Jun 2025 10:04:58 +0000 (15:34 +0530)
committerWei Liu <wei.liu@kernel.org>
Wed, 9 Jul 2025 23:46:06 +0000 (23:46 +0000)
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>

drivers/pci/controller/pci-hyperv-intf.c

index cc96be4503606f18973031a2541423434acd546c..28b3e93d31c0f509a478396f7b1c267c0b8db78e 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/hyperv.h>
+#include <linux/export.h>
 
 struct hyperv_pci_block_ops hvpci_block_ops;
 EXPORT_SYMBOL_GPL(hvpci_block_ops);