[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1471090643-22403-2-git-send-email-eric@regit.org>
Date: Sat, 13 Aug 2016 14:17:22 +0200
From: Eric Leblond <eric@...it.org>
To: netdev@...r.kernel.org
Cc: Alexei Starovoitov <ast@...com>, wangnan0@...wei.com,
Eric Leblond <eric@...it.org>
Subject: [PATCH net-next 1/2] tools lib bpf: suppress useless include
The include of err.h is not explicitely needed in exported
functions and it was causing include conflict with some existing
code due to redefining some macros.
Signed-off-by: Eric Leblond <eric@...it.org>
---
tools/lib/bpf/libbpf.c | 1 +
tools/lib/bpf/libbpf.h | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c
index b699aea..7872ff6 100644
--- a/tools/lib/bpf/libbpf.c
+++ b/tools/lib/bpf/libbpf.c
@@ -31,6 +31,7 @@
#include <linux/kernel.h>
#include <linux/bpf.h>
#include <linux/list.h>
+#include <linux/err.h>
#include <libelf.h>
#include <gelf.h>
diff --git a/tools/lib/bpf/libbpf.h b/tools/lib/bpf/libbpf.h
index dd7a513..a6c5cde 100644
--- a/tools/lib/bpf/libbpf.h
+++ b/tools/lib/bpf/libbpf.h
@@ -23,7 +23,6 @@
#include <stdio.h>
#include <stdbool.h>
-#include <linux/err.h>
enum libbpf_errno {
__LIBBPF_ERRNO__START = 4000,
--
2.8.1
Powered by blists - more mailing lists