From nobody Mon Dec 1 20:56:07 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2D1C4337BB6; Mon, 1 Dec 2025 17:50:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764611438; cv=none; b=iiYLO+Z/Oy/tEvgL+oj0f06vxtULEhfpKXACT++ZVa97EfUWDag9gNmCo6Oe4ipwhkMnrzom5gpR2vVtOFZCNQHVizASWnsTZ86jC3Wct4xdu5f7nACZ8iKyrLRWgiP3fiB/Oe9KeYW7nS9gSv8VNCs9w2+TIkPnTYy9jMBbTkE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764611438; c=relaxed/simple; bh=qQoYhGMGDBdrfEkvzbnAUzj/yM28TTk8BFcXTmxa8Gk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ClT3QaSHOvxY/8lvpSXE5Bv8YgBxgo0c1Ks8jqcI9omeWvXaiZayXBu0dG0wfzV8ujOM+/B0yL9JPKdR2+OOM0MrE/rF9syy8NwMOwZSs0sR57VYO252Ybd2OrHEyiamCdw5EuTQdUVgiXTued3MdViZZkG8fLjvCdld7EcGTKA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FAaUpv1+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FAaUpv1+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FED7C4CEF1; Mon, 1 Dec 2025 17:50:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1764611437; bh=qQoYhGMGDBdrfEkvzbnAUzj/yM28TTk8BFcXTmxa8Gk=; h=From:To:Cc:Subject:Date:From; b=FAaUpv1+4IjaCtoWZkLRQtIroBQfuLxl5o6R3P21fdwMQZhz1U4tHiu3izctPabsJ foTpMUQCP/PNvTDelAnrid10LpH2GGus/6T3+zkHB4Au0omZ8/j4e35PTq4xz82ihs fU04FNnr44VK7zFCHkLv5mm4NBskbgw91w9lP/ucpu62JvT2UBi7vACO+AwQ5U+77o FOIrYCDvaBLEVYSK2D6kFq+D9+TuVJIawP/DsoppN69/qg3N7EC1ug7Qk62IfNQHHu oHhphmhP/NkYmwwCwDBCj1jMJv/mGABUNpEhpa4paLMz6qV5xBqK0zC4svUbkkaXAd d1sQkuQJGfurA== From: "Rob Herring (Arm)" To: Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: kbuild: Skip validating empty examples Date: Mon, 1 Dec 2025 11:50:29 -0600 Message-ID: <20251201175030.3785060-1-robh@kernel.org> X-Mailer: git-send-email 2.51.0 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" Extracting empty examples results in just the empty template being generated and then validated. That's pointless and not free, so filter out the schemas without any examples from the targets. There's currently a little less than 10% of the binding schema files without examples. Removing them improves the build time by ~6%. Signed-off-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/Makefile b/Documentation/dev= icetree/bindings/Makefile index 8390d6c00030..8d6f85f4455d 100644 --- a/Documentation/devicetree/bindings/Makefile +++ b/Documentation/devicetree/bindings/Makefile @@ -32,7 +32,8 @@ find_cmd =3D $(find_all_cmd) | \ sed 's|^$(srctree)/||' | \ grep -F -e "$(subst :," -e ",$(DT_SCHEMA_FILES))" | \ sed 's|^|$(srctree)/|' -CHK_DT_EXAMPLES :=3D $(patsubst $(srctree)/%.yaml,%.example.dtb, $(shell $= (find_cmd))) +CHK_DT_EXAMPLES :=3D $(patsubst $(srctree)/%.yaml,%.example.dtb, \ + $(shell $(find_cmd) | xargs grep -l '^examples:')) =20 quiet_cmd_yamllint =3D LINT $(src) cmd_yamllint =3D ($(find_cmd) | \ --=20 2.51.0