Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp440387lqb; Wed, 17 Apr 2024 00:17:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUx9kjcmhz2sMxY5SfNY8fAN9Fnbuhdq26d478yBHT2z3EBacvQOR+c+n6cz1P0u/Dw982cV8u4J6d9GvypdpUY6ghrP8wPEHggAXH34g== X-Google-Smtp-Source: AGHT+IE2c7LMYekoCifxR1E4Pph9xMpgPVAMowVsmP8berWzLC7Q70aHvkLZj86WBfl064+ynpmO X-Received: by 2002:a17:902:d2c2:b0:1e2:3d05:5f4c with SMTP id n2-20020a170902d2c200b001e23d055f4cmr15409189plc.39.1713338258257; Wed, 17 Apr 2024 00:17:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713338258; cv=pass; d=google.com; s=arc-20160816; b=h0LSteOnDCXoSy3m05OUORHaoWEG8zJtev+ZOnOdzzbA+9PxbFppNk2pU5fCq5ep1Z qaks0yDDnwOwXyxb7U3YEvkIyAdzRoypBPd/htCu2UizLApGzN/mS9uMqyfkOxv+nr9c f+F9Q9t2w/lvW0SOH4sHGEUthPIIBbb+JREzVkb96jABV7BU8E9fTcFcaEoiTSDen8sv 76xKW7LS398U91fv1cy1cGOiUoU1LyLOW0LvSHOjlDqxwfSyUrRtrDgHtpUkQnLcZaVh oDTRI3sHflRipslW11ZtM5LW0qMp5Ty0VB3xJBCBMuX//z9Yx0o7z1Md25G9XnQQugML XJdA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:date:from:dkim-signature; bh=Ggl42zVrBdWXeGc93czmjM6s9Fyw3wz00pYFrGL6UPE=; fh=27hNy1NUGx5DU1g+7GSWW8fK3jsi1Do/i1IKUgVH5Vo=; b=AzX9bWrR+42em/0QNQ4QgW7tz6w1hrhj4kgEVCN4lKIYOOgr3PXk2MnO7ZpA0/LNEQ npguHLHgxg93/zALUFq0JWxg9kt0eAg9Wf86FpmkbGEggQWJV8LXdpLQtaoEugigX1d0 CTdg2R3bpGyS52YzP3wY5wnOWT9RRRXld8LcVdxK1IhKPk2HvmpBcjNW6qKm184s9Y4h NmRysRykdV+MYwCINpCWWwIMe6ozn9w0dMGhS1QoYSme6eSIzetVuB5SJ2ptEKUQjP6N V9hRz1VKV/ROtnOYMTNWXqTu99TW+B5kAh79/9GpDp6eupXwsbFyV1cAlRyjiqdEnWsk 1Olg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Aqf9HC2m; 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-148039-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148039-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id me12-20020a170902fc4c00b001e5295a8fadsi11495151plb.214.2024.04.17.00.17.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 00:17:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148039-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=@gmail.com header.s=20230601 header.b=Aqf9HC2m; 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-148039-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148039-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DDED628284F for ; Wed, 17 Apr 2024 07:17:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4874D6A8CA; Wed, 17 Apr 2024 07:17:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Aqf9HC2m" Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 EAF1940850; Wed, 17 Apr 2024 07:17:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713338250; cv=none; b=pqb9XcZ6qbfXu9AfpMxsTToEWpY6zQQD8COOeGm3htBQcg8Qzpv6CeWx0sB/5izBBTSaHhCYtHF3hKl3ebryYkEdcp/W/ZteOV3Ftuu4UaRRsF4YwF5xN1+2lF1PLfrJlXlsBCEJAbR2GCoIrAp+a5Mk9GdIDEdIlLjdh5nDvHQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713338250; c=relaxed/simple; bh=V4lv9QAgXIfIVyOy2mUKTwIbsLP0WTd3oSTm2v768c8=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=spQwzA9ARbWHRv0DrOHr5goeB6ZaYKZkLVD68fs2EoIZRCkZ5cvYqievCxvV77108qZ5sjqKX+Y/DTHDW59e9ClqvvLkjE2Ky/xADSAimquR2npSTn6ErnzKKXWNPaBqc0gLb2PE6xM0QKvjU5HSpKIKuqKxDWuDFQJ1K17h0lc= 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=Aqf9HC2m; arc=none smtp.client-ip=209.85.221.48 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-wr1-f48.google.com with SMTP id ffacd0b85a97d-343c891bca5so3446771f8f.2; Wed, 17 Apr 2024 00:17:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713338247; x=1713943047; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:date:from:from:to :cc:subject:date:message-id:reply-to; bh=Ggl42zVrBdWXeGc93czmjM6s9Fyw3wz00pYFrGL6UPE=; b=Aqf9HC2m0QbWvP+LlOe5uFt9QpzLEOnj6VwtDzdHwhYwtIzAghr+VnYmYhfLsJcAX+ YTDavQHvc/ej6y485ylaA5Q8SdIEYQg92/g1JeT3X+ks6Kkk3L0lI268qs4gASKxRBGx aaWtxUth4nrfWA6QIMLadLzE6xC08FlQ+JBXCSh91LhTYxBTZYxdVj0yQIX5ZygkKxlf 175Q5FI+IaUHaoo16aGMuFLIc5FZcTSZamJ/Lz910322FuUHjRHRNPYIKAVy2OTiQYVI U+yp+JQ5yaurNxSn+quqahEkbK8/tKM8A/axrJ6aEphrddqmjGulRIsPgOvtL9imYjS8 7RbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713338247; x=1713943047; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ggl42zVrBdWXeGc93czmjM6s9Fyw3wz00pYFrGL6UPE=; b=DAIbSdSqlPY/ByOnV+Odo0sg5oho51nK/syF8ljh/YkYRgdsV0c+IICRXluktw5Gss smd6fkcWHz5odP2wAi4h/uzdzi44yubaJxRYjGgUo5OuB1FAgdxp/F7LSbEzNM7BmYW7 DNRHOHIcaOgDe4Bqyhrnqa/kKNpvv6CBIhrTOIDMFfzb+3yknv9QsWgmYdzxK8SjBqez ZdJD00JsXPiMq0mNj/886j6iwMYcN3YKI06rPUxo11wM2OhHwcy0VGB2WdTz7vGuhlOy 6XdVC2oKYeeyqSu+7KkFIAwD33VGxtEhb1+iFGVQOJUDiJx20eYrDOCX2c0z4VfALiXk tQ+w== X-Forwarded-Encrypted: i=1; AJvYcCX54X2FPrzqW+aVGTurHqxyQZeGPy6BPV8r8F5a/+ZYwmgsn+8eGI0LELm0PYid39Sn+aZA9c8ZJo47IsSauRqQXJbTV68YOeY7389x9x0Y5gVFMmbe3Pil8qpMj6Dj/dAf X-Gm-Message-State: AOJu0Yz77h55dbhiAoyd3bGNFHmYlJzi53rp8yDQt4N6HtfeOrNcudup 6YMQc5H/r5kPzuDWrjt1R3PYH6mBrNUABnvKaOHJn4564EsYVdts X-Received: by 2002:adf:e2cb:0:b0:346:5c1b:39c with SMTP id d11-20020adfe2cb000000b003465c1b039cmr12300405wrj.41.1713338246957; Wed, 17 Apr 2024 00:17:26 -0700 (PDT) Received: from krava (2001-1ae9-1c2-4c00-726e-c10f-8833-ff22.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:726e:c10f:8833:ff22]) by smtp.gmail.com with ESMTPSA id b10-20020a056000054a00b00341b7d5054bsm16891820wrf.72.2024.04.17.00.17.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 00:17:26 -0700 (PDT) From: Jiri Olsa X-Google-Original-From: Jiri Olsa Date: Wed, 17 Apr 2024 09:17:24 +0200 To: Dmitrii Bundin Cc: Daniel Borkmann , Jiri Olsa , 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 Subject: Re: [PATCH] bpf: btf: include linux/types.h for u32 Message-ID: References: <20240414045124.3098560-1-dmitrii.bundin.a@gmail.com> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Wed, Apr 17, 2024 at 09:26:03AM +0300, Dmitrii Bundin wrote: > On Tue, Apr 16, 2024 at 5:47 PM Daniel Borkmann wrote: > > 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. > > Doesn't the comment /* for u32 */ following the include explain the > purpose? I thought the include was actually missing since relying on > indirect declaration of u32 is relatively fragile. I think you can add similar descirption as for the already merged tool change in bpf/master, and also include the Fixes/stable tags commit 62248b22d01e96a4d669cde0d7005bd51ebf9e76 Author: Natanael Copa Date: Thu Mar 28 11:59:13 2024 +0100 tools/resolve_btfids: fix build with musl libc Include the header that defines u32. This fixes build of 6.6.23 and 6.1.83 kernels for Alpine Linux, which uses musl libc. I assume that GNU libc indirecly pulls in linux/types.h. Fixes: 9707ac4fe2f5 ("tools/resolve_btfids: Refactor set sorting with types from btf_ids.h") Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218647 Cc: stable@vger.kernel.org Signed-off-by: Natanael Copa Tested-by: Greg Thelen Link: https://lore.kernel.org/r/20240328110103.28734-1-ncopa@alpinelinux.org Signed-off-by: Alexei Starovoitov jirka