Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp4313763pxp; Tue, 15 Mar 2022 18:08:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvhs+nmcZY0MPhPXXEFPqNpWkWweEV4M6sVduwm6YDgCvbtKv5mLZnvfzUZxE931mnCpsS X-Received: by 2002:a17:906:fc10:b0:6cd:84e:7248 with SMTP id ov16-20020a170906fc1000b006cd084e7248mr25379767ejb.281.1647392914113; Tue, 15 Mar 2022 18:08:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647392914; cv=none; d=google.com; s=arc-20160816; b=rTDgBNJASvlBqQTol2dtfoD+udXrjG0gt+c2vzBcffajLf1uI3555xoKla27kvhJuJ IZoyHlxS668yyCaV5VaXjOzCgBPSp5IWcKjMQqWU/Ga0yE3VM4GeuLi7BFPEoV5LI83r Jtnd2lUkpidhaQv+yhwjX7D7O8oiXtR2jvsy3a92OKuSKvER1Ooxb40j1QUBdYgivTWS 4EALSvjA4CCehfzzDeR7yguJWdSr6opKes7dhB4eiEwVUskVVn4+LLEgdyeKbTfiZFa6 Or4Kx6VNQiWzSHOjJ9QpKy85ocSNCvWOfIGIYAWEqrTIi2iUu1Y2ZGMn2vPtCW9JQaOu iAEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=vdeDPPYiiz57H6jy8fnpzYqE77XXto5zpz1dXGa82lE=; b=Jb9GKzClx+pNOwUvGgJvA1zDAJfF2WG3Kysh9CjuhMmtXpM867BzwgDzvRghYvVxE3 2Twks53S+aWnSeoJ0nbJnkn9lgLt8TxBY0JYVv+Wu1r/0qjNM+MtJRukRGBtnxBhhL17 uL1HaAhpAeehKMsWmAADT4yshTIyk0Ek4QnbPwphfgbn8lkvZJOehK0MRvFwBb3AOj8P yI7ZU0Cex7S6bpcaaKBnEPqRgDIeuNQQcQOiRX31uGCj+t+az3ClL3GQGYW3B+AtHjZy ZjAQVl0FMfk8PeWINo0h1tbBf7OkvSs3QUoQMfzLJ71dbPuJOYa5wde95OYJULm0FWXT xckw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="j1UldcV/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g26-20020a17090613da00b006df6827ea9asi337645ejc.948.2022.03.15.18.08.09; Tue, 15 Mar 2022 18:08:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="j1UldcV/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351693AbiCOU2z (ORCPT + 99 others); Tue, 15 Mar 2022 16:28:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351688AbiCOU2y (ORCPT ); Tue, 15 Mar 2022 16:28:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B84E527CF; Tue, 15 Mar 2022 13:27:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DE81B60C11; Tue, 15 Mar 2022 20:27:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8594C340E8; Tue, 15 Mar 2022 20:27:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647376061; bh=lPid5CXtPfW3o72M2MpfIOFm7dpvPR/IEytoPY4JkGA=; h=From:To:Cc:Subject:Date:From; b=j1UldcV/o+ezaF2TgjsCVr+8NhHzHqV1B1SGmZBuMhbsajxalAJBsvBAxadGAzmbd iD2WuMRSZM8M2ZePgXX5GJ+ErfWowM2Aq585kFJ1kjS7PNR5nelOLKOakwYtdxxoDt YUl0MufwZXwGuq51SBNqo7gjQhtK/N5YRVo9wmKpWwlYA2rP7+exU8W46KLxMmE0VH qgmuaInlKQFGMmjPmDHtd5955jksDC09onSZu5U9qXJTHwrUd6HXTRLDY+c7r3HjXi gD06ViV8drCFXA+gf2IC/KQ6uanS5U1xTnK9X9IBEtofGnFHZnJG+GsLP134yJuVTQ tu7SWA1Jwh0cA== From: Nathan Chancellor To: Rob Herring , Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Nathan Chancellor Subject: [PATCH -next v2] dt-bindings: kbuild: Make DT_SCHEMA_LINT a recursive variable Date: Tue, 15 Mar 2022 13:25:43 -0700 Message-Id: <20220315202542.2071351-1-nathan@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A recent change added a warning when yamllint is not installed, as it is needed for 'make dt_binding_check'. However, it also changed DT_SCHEMA_LINT to be a simple make variable, which is evaluated when a Makefile is evaluated. This causes a warning when running 'make clean', as Documentation/devicetree/bindings/Makefile has a "clean-files" variable: $ make -s clean which: no yamllint in (...) warning: python package 'yamllint' not installed, skipping Make DT_SCHEMA_LINT a recursive variable so it is evaluated only when it is used. The warning still triggers when 'make dt_binding_check' is run. Fixes: b3e664a7f449 ("dt-bindings: kbuild: Print a warning if yamllint is not found") Signed-off-by: Nathan Chancellor --- v1 -> v2: https://lore.kernel.org/r/20220315202032.538911-1-nathan@kernel.org/ * Fix stray "i" in commit title (I promise I know how to use vim...), sorry for the mistake and extra patch. Documentation/devicetree/bindings/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/Makefile b/Documentation/devicetree/bindings/Makefile index e594e5898be0..c9953f86b19d 100644 --- a/Documentation/devicetree/bindings/Makefile +++ b/Documentation/devicetree/bindings/Makefile @@ -3,7 +3,7 @@ DT_DOC_CHECKER ?= dt-doc-validate DT_EXTRACT_EX ?= dt-extract-example DT_MK_SCHEMA ?= dt-mk-schema -DT_SCHEMA_LINT := $(shell which yamllint || \ +DT_SCHEMA_LINT = $(shell which yamllint || \ echo "warning: python package 'yamllint' not installed, skipping" >&2) DT_SCHEMA_MIN_VERSION = 2022.3 base-commit: 593adaa6459903728cb59392239f2c615b8dadbb -- 2.35.1