Skip to content

Commit

Permalink
bpf: Remove unused headers
Browse files Browse the repository at this point in the history
The header <linux/version.h> is useless in sampleip_kern.c
and trace_event_kern.c, remove it.

Signed-off-by: Lu Wei <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
  • Loading branch information
Lu Wei authored and anakryiko committed Mar 26, 2021
1 parent 155f556 commit b0c407e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion samples/bpf/sampleip_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion samples/bpf/trace_event_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit b0c407e

Please sign in to comment.