lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240325011059.1001518-1-cuigaosheng1@huawei.com>
Date: Mon, 25 Mar 2024 09:10:59 +0800
From: Gaosheng Cui <cuigaosheng1@...wei.com>
To: <ast@...nel.org>, <dxu@...uu.xyz>, <andrii@...nel.org>,
	<cuigaosheng1@...wei.com>, <ndesaulniers@...gle.com>, <vmalik@...hat.com>
CC: <linux-kernel@...r.kernel.org>
Subject: [PATCH -next] tools headers: Make linux/btf_ids.h self-contained

Add the missing #include <linux/types.h>.

Fix the following compile error:
  In file included from main.c:73:
  tools/include/linux/btf_ids.h:7:9: error: unknown type name ‘u32’
    7 |         u32 cnt;
      |         ^~~
  tools/include/linux/btf_ids.h:8:9: error: unknown type name ‘u32’
    8 |         u32 ids[];
      |         ^~~

Signed-off-by: Gaosheng Cui <cuigaosheng1@...wei.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.25.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ