[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAH3MdRVLVugbJbD4_u2bYjqitC4xFL_j8GoHUTBN77Tm9Dy3Ew@mail.gmail.com>
Date: Thu, 2 May 2019 13:18:17 -0700
From: Y Song <ys114321@...il.com>
To: William Tu <u9012063@...il.com>
Cc: Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
netdev <netdev@...r.kernel.org>, bpf <bpf@...r.kernel.org>,
Magnus Karlsson <magnus.karlsson@...el.com>, blp@....org
Subject: Re: [PATCH bpf] libbpf: add libbpf_util.h to header install.
On Thu, May 2, 2019 at 11:34 AM William Tu <u9012063@...il.com> wrote:
>
> The libbpf_util.h is used by xsk.h, so add it to
> the install headers.
Can we try to change code a little bit to avoid exposing libbpf_util.h?
Originally libbpf_util.h is considered as libbpf internal.
I am not strongly against this patch. But would really like to see
whether we have an alternative not exposing libbpf_util.h.
>
> Reported-by: Ben Pfaff <blp@....org>
> Signed-off-by: William Tu <u9012063@...il.com>
> ---
> tools/lib/bpf/Makefile | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile
> index c6c06bc6683c..f91639bf5650 100644
> --- a/tools/lib/bpf/Makefile
> +++ b/tools/lib/bpf/Makefile
> @@ -230,6 +230,7 @@ install_headers:
> $(call do_install,bpf.h,$(prefix)/include/bpf,644); \
> $(call do_install,libbpf.h,$(prefix)/include/bpf,644); \
> $(call do_install,btf.h,$(prefix)/include/bpf,644); \
> + $(call do_install,libbpf_util.h,$(prefix)/include/bpf,644); \
> $(call do_install,xsk.h,$(prefix)/include/bpf,644);
>
> install_pkgconfig: $(PC_FILE)
> --
> 2.7.4
>
Powered by blists - more mailing lists