]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
lib: glob: add explicit include for export.h
authorJosh Law <objecting@objecting.org>
Sun, 1 Mar 2026 15:21:41 +0000 (15:21 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 28 Mar 2026 04:19:37 +0000 (21:19 -0700)
Include <linux/export.h> explicitly instead of relying on it being
implicitly included by <linux/module.h> for the EXPORT_SYMBOL macro.

Link: https://lkml.kernel.org/r/20260301152143.2572137-1-objecting@objecting.org
Signed-off-by: Josh Law <objecting@objecting.org>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/glob.c

index 3e4a4b96f6d0cc8ae0fbf28a8f0d4031fbca10a5..44a8d5e4e99b3e37d0dda58a39b224a0d17d02a9 100644 (file)
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
 #include <linux/module.h>
 #include <linux/glob.h>
+#include <linux/export.h>
 
 /*
  * The only reason this code can be compiled as a module is because the