bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] bpf: btf: include linux/types.h for u32
@ 2024-04-14  4:51 Dmitrii Bundin
  2024-04-15 12:11 ` Jiri Olsa
  0 siblings, 1 reply; 13+ messages in thread
From: Dmitrii Bundin @ 2024-04-14  4:51 UTC (permalink / raw)
  To: linux-kernel
  Cc: bpf, jolsa, haoluo, sdf, kpsingh, john.fastabend, yonghong.song,
	song, eddyz87, andrii, daniel, ast, martin.lau, khazhy, vmalik,
	ndesaulniers, ncopa, dxu, Dmitrii Bundin

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@gmail.com>
---
 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


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-04-29 23:40 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-14  4:51 [PATCH] bpf: btf: include linux/types.h for u32 Dmitrii Bundin
2024-04-15 12:11 ` Jiri Olsa
2024-04-16  5:15   ` [PATCH bpf-next v2] " Dmitrii Bundin
2024-04-16  7:23     ` Jiri Olsa
2024-04-16  5:27   ` [PATCH] " Dmitrii Bundin
2024-04-16  7:28     ` Jiri Olsa
2024-04-16 14:47       ` Daniel Borkmann
2024-04-17  6:26         ` Dmitrii Bundin
2024-04-17  7:17           ` Jiri Olsa
2024-04-20  4:24             ` [PATCH bpf-next v3] " Dmitrii Bundin
2024-04-26 15:54               ` Daniel Borkmann
2024-04-29 23:33                 ` Andrii Nakryiko
2024-04-29 23:40               ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).