From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) (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 01B2E3BFAFC for ; Mon, 6 Jul 2026 18:38:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783363086; cv=none; b=J/V2XnXFSUcuxhems6UW/xo2ilnQXQV4chTtIC01lXod/DsyoyYs0KHZoqTusUq3geovuq0EhaCr7jxNadCOo0+83lgKrXM8yIfdaEI2QDloCdOXkKl2Fel5VIkbvUq4TblBwp5BDmHxkMNTOjytdOzzGkoDJW8OHfJ5rRiq0fQ= 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.47 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-f47.google.com with SMTP id 98e67ed59e1d1-37df72c9984so3231374a91.3 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=qfOKpftEOqyxpWm9+TVYbYNBkqohFv84XFxsAX4TpJAKymo/GYEi+c8UmXsSPMh5Jl ApFIlZDXkx3fGaUD67j1gsHjYDBibaKvxVS1KvN190KDtQpxAjLqYLWOTG0hyFtc/Loc vEOW4+qDu3WCJDYyXaB2siGIc5mDa4yG3ZZKF5J9q4MElGLBdArIvPE23UcgFHKKvuHK Dt+iO5CkuyOXeM5inPmgHQkYP7++Z+/jlMXq2FXwBdNURTBYYkpLacVCfD/f6XWl36jD t/N4/gte6juR9Tvuw/0jKLyWF1ezHu3llZgJ4RdWmNebhW5/6bOI4Jnc3gN5+9lUTkls LI2A== X-Forwarded-Encrypted: i=1; AHgh+RrZRZj5JauYzo0+GgwyRXhG+0U0lnihl9DB140bMkve9t0l6wUiZSS9yHkxTCArIddemORNf4Z4hKU/ecw=@vger.kernel.org X-Gm-Message-State: AOJu0Yz4paid5Z8t2JUxNA5Cruqjan7rd57wRk0+GZwq0Sk54njgmtfy SDZpMtU2xtmnQSerft0tex+X7dNhbC3M2bIBoESb6L3BiPUYrdCE+tzjWSfI+seR/L0= X-Gm-Gg: AfdE7clVVTiePTCSgSm2R7Z+GsF+aYOLmkRW+kPCKivvxIVndeQCAXt1+IuMAl7aLLA MsboW3GSj4sbaAG/KjK3RGVwsLNs9my0/34RHO2npdinBiYsTdj9gppNe2aRE1wd1zSxvPtZ67w W5N+FJXarT+zGoiNL1HeozbW0eyCTl1qKGJXFzdCAU046oQLv6DJ8o1IPA9oKo/BECONm0ahZue Z8irbMKu9YB6TPO9euURbAavCCsfLX39LGtkCS4aevR+oBq/AZAMIr1P/rgmMGeyugpOpKUre+n zATNo3m7NT/1ifdpNEisqoUDsQiwhITw7zBZYmSVaNOLBjq+GcXvl/6Et2tEU0+CYteJwBIn1Gi VdTVKDxra0yGAMHerfZ73G7VJV4upDKMeCZ4uDVB7n2gNxtxJ4Nwu/gcPqZyNTgahh2WxrrftaR VMr3P71O88oWYzxPwPCzlxnHL+wkoU9ENRyY7M/MB96g== 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-kernel@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