Skip to contentSkip to conversation

bpf: Remove unused headers

PATCH New Lu Wei 1 participant 1 message Mar 24, 2021

Subsystems (3)
lore
Share & tools
lore

Lu Wei

author
#0 lore raw

PATCH 1/1 bpf: Remove unused headers

The header <linux/version.h> is useless in sampleip_kern.c and trace_event_kern.c, remove it.

---
 samples/bpf/sampleip_kern.c    | 1 -
 samples/bpf/trace_event_kern.c | 1 -
 2 files changed, 2 deletions(-)
samples/bpf/sampleip_kern.c +0 -1
index f24806ac24e7..a3f8a3998e0a 100644
@@ -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>
samples/bpf/trace_event_kern.c +0 -1
index 7d3c66fb3f88..0bba5fcd7d24 100644
@@ -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>
Signature · 1 line
2.17.1