Skip to content

Commit 5b187e9

Browse files
Naman Jainliuw
authored andcommitted
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>
1 parent 0271e72 commit 5b187e9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/clocksource/hyperv_timer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <linux/irq.h>
2323
#include <linux/acpi.h>
2424
#include <linux/hyperv.h>
25+
#include <linux/export.h>
2526
#include <clocksource/hyperv_timer.h>
2627
#include <hyperv/hvhdk.h>
2728
#include <asm/mshyperv.h>

0 commit comments

Comments
 (0)