Re: [PATCH 0/6] Fix warning for missing export.h in Hyper-V drivers

From: Saurabh Singh Sengar
Date: Wed Jun 11 2025 - 07:12:56 EST


On Wed, Jun 11, 2025 at 03:34:53PM +0530, Naman Jain wrote:
> When the kernel is compiled with W=1 option, a warning is reported
> if a .c file exports a symbol but does not include export.h header
> file. This warning was added in below patch, which merged recently:
> commit a934a57a42f6 ("scripts/misc-check: check missing #include <linux/export.h> when W=1")
>
> Fix this issue in Hyper-V drivers. This does not bring any
> functional changes.
>
> The one in drivers/hv/vmbus_drv.c is going to be fixed with
> https://lore.kernel.org/all/20250611072704.83199-2-namjain@xxxxxxxxxxxxxxxxxxx/
> so it is not included in this series.
>
> Naman Jain (6):
> Drivers: hv: Fix warnings for missing export.h header inclusion
> x86/hyperv: Fix warnings for missing export.h header inclusion
> KVM: x86: hyper-v: Fix warnings for missing export.h header inclusion
> clocksource: hyper-v: Fix warnings for missing export.h header
> inclusion
> PCI: hv: Fix warnings for missing export.h header inclusion
> net: mana: Fix warnings for missing export.h header inclusion
>
> arch/x86/hyperv/hv_init.c | 1 +
> arch/x86/hyperv/irqdomain.c | 1 +
> arch/x86/hyperv/ivm.c | 1 +
> arch/x86/hyperv/nested.c | 1 +
> arch/x86/kvm/hyperv.c | 1 +
> arch/x86/kvm/kvm_onhyperv.c | 1 +
> drivers/clocksource/hyperv_timer.c | 1 +
> drivers/hv/channel.c | 1 +
> drivers/hv/channel_mgmt.c | 1 +
> drivers/hv/hv_proc.c | 1 +
> drivers/hv/mshv_common.c | 1 +
> drivers/hv/mshv_root_hv_call.c | 1 +
> drivers/hv/ring_buffer.c | 1 +
> drivers/net/ethernet/microsoft/mana/gdma_main.c | 1 +
> drivers/net/ethernet/microsoft/mana/mana_en.c | 1 +
> drivers/pci/controller/pci-hyperv-intf.c | 1 +
> 16 files changed, 16 insertions(+)
>
>
> base-commit: 475c850a7fdd0915b856173186d5922899d65686
> --
> 2.34.1
>

For the series,
Reviewed-by: Saurabh Sengar <ssengar@xxxxxxxxxxxxxxxxxxx>