Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp645046lqb; Fri, 15 Mar 2024 02:16:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWsBQ9nDo8op3mIjTtziV5hehnsYY9q+PDFW6UaCJKmevqCO5slpl8LmlexdVxqzNs3knaJmZHeGq9QJ09HC9TmDu8I1MBp9E44qplCog== X-Google-Smtp-Source: AGHT+IH/FbmNDfJbdO26/ZhlW57yXa050PJB0cq7bcrKF68OWYXOjKoW8DcMPKXh2ZDTDDDjyW6A X-Received: by 2002:a05:6a20:7d9d:b0:1a3:4ff4:6e4b with SMTP id v29-20020a056a207d9d00b001a34ff46e4bmr746606pzj.3.1710494169281; Fri, 15 Mar 2024 02:16:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710494169; cv=pass; d=google.com; s=arc-20160816; b=KovlH+rrb/nK81GVX8I8HVJbTs2Q0UXlCvdTdbHdaiGG9fQvzr6iXVDHU9N397E1uf J9mPFX7RnJDZjNSzu4/nPIYtlFFAfx+oDv9S92Q8FW0E+U5/vftnm2H2oRY7olzpCN2U 8pvZjH2PMpcgRl0GGGo8sG1DbUai8MljmK0aWr6rhKJGU6UfHqMLwwNWXSa5PbLoydDk 6R4r5irB1Z/oWTxh6rd9me790M5jAjSAdeoenfuOQsNiEYaMC27v27Lk2G0RTqIRdvLm T0swXxaJkJKUsPXLsHJSQQKjmO5S7OjIkTUnyIpfjpY5yCvjv9D3CiQRe5RhBCddpAFO kUaA== 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:dkim-signature; bh=QsvIcmB6q11qBlE1k9pcuOdnVgySpwfRcM8NSNvHquc=; fh=6DPiBo0/DfrXTXiZj5trlCdhq3hK1ZLBpAwklRmhWfc=; b=cpLltjnmKxGISX3MWTdRHfQIB2n5uICYS1Gua18LnUKtCai2YhxeCqnLAxdss/mirW vKm4lNTypV6HIy5VCBiVw0Dau4Db8KmLokbK33b6PszTppgcEErYXiHSw+3+jYUR/D9x mxE/0pdbLBvFShLgbw9cR/sEdqD7q8+zsYe2MVmfSYSC0fMCOrPebk7i6nkEDkw7sifU sDIdxLVN8wV1lXXiJARP8BaqAmHJKzMnZBWUkTG7iK5V7rw5NT9Bu8n4FXPSCP5nQEZM rZSCiXrHb4fKUM/ejA2/0hYh3Ol1yzxVKrixAzmDbO0gmVV/vnMKEE0HD5s4bfv0YFak tstA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JIm6ayZn; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-104191-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104191-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id r1-20020a17090aad0100b0029dda9fcc15si2354394pjq.133.2024.03.15.02.16.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 02:16:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104191-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; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JIm6ayZn; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-104191-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104191-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 DBF79B218B6 for ; Fri, 15 Mar 2024 09:15:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9BC05179AE; Fri, 15 Mar 2024 09:15:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JIm6ayZn" Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 21ABE1758B for ; Fri, 15 Mar 2024 09:15:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710494104; cv=none; b=XUtPsPiqr92Levp1Htr4Zy3+BwDfurN8OULf0jQUSDuzZf9AS5TRL5wrpWVF4oQFddtIE55UoadrS/GP8uo4FPHWp9dXlOVW2Wq7wWIJsGz0NWGf2qd1Fb7H6no/fJ04PwW3cD8/1JhJ3En9zOMolxgvYAONWUTMX7AJ5z5mkmM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710494104; c=relaxed/simple; bh=s8YNiJQqowuZf+XZsxxS/0ZQiWZPcjTmWHxl7bNoeXQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=mVNOywDhZ+V53wk5K/YbkGzz8WVr/ia66mmqPHoYi6MYAC8T0yj9JjOOUcc2MoeMz0tB5XoYjbz1rBMF447HXermwYs4I3ZPAR17qkiTeQbmrernXVpz9aLmnpX9CdVg2SBpih3Wl3Cs58u0OuKmwN6nZPBooy09Mq3mhTpG3E4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JIm6ayZn; arc=none smtp.client-ip=209.85.208.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-568ac71eedaso215383a12.0 for ; Fri, 15 Mar 2024 02:15:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710494101; x=1711098901; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=QsvIcmB6q11qBlE1k9pcuOdnVgySpwfRcM8NSNvHquc=; b=JIm6ayZny4KvPavVJFZLSebpnen8vJ56idetkiB+02VoCgWKgpi/o0DJQa/4Pl7q1s 5G45zfYhpD0STV8z8nktdCaIc99cEtBGjHYCKS/HyO7s+iGgaqMUzUzV/2vYZgoG65tt R7/MY+P7tKdODiuORjtUjNvgUzB7I9e6XK6Wci9eXNvA8O2WoDpRGjoQOZyIzZFsG5h+ uo4wpuoRp571nNlYVWsQC3Xbcf21WpS+XH3Ljn4DYy93S6jhfNm5HhfIb+8XYKKot/jG S3vbGmNHcn7vvG2J7qpDZ/JWStMS1IVEh/bnR0eF/Q07+d2DXTgNaYLJXcCIEZY7tQ3e gXxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710494101; x=1711098901; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QsvIcmB6q11qBlE1k9pcuOdnVgySpwfRcM8NSNvHquc=; b=w6g039cfK8ms2AnP82a9UB+vPl6jwaMmWPfiNRnqim+fj9JAJUHWE/cjcDRCqgqXFk Wgk/ICTKvBVN+EvuLNNPB974qkEDNagjtnf4YyvHRqWjrMHXElZWtwF/j8LEf+sIkAEa DCJhHv5NBOEejwyDaW00xgBIqFOXeibLDk7xwqxReJ8a+reOfPkrCrFY+482r2vSQ9qc mdUxttaMBxODI1r491REx2PZ+d8FLodikh8oGxZIwnpb/0XJfPZVZv6Vp5W+Y/t28f05 Y2zCwyaA5weiSXlbTp5G5hweY9LbLtf+G/DrszyKnqlM4xcH0AsZ5OwYLLLxsw24wQJ+ FY3Q== X-Gm-Message-State: AOJu0YylO0vxzMnlwi3aIi6lQj74tAoK2E6gndGYuMGglZcuFW6HMg6a ulN/ErTHwlLuIHAHKZrRMw1YclgSXCXJTz6vvsPaTT5Io7gEo/VnScRRddjGL6k= X-Received: by 2002:a17:906:3097:b0:a3f:1250:5c3e with SMTP id 23-20020a170906309700b00a3f12505c3emr2574061ejv.0.1710494100715; Fri, 15 Mar 2024 02:15:00 -0700 (PDT) Received: from localhost.localdomain ([87.201.87.115]) by smtp.gmail.com with ESMTPSA id qk26-20020a170906d9da00b00a45bb14b1a5sm1505836ejb.89.2024.03.15.02.14.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 02:15:00 -0700 (PDT) From: Dmitrii Bundin 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 Message-Id: <20240315091434.10622-1-dmitrii.bundin.a@gmail.com> X-Mailer: git-send-email 2.17.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 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 --- 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.17.1