Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp947116pxp; Wed, 16 Mar 2022 22:16:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnuNkhz+mFkCFW6OEAOwKg5eOtufTxb5htBT3roePmzKorTjjkBwHU/3Uab0A4f6Jzy6AT X-Received: by 2002:a63:1b09:0:b0:378:faa5:c63a with SMTP id b9-20020a631b09000000b00378faa5c63amr2375921pgb.276.1647494164981; Wed, 16 Mar 2022 22:16:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647494164; cv=none; d=google.com; s=arc-20160816; b=sdgpBObnZSdGh83WCJmK8uhkeuYa4CsTBZE4Jc04b9/zFlSxmGF9dcOdwkS7VJOH+3 YZZFCJrWdEXxHTa42zSLEBmggXrndhQ8NZ5OuyvZyNYtrvMfwB/27Y3yqAQDrrD2yMGg nMQBdAfIHMUorK6u8a5WUm83J44eMynZE1eGm2iyRSNwvyagk9Wtu6HhbH+Pcm9wGcgb FPlUVLr9Xpl0k2v5/JgZckpZXFjUq4r5TTemxYssHX9qayr8bw0TS22Vz8Hn8+2sedvb qWuFENVNK/dPURStW3W7F0rOuTA8Svmqn1cNxRM4RwBfntaE6VAKyK0DnN3c8ZjSMQKJ dEUQ== 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=WGopfuOuw/cWkPkOew8KcaHTiG++TlWC08DX1yJcy40=; b=EhYynuNS7KPaHI/GzJpFdDKtCbQbq44sTgHL4cLI0Ugj8Qz+ZkWidGLX9nNhGph4fq PEEFrjq0rlHwGpDa+oLKFl5INafT2VhGaCbcQYySaqXBVawlet8/7k/AVFk1pY/K62Hm rnvtsr3jfk+8jsIdbM8Xhq7PINCMLTDP5tGmMEIMNVGOrXgaz2bNQoNWxOSVAULYYNGi v+KXGHv0YKL4GBn/caP7mdl7fTInNfiPsxRxNKuITqrOTfz00McjPVe+/lz86ZyrwYTQ DJZO+Tbe4eFQv2FBKQciOlGu4GvQU4bL4CI73UPkqLFQmse4wW9m5Qz8r+bJhcS3aqwY RXbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=erv2eTaH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z6-20020a633306000000b003816043ee87si1127049pgz.124.2022.03.16.22.16.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 22:16:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=erv2eTaH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4087F1F0828; Wed, 16 Mar 2022 21:24:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237767AbiCOUXJ (ORCPT + 99 others); Tue, 15 Mar 2022 16:23:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351691AbiCOUXD (ORCPT ); Tue, 15 Mar 2022 16:23:03 -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 3BD4D1B794; Tue, 15 Mar 2022 13:21:51 -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 CB2B960B16; Tue, 15 Mar 2022 20:21:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0444C340EE; Tue, 15 Mar 2022 20:21:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647375710; bh=obfmGqylSH5u0Q12sqtMoFbJxkTAQ2oft0YJvmwoZY4=; h=From:To:Cc:Subject:Date:From; b=erv2eTaHBIMTXTmzyHX95tf8o2s2Vl0ZLYYtfFOgMLNpuXMuRL1ioK0hd2XUIu/zT F3YJb6y3a6SmNASxqbFpWMWFXDnkPDPmVbkUe38yNtRAZM9OflBFxyIlhfxSaR2Bex 3RUctkFotm8WxeNw9fNj2r1dZtFuaG8AbB3nYqtVEB28Q6yLO0P55RiQ8LZbK29gho /3264p1oL5n7rQCLjyK0Qz1xUcKJcPQx4HGK12TfTAT8PDk1EMS6YWNKy6Kw7t9e8f KBwz8Vp/JUePkWHdeny3h7E56/ti4657bAp1zi2YzdaULsKPOjlpg6HFaGY8rVE+cA jFLYXH5UxscOg== 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] dt-bindings:i kbuild: Make DT_SCHEMA_LINT a recursive variable Date: Tue, 15 Mar 2022 13:20:32 -0700 Message-Id: <20220315202032.538911-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=-3.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 --- 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