Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp37315lqb; Tue, 16 Apr 2024 08:11:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVJyw8l1jb2XCfYD2mnOekvg0j+Yql0pOM/FC1MRuHI7RNxb7NGdwjCvYf/doidB8vs8dbRD4TJptIMNz0MkkW6xV6UnlAbUt9+1GCHjg== X-Google-Smtp-Source: AGHT+IEH5YTrC38ob6JroETvzW3Tg8uex26OmR2Yvqhzrn269eup2IrJGiyICuvOw/wzj7bCIF7W X-Received: by 2002:a05:6a00:3903:b0:6ee:1737:1e43 with SMTP id fh3-20020a056a00390300b006ee17371e43mr12812854pfb.17.1713280275536; Tue, 16 Apr 2024 08:11:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713280275; cv=pass; d=google.com; s=arc-20160816; b=yBZgNoQTkh9i9+rVN5lfyTlH3izdEtbBbtkOfd31KLgzDiitsiOSd/XgxcMjfh2/F6 WTm7GIDAup6xKU3yWguZ3tDYJscdjpIWtY1rDgp2CQj4wbI6ibfimc5VuVj8DJjyBoZb 0RPU+vpr1+Bdd3B+u3SnGUQwjMQRdcDRDzyYnxmjLvO7sEygbNFxbZg3o1uKVUntTN4h oqGQ7ZBPOG0Cf+5fUfWQrMN4xUmvOvREcWsl2BqEt4HkjEpy2MYamn/ieNTr1+DKbH+L 5m8CWVRqs2qLJK/rpXZD3nj9AbYZeVYLSMWfHUGqoPg5HKrN9tndx3ymgcJS0ZYwOrRi ID/g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=1dXsDJwOcsf1iP+JSaO0Xl2y5kp0qQjyv56XNwnMJfY=; fh=PjWRrujq6hcGVNHou1ABFqNYA6JnLKC6bwLHPIPuU4k=; b=QKbS7gKlmBFKQx2JAC6SKkrckv03yZOTtcuHQDimDuyInyTkwT3Cf4fgVEJMVaJQUD XkcyIpDuH9t0EzssS9ijOH9Yxj0zPTPFKMMyl/FoFOGr3vu/MeBcokerm9QoiNpV37m7 ZQXnuwniFbc6u6HYcUuBSPzitevpuYD5An9WgTpGRw0VqcHvZ86tUtBya5/U8EcM5OvY Iu4UfdYgNwy9Bp++JDkLjquxGFQ9DMoz2mDB1Ebnyv/FGZEjpsjmG4s//ppztV4dbB2u FS8+iiiNN0lgLDoqCnqCY6zNG5YQVlu+o8JfB8HimMnm+ecteLGkYWuR/c5MkMxLpxux Etog==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@iogearbox.net header.s=default2302 header.b=T1xpcWHn; arc=pass (i=1 spf=pass spfdomain=iogearbox.net dkim=pass dkdomain=iogearbox.net dmarc=pass fromdomain=iogearbox.net); spf=pass (google.com: domain of linux-kernel+bounces-147093-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147093-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=iogearbox.net Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id v9-20020aa799c9000000b006eac0139f20si9883703pfi.254.2024.04.16.08.11.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 08:11:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147093-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@iogearbox.net header.s=default2302 header.b=T1xpcWHn; arc=pass (i=1 spf=pass spfdomain=iogearbox.net dkim=pass dkdomain=iogearbox.net dmarc=pass fromdomain=iogearbox.net); spf=pass (google.com: domain of linux-kernel+bounces-147093-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147093-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=iogearbox.net 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 11B9F284845 for ; Tue, 16 Apr 2024 15:11:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 633711304BE; Tue, 16 Apr 2024 15:10:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=iogearbox.net header.i=@iogearbox.net header.b="T1xpcWHn" Received: from www62.your-server.de (www62.your-server.de [213.133.104.62]) (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 37461130492; Tue, 16 Apr 2024 15:10:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.133.104.62 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713280250; cv=none; b=Sy2ZoYns32+5rYJz+yLXIb85D/G2uCqTKNOruhZocGsKBQqKBnb/isWajPvd1NS3utaM48sZ2Ak+wrh7t8TP+pkdDkPKqcNs1SNJpKo7xhkjtDonq1HKoi0mktANN4afXMMaQlIzJHqgXPYtm/7q6oHtqQQF4kUikOMGw5vLoKg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713280250; c=relaxed/simple; bh=oWmtNqx34co9G/ruHlt/dfHkDFvWiSKVm75+2tdvFfI=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=Ru0LZ9wMy9COYMYlpyCZCsyexxSxf93kAA/jYcWZ+jOcDZ+cyD6xLD/MdH8bPeaYuvLBmf72Vaxzc0Z+RJ1Oh+K3E5h9d/SSmxFZCICWXSOxHyamMXlxIZfzI/nPFw2xoLNxF6L8SpBB3Q3mXaaUY2867dZr8vSOj1jVaXSwc5Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=iogearbox.net; spf=pass smtp.mailfrom=iogearbox.net; dkim=pass (2048-bit key) header.d=iogearbox.net header.i=@iogearbox.net header.b=T1xpcWHn; arc=none smtp.client-ip=213.133.104.62 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=iogearbox.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=iogearbox.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=iogearbox.net; s=default2302; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=1dXsDJwOcsf1iP+JSaO0Xl2y5kp0qQjyv56XNwnMJfY=; b=T1xpcWHnfBxN9wyUld0D7uM6rc 2whbwCS9IP2z1zzo25aWi1qJ6hXvLcCEcHKemYGGPof+UGxZ7GVOIZVgYMxa4+p1KNs/7enneMEo7 Y2XwL4mYYtLHfnpiCzTfEIuy6gp7KSKW1ZFtiQiRr+4PYjrUgFEtP3LLpLq3vNoKsTaIatmNO9vo8 hG9ttWnHj6LFHo+PYags+uDSmlxDH1C4ynlRPzytIsvebtYs7upn2OnPJnw/eGVwf70YXFVyRTisH eaeOtaY3OG9FE1JbRb6e1N0Y0yRPxptO/irkPOPHn9+ml9brPfpKuoo5pUq8ci2PwQtjwclN8aDok rpmaNQ3g==; Received: from sslproxy06.your-server.de ([78.46.172.3]) by www62.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rwk60-000DNl-8N; Tue, 16 Apr 2024 16:47:40 +0200 Received: from [178.197.249.50] (helo=linux.home) by sslproxy06.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rwk5z-000E7n-02; Tue, 16 Apr 2024 16:47:39 +0200 Subject: Re: [PATCH] bpf: btf: include linux/types.h for u32 To: Jiri Olsa , Dmitrii Bundin Cc: linux-kernel@vger.kernel.org, bpf@vger.kernel.org, haoluo@google.com, sdf@google.com, kpsingh@kernel.org, john.fastabend@gmail.com, yonghong.song@linux.dev, song@kernel.org, eddyz87@gmail.com, andrii@kernel.org, ast@kernel.org, martin.lau@linux.dev, khazhy@chromium.org, vmalik@redhat.com, ndesaulniers@google.com, ncopa@alpinelinux.org, dxu@dxuuu.xyz References: <20240414045124.3098560-1-dmitrii.bundin.a@gmail.com> From: Daniel Borkmann Message-ID: Date: Tue, 16 Apr 2024 16:47:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.103.10/27247/Tue Apr 16 10:25:32 2024) On 4/16/24 9:28 AM, Jiri Olsa wrote: > On Tue, Apr 16, 2024 at 08:27:21AM +0300, Dmitrii Bundin wrote: >> On Mon, Apr 15, 2024 at 3:11 PM Jiri Olsa wrote: >>> lgtm, did it actualy cause problem anywhere? >>> >>> there's also tools/include/linux/btf_ids.h >> >> It caused the problems exactly in the file >> tools/include/linux/btf_ids.h and was reported in >> https://bugzilla.kernel.org/show_bug.cgi?id=218647 >> The patch including linux/types.h in tools/include/linux/btf_ids.h is >> already there https://lore.kernel.org/all/20240328110103.28734-1-ncopa@alpinelinux.org/ >> I also faced the same compile-error of the form >> >> error: unknown type name 'u32' >> u32 cnt; >> ^~~ >> when compiling the bpf tool with glibc 2.28. >> >> I think it might be reasonable to add the inclusion in >> include/linux/btf_ids.h as well to prevent build problems like this. > > ok, it's in the bpf/master already Please add the error description as motivation aka "why" into the commit description, otherwise it's not really obvious looking at it at a later point in time why the include was needed. Thanks, Daniel