Skip to content

Commit 4758560

Browse files
mattwuqmhiramat
authored andcommitted
kprobes: unused header files removed
As kernel test robot reported, lib/test_objpool.c (trace:probes/for-next) has linux/version.h included, but version.h is not used at all. Then more unused headers are found in test_objpool.c and rethook.c, and all of them should be removed. Link: https://lore.kernel.org/all/[email protected]/ Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: wuqiang.matt <[email protected]> Acked-by: Masami Hiramatsu (Google) <[email protected]> Signed-off-by: Masami Hiramatsu (Google) <[email protected]>
1 parent e2049d8 commit 4758560

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

kernel/trace/rethook.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
#include <linux/preempt.h>
99
#include <linux/rethook.h>
1010
#include <linux/slab.h>
11-
#include <linux/sort.h>
12-
#include <linux/smp.h>
1311

1412
/* Return hook list (shadow stack by list) */
1513

lib/test_objpool.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,15 @@
66
* Copyright: [email protected]
77
*/
88

9-
#include <linux/version.h>
109
#include <linux/errno.h>
1110
#include <linux/module.h>
1211
#include <linux/moduleparam.h>
13-
#include <linux/sched.h>
14-
#include <linux/cpumask.h>
1512
#include <linux/completion.h>
1613
#include <linux/kthread.h>
17-
#include <linux/cpu.h>
18-
#include <linux/cpuset.h>
1914
#include <linux/slab.h>
2015
#include <linux/vmalloc.h>
2116
#include <linux/delay.h>
2217
#include <linux/hrtimer.h>
23-
#include <linux/interrupt.h>
2418
#include <linux/objpool.h>
2519

2620
#define OT_NR_MAX_BULK (16)

0 commit comments

Comments
 (0)