Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2619015lqp; Mon, 25 Mar 2024 04:46:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU6Z0Cx8BWGugUiQmDG1fHq9JNRjz5Z3kVtJVAcvGxGgFniOA1PnPPDHPfQ/ASznPSUfnLbrxEeNenp9RRZUPzOM5o+11hx/33+wrVVuw== X-Google-Smtp-Source: AGHT+IFJyJOJ4/v3gXJwAqKQ2WEyB3j5UqX2OiCco7taqsayWzyx3byp2rgqtmFrO730/C4mgx/h X-Received: by 2002:a05:6a00:801:b0:6e6:6a73:368a with SMTP id m1-20020a056a00080100b006e66a73368amr7542072pfk.26.1711367172659; Mon, 25 Mar 2024 04:46:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711367172; cv=pass; d=google.com; s=arc-20160816; b=wLG4SiSnaIm/vGL9HkKreLTU52f0HT9+0jC3I0ZgExaRcGseljWON6yZGPb47t1Kty RUIkOg6ra48C5AViFsCD+9RBsa9kkKOBQi91m5mtB3ZVp9gn6waJ06+p5o3+rzs2aS5C saNDToUrgis8FPV1u5ruM2B8gqGSzNnWJicYg+fDQ+wrN28dofWFJfjO33tGxgN72zuu Cia8oCeFqb0JGy6Da6AQisE+2wpMXvy5YSNmeQJntvOcEMFvy+hLTsGciz5pf7x91OJW d67Q/6fKb1TdqZt5pZX1+7ju5uqFOLjBE6/uSBTtQWmHjvEWE8LOLPlWPYtCurNrwoIu FGmg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=FOT5WLHXL9MpQjU8qY9zmERh11e8Lx4Z+qm3NX8o+qQ=; fh=rO9lFiLFGfF4Egso+pn9Vqd83usi9/AckYhkNmV5VHo=; b=SEzI5yppvRjztBGonhPyzEwhilsecCW0CnAKJFEutHZ5hcSPogPYZMwZw2wcPQgmzN 62Q0VnHk5vuSkUlY+ppSvSaD62z6+dOfdaozT4h3jEq4wNOemJo1nmAG5LpMoLsvvH0A QFo2ZtYAC0SIlkMCX7cPyofmgJzw1J7SCOYzkZWFcz9h2YNeAZXxZmfC1wzvW3c5CEOC S9CWGFJTY+ARgcQogEYsXdFT9ambUdtWQVnWYzzLtuAd8mPJ3KdFwzNWy+L8eFB02Bb0 /hAxuyUrYap8J9hDM2fFKRreDRWtIaxDvPhgMtRijMmms/ogiRJQLpxT3joQqRjYNZf4 P9Wg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-115270-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115270-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id s127-20020a632c85000000b005e4ceab6dbesi7420555pgs.880.2024.03.25.04.46.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 04:46:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-115270-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-115270-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115270-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 4A636B62C62 for ; Mon, 25 Mar 2024 11:19:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B32C15687D; Mon, 25 Mar 2024 02:26:29 +0000 (UTC) Received: from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF3FD3120A1 for ; Mon, 25 Mar 2024 01:11:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.32 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711329072; cv=none; b=YdHJrWoBwFPf/poBOragzSS0d0IlYu+8bKk1JJQfsCdvSG9noC6Vxg68ST+V3xFGJJfnberkMFcSy5fB51zgLLz7mJ+4vzwoMlEZ7Fj1NyJuxprIxNn/iwpDWXr/5K7yTmyfgNSiZNyTx2vgWy0UOru8GbGlw4L6ih/WhgHb3og= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711329072; c=relaxed/simple; bh=/5iKxA+XBBw3FL3r9wcqsRKmwLwgzwO/tXhiuDn/qlc=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=otdXCFry4JNOUOD+DA2eR5SS7JRDD5DkDJ2W2eU9ARJafQOE+NlSLTrUL7WlCIfQ36wtRj+QIt1Sc76b3ZTtBHfOiRupPyqBxR0ZltaLhyrImVhpTB6d9d7MCUmRXwkwReNwC86QznvNDjc9o46+jbCH+B/ChFiek1S7KKkGvVg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.163]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4V2vxJ612jz1vxXc; Mon, 25 Mar 2024 09:10:12 +0800 (CST) Received: from kwepemd200011.china.huawei.com (unknown [7.221.188.251]) by mail.maildlp.com (Postfix) with ESMTPS id 1B979180062; Mon, 25 Mar 2024 09:11:01 +0800 (CST) Received: from cgs.huawei.com (10.244.148.83) by kwepemd200011.china.huawei.com (7.221.188.251) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.28; Mon, 25 Mar 2024 09:11:00 +0800 From: Gaosheng Cui To: , , , , , CC: Subject: [PATCH -next] tools headers: Make linux/btf_ids.h self-contained Date: Mon, 25 Mar 2024 09:10:59 +0800 Message-ID: <20240325011059.1001518-1-cuigaosheng1@huawei.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemd200011.china.huawei.com (7.221.188.251) Add the missing #include . 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 --- 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 + struct btf_id_set { u32 cnt; u32 ids[]; -- 2.25.1