From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.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 019FA3BED78 for ; Mon, 6 Jul 2026 18:38:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783363086; cv=none; b=N6q1U9DZbd9Ft9Si2+vnbVwqcXXhCD5roUjE//MFCegW2XUTr7Srx1dVff7evALWotxPYf7IrtfUxdOeg5IvdJjoZeocGq4lITr1YX4QIUYz3Scqcj5gSOiX85g5FtEjpGKoB2kejlXXDEWMGsxLPP2oA5kdMTWQ1fv0CiM1e1w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783363086; c=relaxed/simple; bh=u8PRGmk7C1Y0lBU8LeNSCd3v4PpWWZ9O2x3ySxWHhs4=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=dSgN+ObHgUMCab8Fvinq7H1EqmIuD+W3i6I7COu2MmCZrMeMdyXh2mv+52cODvvtXJ972nsKI9Rc1KTo99azI5Dr06mVr4p5lmX5dY6cmN2Opa67i/PPs0O149EDh+j6ZDavgJ6y0pN70LlXbPDhpvNud+sV2GUvNdOdcBRDs4s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=etsalapatis.com; spf=pass smtp.mailfrom=etsalapatis.com; dkim=pass (2048-bit key) header.d=etsalapatis-com.20251104.gappssmtp.com header.i=@etsalapatis-com.20251104.gappssmtp.com header.b=O5gUBi/c; arc=none smtp.client-ip=209.85.216.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=etsalapatis.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=etsalapatis.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=etsalapatis-com.20251104.gappssmtp.com header.i=@etsalapatis-com.20251104.gappssmtp.com header.b="O5gUBi/c" Received: by mail-pj1-f41.google.com with SMTP id 98e67ed59e1d1-3817f800c8bso2435569a91.1 for ; Mon, 06 Jul 2026 11:38:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=etsalapatis-com.20251104.gappssmtp.com; s=20251104; t=1783363084; x=1783967884; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=+OTCMH70SrIoIhqzz9upACUv1AFoVn7zmxyX3TyiftM=; b=O5gUBi/cwxNhF8APnqt3iDRYfy0fFjHLlluKTq20MXhbT0FrEUKO2qdiswwgCS7BXb AFHPxp5/Xv9Ft8sHDNyudPYWDkiyfCMCtlIRSTe88Pmeqd1+BT9zTBdBuTpQgUaaemHh GZlaLRq4fhYz4zgD2R5B+rwB+ffymjSZpIM9ev7Kf4ORksh28Flruu2u92+/w22gh5sH QhLTEDXEdsgQhYxLU+xPLpnBchSnN5lYmQUhhMIdYRA9BCxq1wIGLswL4ZCbBnx5byHo Lb1wu5uEeVQcEMUf39dzTb05/iCpKhuIXqtvDDZWYwmuKY8uHvZbsXw4X01UEr8CPm4T FdFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783363084; x=1783967884; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=+OTCMH70SrIoIhqzz9upACUv1AFoVn7zmxyX3TyiftM=; b=VTyz9jft3VmofLOspVT4eq/8KNUKRazxelEEz1LGj5E+rZqut2mq6LOoau4y5FlWrm konUUwKzh0GnP9eCChfww49nSHc9mFNs+ExL0jM5J307ydQ4Ew4WGESywY+TQKkz4KSI sJ0sd5hRRq6J/9PveYdXTQShx8WR/WYTTbbeK39PefOD6XBW6Vh/5gXm75IKl0CrB1iI xSOv04LtdNWNXKxwfWxRqo2vBYZl/+Qe4vkEQ1DFkwClIdKrra1uWIomWtHs5pn4+kcc G9E1CzNmyrQogI5eJ6ayV79MC9q1IlmkXBoL3L2cgb1hbpCuVT3FuhRfWUJ0F6nviupR A66g== X-Forwarded-Encrypted: i=1; AHgh+Rq5vJ/wHWX5B0K9zTMr7uWoxrIZl9++nSS3fN0HlSt4MaPvrIO/HdgAU7hsSmDTEN5LoRgf41f2fVE=@vger.kernel.org X-Gm-Message-State: AOJu0YxMEzAzVJTtIZvxPgnLBi2GPZ+Bx2GKKU0nLwboXFTQbqtavMV5 CjIzaV7WknB76XqhLxNC7l2q3KCNRbeOcej7dpa6cJ8uT70KXmYO3xtVjXnYMS01Kqs= X-Gm-Gg: AfdE7cnOvyfVQ/9u1SItkpSCG/Ay27MDXql2xYVl9FjVNaRWtxD0kV4YucG8ZXffkTu ioCzsfxGjjQG41pII93FkAdj4xLL76F5Z8dRHygFzigEZo+mvBZS/m1ZR3nYNRxqiXEDvwMAHkO 6TBipVsQMjPz3pv19jRXKmr1fpBeAD1vPheUt8b9igS4iQ610urGu3CbqFob9Zqc5g/bRglsDDU SOFPngj7vviB+1X1jWYkWtrhbJVJIFmfqPJB/gRxSHRN232pxF8AAcP5SSgUUYMPBq2xJQQdo2u WCZtNANLm/s1YKUd8ausd+nFa/HwZhMnJPzhvVSPJrh8WCTWhdTJR5/r6fObzqInhtXqTwxcvX/ 3+ZFoFyp2XykuiCuNEI/dBUoBXvokpF/WUw8Bek6kBD/HNcOfc1QdCXtr6diVrXW65oAC+rTZqc M+IWlQmCHzjC2VzwW3zd1tkLBZdfafmFkIdSMDvDTXqA== X-Received: by 2002:a17:90b:4d81:b0:37c:6130:7a5b with SMTP id 98e67ed59e1d1-38755c4aae4mr1900076a91.8.1783363084174; Mon, 06 Jul 2026 11:38:04 -0700 (PDT) Received: from localhost (107-190-31-17.cpe.teksavvy.com. [107.190.31.17]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-387888a0675sm113422a91.0.2026.07.06.11.38.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Jul 2026 11:38:03 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 06 Jul 2026 14:38:02 -0400 Message-Id: Cc: , , Subject: Re: [PATCH] docs/bpf: Document BPF_STRICT_BUILD=0 to tolerate test build failures From: "Emil Tsalapatis" To: =?utf-8?b?UmljYXJkbyBCLiBNYXJsacOocmU=?= , "Alexei Starovoitov" , "Daniel Borkmann" , "Andrii Nakryiko" , "Eduard Zingerman" , "Kumar Kartikeya Dwivedi" , "Martin KaFai Lau" , "Song Liu" , "Yonghong Song" , "Jiri Olsa" , "Emil Tsalapatis" , "Jonathan Corbet" , "Shuah Khan" X-Mailer: aerc 0.21.0-0-g5549850facc2 References: <20260706-b4-bpf_strict_build_docs-v1-1-5324d605c7b0@suse.com> In-Reply-To: <20260706-b4-bpf_strict_build_docs-v1-1-5324d605c7b0@suse.com> On Mon Jul 6, 2026 at 11:28 AM EDT, Ricardo B. Marli=C3=A8re wrote: > When the kernel config does not fully match the BPF selftest config > fragment, some tests may fail to compile. BPF_STRICT_BUILD (defaulting to > 1) makes any such failure fatal. Mention the option so that developers ar= e > aware they can set it to 0 to skip broken tests and keep the build going, > which is particularly useful during bringup or when testing on constraine= d > (e.g. distribution) configurations. > > Signed-off-by: Ricardo B. Marli=C3=A8re > --- > Documentation/bpf/bpf_devel_QA.rst | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/Documentation/bpf/bpf_devel_QA.rst b/Documentation/bpf/bpf_d= evel_QA.rst > index 45bc5c5cd793..edf8107a7beb 100644 > --- a/Documentation/bpf/bpf_devel_QA.rst > +++ b/Documentation/bpf/bpf_devel_QA.rst > @@ -479,7 +479,10 @@ for details. > =20 > To maximize the number of tests passing, the .config of the kernel > under test should match the config file fragment in > -tools/testing/selftests/bpf as closely as possible. > +tools/testing/selftests/bpf as closely as possible. If not possible, > +however, you can set ``BPF_STRICT_BUILD=3D0`` when invoking ``make`` > +to tolerate individual compilation failures and continue building > +the remaining tests rather than treating each failure as fatal. > =20 Reviewed-by: Emil Tsalapatis Nit: You could add the caveat that anything in TRUNNER_EXTRA_SOURCES is not covered, but it's pretty minor. > Finally to ensure support for latest BPF Type Format features - > discussed in Documentation/bpf/btf.rst - pahole version 1.16 > > --- > base-commit: 8cdeaa50eae8dad34885515f62559ee83e7e8dda > change-id: 20260706-b4-bpf_strict_build_docs-a8aa7fa46e2f > > Best regards, > -- =20 > Ricardo B. Marli=C3=A8re