From: Arnd Bergmann Date: Mon, 17 Apr 2023 22:02:46 +0000 (+0200) Subject: module: stats: include uapi/linux/module.h X-Git-Tag: v6.6.7~2979^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=635dc38314c75c5727711d896d4c71ec92f6f20b;p=platform%2Fkernel%2Flinux-starfive.git module: stats: include uapi/linux/module.h MODULE_INIT_COMPRESSED_FILE is defined in the uapi header, which is not included indirectly from the normal linux/module.h, but has to be pulled in explicitly: kernel/module/stats.c: In function 'mod_stat_bump_invalid': kernel/module/stats.c:227:14: error: 'MODULE_INIT_COMPRESSED_FILE' undeclared (first use in this function) 227 | if (flags & MODULE_INIT_COMPRESSED_FILE) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Arnd Bergmann Signed-off-by: Luis Chamberlain --- diff --git a/kernel/module/stats.c b/kernel/module/stats.c index 1d31f96..c1cccd2 100644 --- a/kernel/module/stats.c +++ b/kernel/module/stats.c @@ -6,6 +6,7 @@ */ #include +#include #include #include #include