[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1587274757-14101-1-git-send-email-jagdsh.linux@gmail.com>
Date: Sun, 19 Apr 2020 11:09:17 +0530
From: jagdsh.linux@...il.com
To: ast@...nel.org, daniel@...earbox.net, kafai@...com,
songliubraving@...com, yhs@...com, andriin@...com,
john.fastabend@...il.com, kpsingh@...omium.org, kuba@...nel.org,
quentin@...valent.com, jolsa@...nel.org, toke@...hat.com,
paul.chaignon@...nge.com
Cc: netdev@...r.kernel.org, bpf@...r.kernel.org,
linux-kernel@...r.kernel.org,
Jagadeesh Pagadala <jagdsh.linux@...il.com>
Subject: [PATCH] tools/bpf/bpftool: Remove duplicate headers
From: Jagadeesh Pagadala <jagdsh.linux@...il.com>
Code cleanup: Remove duplicate headers which are included twice.
Signed-off-by: Jagadeesh Pagadala <jagdsh.linux@...il.com>
---
tools/bpf/bpftool/btf.c | 1 -
tools/bpf/bpftool/gen.c | 1 -
tools/bpf/bpftool/jit_disasm.c | 1 -
3 files changed, 3 deletions(-)
diff --git a/tools/bpf/bpftool/btf.c b/tools/bpf/bpftool/btf.c
index bcaf55b..41a1346 100644
--- a/tools/bpf/bpftool/btf.c
+++ b/tools/bpf/bpftool/btf.c
@@ -15,7 +15,6 @@
#include <linux/hashtable.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include <unistd.h>
#include "json_writer.h"
#include "main.h"
diff --git a/tools/bpf/bpftool/gen.c b/tools/bpf/bpftool/gen.c
index f8113b3..0e5f023 100644
--- a/tools/bpf/bpftool/gen.c
+++ b/tools/bpf/bpftool/gen.c
@@ -17,7 +17,6 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
-#include <unistd.h>
#include <bpf/btf.h>
#include "bpf/libbpf_internal.h"
diff --git a/tools/bpf/bpftool/jit_disasm.c b/tools/bpf/bpftool/jit_disasm.c
index f7f5885..e7e7eee 100644
--- a/tools/bpf/bpftool/jit_disasm.c
+++ b/tools/bpf/bpftool/jit_disasm.c
@@ -15,7 +15,6 @@
#include <stdio.h>
#include <stdarg.h>
#include <stdint.h>
-#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <unistd.h>
--
1.8.3.1
Powered by blists - more mailing lists