Skip to content

Commit 56d82e0

Browse files
author
Paul Gortmaker
committed
kernel: Add <linux/module.h> to files using it implicitly
These files are doing things like module_put and try_module_get so they need to call out the module.h for explicit inclusion, rather than getting it via <linux/device.h> which we ideally want to remove the module.h inclusion from. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
1 parent 9984de1 commit 56d82e0

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎kernel/trace/ftrace.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <linux/hardirq.h>
2323
#include <linux/kthread.h>
2424
#include <linux/uaccess.h>
25+
#include <linux/module.h>
2526
#include <linux/ftrace.h>
2627
#include <linux/sysctl.h>
2728
#include <linux/slab.h>

‎kernel/trace/trace_syscalls.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <trace/events/syscalls.h>
33
#include <linux/slab.h>
44
#include <linux/kernel.h>
5+
#include <linux/module.h> /* for MODULE_NAME_LEN via KSYM_SYMBOL_LEN */
56
#include <linux/ftrace.h>
67
#include <linux/perf_event.h>
78
#include <asm/syscall.h>

0 commit comments

Comments
 (0)