summaryrefslogtreecommitdiff
path: root/kernel/module
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2023-04-18 00:02:46 +0200
committerLuis Chamberlain <mcgrof@kernel.org>2023-04-18 11:35:50 -0700
commit635dc38314c75c5727711d896d4c71ec92f6f20b (patch)
treec462d9e2774a2bd029a13245aa9d35e3c781411a /kernel/module
parent064f4536d13939b6e8cdb71298ff5d657f4f8caa (diff)
downloadlwn-635dc38314c75c5727711d896d4c71ec92f6f20b.tar.gz
lwn-635dc38314c75c5727711d896d4c71ec92f6f20b.zip
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 <arnd@arndb.de> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'kernel/module')
-rw-r--r--kernel/module/stats.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/module/stats.c b/kernel/module/stats.c
index 1d31f96a5e28..c1cccd2c3595 100644
--- a/kernel/module/stats.c
+++ b/kernel/module/stats.c
@@ -6,6 +6,7 @@
*/
#include <linux/module.h>
+#include <uapi/linux/module.h>
#include <linux/string.h>
#include <linux/printk.h>
#include <linux/slab.h>