diff options
author | Naman Jain <namjain@linux.microsoft.com> | 2025-06-11 15:34:58 +0530 |
---|---|---|
committer | Wei Liu <wei.liu@kernel.org> | 2025-07-09 23:46:06 +0000 |
commit | 4a4f15170b63bd3b8a6534b39330e981704c7369 (patch) | |
tree | c5fcae0662e2c5c8c411f8aa79fe7bec5ab65ffd | |
parent | 5b187e9a31547d63a1a4078b79f7fb3fdbca92cd (diff) |
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>
-rw-r--r-- | drivers/pci/controller/pci-hyperv-intf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/controller/pci-hyperv-intf.c b/drivers/pci/controller/pci-hyperv-intf.c index cc96be450360..28b3e93d31c0 100644 --- a/drivers/pci/controller/pci-hyperv-intf.c +++ b/drivers/pci/controller/pci-hyperv-intf.c @@ -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); |