Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp368283lqt; Mon, 18 Mar 2024 10:02:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWbgXHC4Nldfoln9Bu0LkJofCOu7VliLPyOTMSxl2gJ7xEVDo/ysDGQeylz8IZJbdq4aT+JwGYZPB79BcgXBGvR9Q8gU6nVanEv6eWKag== X-Google-Smtp-Source: AGHT+IGt8ZkjYRf43G6hogJYxx1a9wuAqvR912lAgffR3GmRDtOAY5VjCB0uYUOipy1W6Ywh17Mm X-Received: by 2002:a05:651c:d2:b0:2d4:8ef1:25f with SMTP id 18-20020a05651c00d200b002d48ef1025fmr5641382ljr.37.1710781352837; Mon, 18 Mar 2024 10:02:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710781352; cv=pass; d=google.com; s=arc-20160816; b=xYD71x79kJhLq/A7tsukn3ks95BWhS2ozIQIVxKtRiZUEVq+2UAjfcNg0vu6J7XPjp EZ+iqFAYd0yD3Bp78TgxfNoC4jdKTm/ae6LSfXS1II/kNTcUJuhTy0Fxkgoj9NrxmMMG rdzCz36XiSpW7PHIFSEMctgIRupyjuM+QaAUuPrdFEg+7HepEKOIwk9E38h6VWo9b3Ah ryTjCj9tvLDpVNfFMc5q+ct73x+iONT91mp6XA6H4CGt7f3xGzgzEObeAGX8MfrUvgmL LISmtiVYEyDxhiWjYXZShTslGVLnBJoGyNVgxffbrJLEfP9OdQTHPIm4VuH9tucJgEGF Tb1g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=xo3Mf28h0hvfULFUHkEEElY4QAOQtb2yRCXqjQBuiPc=; fh=vaz8fWRM7RMuoJFRfgR9Ux6WIfw9vVnL8S7p5GrY7S4=; b=CkO0+12YWTr1pz/04lOQ9SGxNEYinfvAlB0TuOs4J/Rg9caHvK9RCx/s/r3pEhimPi S6UKqcsVhWIcDdisHpU+niMXsPc+lJC0sXTyyuKe5SjliKO6hx9mM4GJic7MCwwD7sYS L7Xm/ZLLpq4ZUX0XWTuig/6SkoQlOywZc4V57l7O+JG4Xk/3CnZhHzi/qdkWZoBEWfGi bSx0z+v04ni+h8dBZey85Db7aBA5LCXiXlyyWjLDb9C8JUzWt+Dhop+h9yCVdPptH8ef XPj71Kpsg7xy/B1kONKV7fIlDbukPRTuUP5+kvPkIIWAekgwyXjVomQ9NHdI9vkdKq96 kykg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=P9yINx+z; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-106405-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106405-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dc23-20020a170906c7d700b00a46cbbf87besi609361ejb.694.2024.03.18.10.02.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 10:02:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106405-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=P9yINx+z; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-106405-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106405-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 402DF1F24772 for ; Mon, 18 Mar 2024 16:56:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 04AC354BE1; Mon, 18 Mar 2024 16:56:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="P9yINx+z" Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) (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 AE2EA524CE for ; Mon, 18 Mar 2024 16:56:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710780971; cv=none; b=gG9Mzz8DSpq+wQwUME5ivFiNlsqOTO+hyNGbrJNkbkhAtfcxqM6Q4EYN0niSEVkg944+5m7xvKr1vL2tNIDWuNG3tDwluZjS26eovBLlLdJuRnaHkUndEexeqR3QT2xNmcXtHeCsgBTvbctNEdW6/v/9yvn4l+aZZ6FzqL/R7PE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710780971; c=relaxed/simple; bh=93T3v7zdQM8LwuRZeaBuS6bF9LV3COVtnygXdjEHoF0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=WQfKAvwQbD3Ic5Db9bUaMW/OnzT0UYIua2TiiymhlECbhjITWUqTOA8VJNB1ADmamRoWY8ltbezxj1Go+85B9cDri/ne1A0C7fLutr1sjRnsGndkgBxSZl1yABZIiivV/dZ/X8wUh+eXDt937g7FOgXGCzK69eqsLtSj5nwhMBs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=P9yINx+z; arc=none smtp.client-ip=209.85.160.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-qt1-f170.google.com with SMTP id d75a77b69052e-430c41f3f89so14184271cf.0 for ; Mon, 18 Mar 2024 09:56:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1710780968; x=1711385768; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=xo3Mf28h0hvfULFUHkEEElY4QAOQtb2yRCXqjQBuiPc=; b=P9yINx+z7d9BWSRPC54mGfprqYXWW2tjgH+MpxojYce7BCWI0FTVLsDggyJPAt25gS XbUAK+qYjyjMFCDG9oP80PlFJv8LkfMmzWy3azgJGRkTDSRImdEwjvR+PVMW8tCcolSH yMS760Th24f1ywfJC62zxccSkUP0iKigshvLA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710780968; x=1711385768; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xo3Mf28h0hvfULFUHkEEElY4QAOQtb2yRCXqjQBuiPc=; b=BsemXUdDotwryHIzfdJaBFCdzm/nJryzBHBB8j29bG3VHozvYHrpenCvswqA1jhOET LuyTqov9L0T/YS/zR2IhFAXJTluSPQeJ+KQQkqi0KivAP+5P760GjjNd2TG8v8IvOf7v IAdDqufuGuwADajgOPcNRWeL2IpHWzHXNA+TKNVAi8HzdaOhESl6ODE2Q3uizx78iGH5 GY3BaZy3nxrfcEOXZKxWBbjtytyb/8bUcmH60PfWlovqQFREbXztm2tPHvX5HKdIJQw5 Xh7OySjjC5+pI00UFxSY0PgxFfK3UJOVCD6trCOa5up9UdBkcUGllOFd11Z7/qNINfnQ JU9A== X-Forwarded-Encrypted: i=1; AJvYcCXNm5SfuvW7ax+EgXmlWmAQgZuJQbWyg2lfPIpUxyqQIVRa8oL+Lj0rYoQm8vyzKBQr1Fa0913LenfL3c5ud6neaYFOddkEOj8r21kj X-Gm-Message-State: AOJu0Yy+j0UbOKecrvGlPpafhFQcd3e9USonXFRbgdeoTJN14E1ajMeQ YH+QoZa7oD6Gh8+OdfyivR+eNAHtMS2zpr4yrdP2w6JxHLCfkbBPxOtkonKsyGzpJ1/WUGcFiPI = X-Received: by 2002:ac8:424c:0:b0:430:c2dc:a5e2 with SMTP id r12-20020ac8424c000000b00430c2dca5e2mr259859qtm.25.1710780968440; Mon, 18 Mar 2024 09:56:08 -0700 (PDT) Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com. [209.85.160.171]) by smtp.gmail.com with ESMTPSA id fb19-20020a05622a481300b004309cf16815sm1431556qtb.39.2024.03.18.09.56.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Mar 2024 09:56:05 -0700 (PDT) Received: by mail-qt1-f171.google.com with SMTP id d75a77b69052e-428405a0205so546491cf.1 for ; Mon, 18 Mar 2024 09:56:03 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCUpWKoOSc7QZuPG8RNPTrbQ2hTUIIugcz97L79rriXlBRTS3QpaQ8H1lXHxtheD+dglK9fWay1nTXvsPfoWEmALHrlPvW6oyAaskz5g X-Received: by 2002:ac8:570a:0:b0:430:a827:cdef with SMTP id 10-20020ac8570a000000b00430a827cdefmr117qtw.23.1710780962829; Mon, 18 Mar 2024 09:56:02 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240315091434.10622-1-dmitrii.bundin.a@gmail.com> In-Reply-To: From: Khazhy Kumykov Date: Mon, 18 Mar 2024 09:55:49 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] tools/resolve_btfids: Include linux/types.h To: Dmitrii Bundin Cc: Alexei Starovoitov , LKML , Daniel Xu , Viktor Malik , Alexei Starovoitov , Andrii Nakryiko , Nick Desaulniers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Mar 15, 2024 at 10:09=E2=80=AFAM Dmitrii Bundin wrote: > > On Fri, Mar 15, 2024 at 6:41=E2=80=AFPM Alexei Starovoitov > wrote: > > No one reported this, though lots of people I'm also seeing this, on clang. > > are building resolve_btfids that uses this header > > as part of the kernel build. > > GCC version 7.5.0, GNU Make 4.1 > Steps to reproduce: > 1. Check out the commit e5eb28f6d1afebed4bb7d740a797d0390bd3a357 > 2. cd tools/bpf/resolve_btfids/ > 3. make > > The steps above produces the following error messages (similar error > output truncated for clarity): > > In file included from main.c:73:0: > /linux/tools/include/linux/btf_ids.h:7:2: error: unknown type name =E2=80= =98u32=E2=80=99 > u32 cnt; yup, that's the error I'm seeing. > ^~~ > > The other sources including usually includes > (directly or indirectly) before which is not the case > for tools/bpf/resolve_btfids/main.c. So that looks reasonable to me to > bring all the required type definitions into scope explicitly in > linux/btf_ids.h. Any thoughts on this? >