Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp423258lqb; Tue, 16 Apr 2024 23:26:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXdVJV/7Nj3dC+DTWw4c++ejp2esG57Dwp99g5Gs21KcUBr5fDclnTyHDSzF3Ir86/RWzg152VQcTKcpcK2Xv7n3KkrWXitHXuTmPO5Ow== X-Google-Smtp-Source: AGHT+IE4of4ECHxpfh6YTvzugD8YBzvIqoY5Q0T/9v68acMf7tVtmwUbUDUPOtXNYp50KIBj7G4x X-Received: by 2002:a50:9357:0:b0:56e:232b:95cd with SMTP id n23-20020a509357000000b0056e232b95cdmr9537439eda.41.1713335187793; Tue, 16 Apr 2024 23:26:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713335187; cv=pass; d=google.com; s=arc-20160816; b=R0Zg/GTIA29z21JBLwizksI7UrBG2Z0J/ASEF0ZBcv501N8A+58oyqP+yhqfgzQ2AH CgGP7051ANj3quF1SZANsaLVu765UBq2jYRocuygICN3H0dRcJSkSXdwX/59NT3oO2xI 0aItqqJYRRfMh/fqqfZS1ECswdrSwU6HzgbzGbu1nhSs0gM/cty6sT4uhliWRIdJfxy5 ylwY0+LSah5Y4liZ4G7wlERnB91fvVArWyXZO7eX0P9431sEGjDwOQs+c9VHr2/jwA8P SeU3fv1Jzu/Ra4xoOZvMBSS3GC/B+0gxjQzv5A0TqTaG6s0AB4/rkGEk5LOgU6CcXXw7 sA6A== 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=R8Sytcd0zdOKyMmrxcQ5ptLPbB+DTVIfGCrBabF5ANY=; fh=xzmBVX8o2+5SlAw9ypqjM1KKCgJeYJKGzaOdQhi8+Zo=; b=bbbe4tXQRzxtY53UP6/TAtU17cItmNK1mjbTEMyjAyNwD/x2v86uayTPfQMTII9o2U G1ymARlrVQTdh7fc9QVcgBptgw4mftzn7mpUgX2L57yxRE/EFRyDrh/nPcJOvcdlI+nw ZgClYKCyzusJ2Pp3cg1avzFl7XmoUTQkAQuvbyYn7dMqirgvU671COSobZ9/7Ytw1A1g mvHAtKh8jmo0gleZPT9u+L3BKTh++q70LaT3bd1J1/kJ6ot6i7PjgzFtsVgSW7vj74tr UrXs4jJNNexgwyJK5EcQ9CqfvO1MxE8jg2qmPmqZ1/dFpiUo6XDDdNw78M+FiA+qDCbF fM1Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=I2d1MAgi; 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-147989-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147989-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id v15-20020a056402348f00b0056fea10e6casi3160324edc.449.2024.04.16.23.26.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 23:26:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147989-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=I2d1MAgi; 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-147989-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147989-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8673F1F233D8 for ; Wed, 17 Apr 2024 06:26:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D65B057895; Wed, 17 Apr 2024 06:26:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="I2d1MAgi" Received: from mail-io1-f41.google.com (mail-io1-f41.google.com [209.85.166.41]) (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 2CE0329D06; Wed, 17 Apr 2024 06:26:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713335178; cv=none; b=i6/ftHx6bceRA9K7BbX5/ry16nrZyBD4rjKIFQ8ghQXf5ITJ1T9RhyiRA/Bgfg8YB+mUo+VeMK8SCnCOxENnTF5hS7cnDUXtzgX7+c8Lt+un1VyIMWVlUzYqc1oJL3HLzrIn1nXR3BYSbHR+tZLKvxI5D0tlo8JDXi+YqSELbdA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713335178; c=relaxed/simple; bh=R8Sytcd0zdOKyMmrxcQ5ptLPbB+DTVIfGCrBabF5ANY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=sbOEhTyh9UhLeMCi/qKg4uLaxR1H6BMDVGxEggw1JGS8GUCTrCzrB784mL7uZgXE/MJAyCKUDBbMDrLmHkGEOiYmRI0ZHUtbFMpU8dJ/m6T75lIVrz4iFpdPwo6Lof/8uL4TczJAT3NlrhIaSJ8sZgD2miArwxe14pqhsepe1N4= 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=I2d1MAgi; arc=none smtp.client-ip=209.85.166.41 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-io1-f41.google.com with SMTP id ca18e2360f4ac-7d94fde45deso25240139f.1; Tue, 16 Apr 2024 23:26:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713335175; x=1713939975; 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=R8Sytcd0zdOKyMmrxcQ5ptLPbB+DTVIfGCrBabF5ANY=; b=I2d1MAgisLhTuWw4urKMuFYOLKtM0QZZHlYO18SPl5xeogKsuZAMY0vGXIoNNLN/5E w2UV+r8Xyka+HQG64JrI9BKSJfQlPz8pfct7VH768PojoaRvCM2JTjtA5g3aix5N5Gmr nvUn93P/cTuNXZglnIFkkntlV6W4Ol85E7N0laJ4b5nXAEBrzZ9VfsnHxFFoeMKktOcr vL506xrQNbQlv2RJzr3dQEEgn5wb/Rw33PxYDpAFlOLlL8lc3Du7GsSDHUy/3OWKifbX SETqDKM4XU+b3tKg1roljht4pCqwekSpuUN603S6OJfeAlmxnoTjuVICHk85+C87BZu/ SsYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713335175; x=1713939975; 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=R8Sytcd0zdOKyMmrxcQ5ptLPbB+DTVIfGCrBabF5ANY=; b=tBvlTMo4EpfAz71kICX02Q7SBV80cXy5AwC8vYfT7JS96+XmqsZv29j4pqA9u9OvHT B0ZaVAbMcQifZerB6wW6N3nmPQeipBHdpQ+hz3CZY+QZZrgAxsM/FYXfoLL4k+DxKQPA mnDL0Ccr4/hCWV57y2HHhcx5aKgV6P3+BKDoEvlavXw7D4a3z3Cf/20BEnCgm/3OGCzV QZwoQLi1glOndedKtQVAdREWJI80i+c1c8cpi00zeuXg5lwAELylvhTZhLQFstifXV1/ 2idU9zfW4jUbIs+a7cxJKGU196wW7flmUreTS61pbS6bBUMpD/BXMJ2ABWU2Mn4DGfPE HrFA== X-Forwarded-Encrypted: i=1; AJvYcCVux6PUPTZtO7QpxlCFXzGsmuHHw9OmSDVUahGub0gGtCgN4WVqpjaiIGgUjmYxgv48R6zsjmAVWA1GFWM1tMjGhtlNFgKm+imJmuoM+LCneOy4hMmxsI15P6E6Az8OvzFl X-Gm-Message-State: AOJu0YzHhwmMZsX2RkrRYD7f0IZwn1go7oAxEDrreKdbCD3QT49l/9Pd edONEDupXmdZnvBQ0hYs/WSnE0QLc+VrdBTV67hilr+yZTTcoNaaR09+zIJNMc2tq7lZjF/cxMB OpgoqC0OTAOEfMmer7l4iysOb8pE= X-Received: by 2002:a05:6e02:1748:b0:36a:fba4:ec45 with SMTP id y8-20020a056e02174800b0036afba4ec45mr18817708ill.3.1713335175168; Tue, 16 Apr 2024 23:26:15 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240414045124.3098560-1-dmitrii.bundin.a@gmail.com> In-Reply-To: From: Dmitrii Bundin Date: Wed, 17 Apr 2024 09:26:03 +0300 Message-ID: Subject: Re: [PATCH] bpf: btf: include linux/types.h for u32 To: Daniel Borkmann Cc: 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Apr 16, 2024 at 5:47=E2=80=AFPM 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.