summaryrefslogtreecommitdiff
path: root/lib/test_objpool.c
diff options
context:
space:
mode:
authorwuqiang.matt <wuqiang.matt@bytedance.com>2023-10-23 19:22:45 +0800
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>2023-10-24 10:04:59 +0900
commit4758560fa268cecfa1144f015aa9f2525d164b7e (patch)
treef6f25b29d96912d5dd7171b362809017e383e8cc /lib/test_objpool.c
parente2049d8569d94446eb581f792178c1ac4eddb58b (diff)
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/20231023112245.6112-1-wuqiang.matt@bytedance.com/ Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202310191512.vvypKU5Z-lkp@intel.com/ Signed-off-by: wuqiang.matt <wuqiang.matt@bytedance.com> Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'lib/test_objpool.c')
-rw-r--r--lib/test_objpool.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/test_objpool.c b/lib/test_objpool.c
index 98b5b37b6eea..a94078402138 100644
--- a/lib/test_objpool.c
+++ b/lib/test_objpool.c
@@ -6,21 +6,15 @@
* Copyright: wuqiang.matt@bytedance.com
*/
-#include <linux/version.h>
#include <linux/errno.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
-#include <linux/sched.h>
-#include <linux/cpumask.h>
#include <linux/completion.h>
#include <linux/kthread.h>
-#include <linux/cpu.h>
-#include <linux/cpuset.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/delay.h>
#include <linux/hrtimer.h>
-#include <linux/interrupt.h>
#include <linux/objpool.h>
#define OT_NR_MAX_BULK (16)