From: Dmitrii Bundin <dmitrii.bundin.a@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: dxu@dxuuu.xyz, dmitrii.bundin.a@gmail.com, vmalik@redhat.com,
ast@kernel.org, andrii@kernel.org, ndesaulniers@google.com
Subject: [PATCH] tools/resolve_btfids: Include linux/types.h
Date: Fri, 15 Mar 2024 12:14:34 +0300 [thread overview]
Message-ID: <20240315091434.10622-1-dmitrii.bundin.a@gmail.com> (raw)
When compiling the kernel there's no type definition for u32 within the
translation unit causing compilation errors of the following format:
btf_ids.h:7:2: error: unknown type name ‘u32’
To avoid such errors it's possible to include the common header file
linux/types.h containing the required definition.
Signed-off-by: Dmitrii Bundin <dmitrii.bundin.a@gmail.com>
---
tools/include/linux/btf_ids.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/include/linux/btf_ids.h b/tools/include/linux/btf_ids.h
index 72535f00572f..7969607efe0d 100644
--- a/tools/include/linux/btf_ids.h
+++ b/tools/include/linux/btf_ids.h
@@ -3,6 +3,8 @@
#ifndef _LINUX_BTF_IDS_H
#define _LINUX_BTF_IDS_H
+#include <linux/types.h>
+
struct btf_id_set {
u32 cnt;
u32 ids[];
--
2.17.1
next reply other threads:[~2024-03-15 9:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-15 9:14 Dmitrii Bundin [this message]
2024-03-15 15:41 ` Alexei Starovoitov
2024-03-15 17:04 ` Dmitrii Bundin
2024-03-18 16:55 ` Khazhy Kumykov
2024-03-21 19:50 ` Dmitrii Bundin
2024-04-02 21:09 ` Khazhy Kumykov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240315091434.10622-1-dmitrii.bundin.a@gmail.com \
--to=dmitrii.bundin.a@gmail.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=dxu@dxuuu.xyz \
--cc=linux-kernel@vger.kernel.org \
--cc=ndesaulniers@google.com \
--cc=vmalik@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®