Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bpf: Remove unused headers

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

authored by

Lu Wei and committed by
Andrii Nakryiko
b0c407ec 155f556d

-2
-1
samples/bpf/sampleip_kern.c
··· 4 4 * modify it under the terms of version 2 of the GNU General Public 5 5 * License as published by the Free Software Foundation. 6 6 */ 7 - #include <linux/version.h> 8 7 #include <linux/ptrace.h> 9 8 #include <uapi/linux/bpf.h> 10 9 #include <uapi/linux/bpf_perf_event.h>
-1
samples/bpf/trace_event_kern.c
··· 5 5 * License as published by the Free Software Foundation. 6 6 */ 7 7 #include <linux/ptrace.h> 8 - #include <linux/version.h> 9 8 #include <uapi/linux/bpf.h> 10 9 #include <uapi/linux/bpf_perf_event.h> 11 10 #include <uapi/linux/perf_event.h>