bpf: Remove unused headers
authorLu Wei <luwei32@huawei.com>
Wed, 24 Mar 2021 08:31:47 +0000 (16:31 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 26 Mar 2021 05:03:46 +0000 (22:03 -0700)
The header <linux/version.h> is useless in sampleip_kern.c
and trace_event_kern.c, remove it.

Signed-off-by: Lu Wei <luwei32@huawei.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210324083147.149278-1-luwei32@huawei.com
samples/bpf/sampleip_kern.c
samples/bpf/trace_event_kern.c

index f24806ac24e749690684afaccd3a46fa8bed28ed..a3f8a3998e0a862ddf2d4b45388f9adcfa3ebf3a 100644 (file)
@@ -4,7 +4,6 @@
  * modify it under the terms of version 2 of the GNU General Public
  * License as published by the Free Software Foundation.
  */
-#include <linux/version.h>
 #include <linux/ptrace.h>
 #include <uapi/linux/bpf.h>
 #include <uapi/linux/bpf_perf_event.h>
index 7d3c66fb3f88b15980039d7c18d50f2690c2db39..0bba5fcd7d24baaa0c8a04dfeb36e34b4ac580c4 100644 (file)
@@ -5,7 +5,6 @@
  * License as published by the Free Software Foundation.
  */
 #include <linux/ptrace.h>
-#include <linux/version.h>
 #include <uapi/linux/bpf.h>
 #include <uapi/linux/bpf_perf_event.h>
 #include <uapi/linux/perf_event.h>