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

clocksource: hyper-v: Fix warnings for missing export.h header inclusion

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

authored by

Naman Jain and committed by
Wei Liu
5b187e9a 0271e72b

+1
+1
drivers/clocksource/hyperv_timer.c
··· 22 22 #include <linux/irq.h> 23 23 #include <linux/acpi.h> 24 24 #include <linux/hyperv.h> 25 + #include <linux/export.h> 25 26 #include <clocksource/hyperv_timer.h> 26 27 #include <hyperv/hvhdk.h> 27 28 #include <asm/mshyperv.h>