]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
clocksource: hyper-v: Fix warnings for missing export.h header inclusion
authorNaman Jain <namjain@linux.microsoft.com>
Wed, 11 Jun 2025 10:04:57 +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 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>

drivers/clocksource/hyperv_timer.c

index 09549451dd515a93bee87bc0727d6dd336693920..2edc13ca184e0d4168a8d03347c7e07e6406d13f 100644 (file)
@@ -22,6 +22,7 @@
 #include <linux/irq.h>
 #include <linux/acpi.h>
 #include <linux/hyperv.h>
+#include <linux/export.h>
 #include <clocksource/hyperv_timer.h>
 #include <hyperv/hvhdk.h>
 #include <asm/mshyperv.h>