Blob Blame History Raw
From: Jagadeesh Pagadala <jagdsh.linux@gmail.com>
Date: Sun, 19 Apr 2020 11:09:17 +0530
Subject: tools/bpf/bpftool: Remove duplicate headers
Patch-mainline: v5.8-rc1
Git-commit: 93e516894752e8b2ae3c2e7671e3ea33e27e3898
References: bsc#1177028

Code cleanup: Remove duplicate headers which are included twice.

Signed-off-by: Jagadeesh Pagadala <jagdsh.linux@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/bpf/1587274757-14101-1-git-send-email-jagdsh.linux@gmail.com
Acked-by: Gary Lin <glin@suse.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(-)

--- 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"
--- 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"
--- 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>