[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Zh4nbvndaho6kCRP@krava>
Date: Tue, 16 Apr 2024 09:23:26 +0200
From: Jiri Olsa <olsajiri@...il.com>
To: Dmitrii Bundin <dmitrii.bundin.a@...il.com>
Cc: olsajiri@...il.com, andrii@...nel.org, ast@...nel.org,
bpf@...r.kernel.org, daniel@...earbox.net, dxu@...uu.xyz,
eddyz87@...il.com, haoluo@...gle.com, john.fastabend@...il.com,
khazhy@...omium.org, kpsingh@...nel.org,
linux-kernel@...r.kernel.org, martin.lau@...ux.dev,
ncopa@...inelinux.org, ndesaulniers@...gle.com, sdf@...gle.com,
song@...nel.org, vmalik@...hat.com, yonghong.song@...ux.dev
Subject: Re: [PATCH bpf-next v2] bpf: btf: include linux/types.h for u32
On Tue, Apr 16, 2024 at 08:15:27AM +0300, Dmitrii Bundin wrote:
> Inclusion of the header linux/btf_ids.h relies on indirect inclusion of
> the header linux/types.h. Including it directly on the top level helps
> to avoid potential problems if linux/types.h hasn't been included
> before.
>
> Signed-off-by: Dmitrii Bundin <dmitrii.bundin.a@...il.com>
Acked-by: Jiri Olsa <jolsa@...nel.org>
jirka
> ---
>
> Changes in v2: Add bpf-next to the subject
>
> include/linux/btf_ids.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/include/linux/btf_ids.h b/include/linux/btf_ids.h
> index e24aabfe8ecc..c0e3e1426a82 100644
> --- a/include/linux/btf_ids.h
> +++ b/include/linux/btf_ids.h
> @@ -3,6 +3,8 @@
> #ifndef _LINUX_BTF_IDS_H
> #define _LINUX_BTF_IDS_H
>
> +#include <linux/types.h> /* for u32 */
> +
> struct btf_id_set {
> u32 cnt;
> u32 ids[];
> --
> 2.34.1
>
Powered by blists - more mailing lists