From patchwork Thu Feb 9 00:26:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 54649 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp34368wrn; Wed, 8 Feb 2023 16:46:51 -0800 (PST) X-Google-Smtp-Source: AK7set9/3dga2UyaJTPHhPYnPXl/3PZVO5+cbBSb/9NtQwjunUmjqFoYZd2W2Iv/JBeg7EM9+zHV X-Received: by 2002:a17:906:283:b0:878:5946:c0ac with SMTP id 3-20020a170906028300b008785946c0acmr9062234ejf.3.1675903611179; Wed, 08 Feb 2023 16:46:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675903611; cv=none; d=google.com; s=arc-20160816; b=ZhPkmEBIXtpPplPcs6wvmAmjlTHYe45fNfjSS7wyLM5MfiH5v7c4Kl+JEN70yaEIoF 8a60xesnSY+iVSZzKlBNrUUuuvSLG52fboSYvWBzqVvBhlhNdAoDb3g9DAByCasfOYX4 aWRM5kU5SElj6s/lPzEKw76w/ZU+SHTDlUNXcxzxsXtR0bplv2Z/gDNBZ88M02S9eoGU +KUA9g6+48FF1ciggaDL39c14GNF3KMkpr9/4i2AcAODbi6+hVWdLbsuspH24iEr7V5+ bvt1HJ38VTMxCqQ7cP9aZIRUZMWlmW2jftmiVPoAVz5gClG7+qXY7X0XogbZl1w+yFod e0oA== 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=k8Xp45GOjQr/7/f14FxwwasOVwzS/JMtTvjm3Hgb1Iw=; b=OUFO1H8Yo6sthG1JH4bovF4OzZro9ApOA8p8crTPy9jUOiEP5Mw2swIkgJhuOjD44Z 4PYsEPfDXteN5g54fy5Dv5Td3Tnsg7NOHohsmSZfjFgGZeMxEt2eMVLzL31Je1uXYCaO GoLMCnPCFs9gvYFVHoXLk6aTmzXlfT9NAEMbCgmwnE0H1aZrbnGlmVL4wRXHy7j6d6tg V7yr2g0N9vPLezxrf275KwIla6dn+ADQt56C8tunTi8+IxAcAzD4cNw6uw2Alhm0CVPy rFTClZxoVxsO01zV+vNx4/xvREM4DkmeOFXiXnandxUIYNNZVJo1pXHyDKRZ+W2QLron 9yMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=VXrlmnsN; 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=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j16-20020a170906535000b00885b8dad9f7si563200ejo.375.2023.02.08.16.46.27; Wed, 08 Feb 2023 16:46:51 -0800 (PST) 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=@collabora.com header.s=mail header.b=VXrlmnsN; 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=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230342AbjBIA0o (ORCPT + 99 others); Wed, 8 Feb 2023 19:26:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229669AbjBIA0m (ORCPT ); Wed, 8 Feb 2023 19:26:42 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A73251B557; Wed, 8 Feb 2023 16:26:41 -0800 (PST) Received: from localhost (unknown [86.120.32.152]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id 980F766020AF; Thu, 9 Feb 2023 00:26:39 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1675902399; bh=SvGznSgCk0kXiWJzYL7DhQ57hEnM/O2D+FdMBOZ1PBc=; h=From:To:Cc:Subject:Date:From; b=VXrlmnsNZahFydzuCxiOBpeyxJC31ryCyBXenjqRA5sokWYwSsGjcYQqEzertrTPo X8qxG16s9DgjCE4VbTVYU1793WPTV5TkWsafeD1dPjfE+RDYx+V82jeXiCeZav5hzb crYKY0s+hJ6AGhf/miMxrvTblh8tsF+Gmdz1fLj4qgTnqDx9a8I3rWrxiKX9cVErKN qD17qlwo/5nuhR/ARxlWpLBZxjxXyrVea0r3fGb8S+TEWt/FShKh+U42Z3Qo6Eqz0d B4D+Kp69WZoDBMw4kjrlyO8CZ36RhHW6uG0oOKzt2R/mW2HK6YTg5ysA8OARomn2um LJok4Qy9dwjyg== From: Cristian Ciocaltea To: Rob Herring , Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: [PATCH 1/1] dt-bindings: Fix multi pattern support in DT_SCHEMA_FILES Date: Thu, 9 Feb 2023 02:26:34 +0200 Message-Id: <20230209002634.745163-1-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757312305003642057?= X-GMAIL-MSGID: =?utf-8?q?1757312305003642057?= DT_SCHEMA_FILES used to allow specifying a space separated list of file paths, but the introduction of partial matches support broke this feature: $ make dtbs_check DT_SCHEMA_FILES="path/to/schema1.yaml path/to/schema2.yaml" [...] LINT Documentation/devicetree/bindings usage: yamllint [-h] [-] [-c CONFIG_FILE | -d CONFIG_DATA] [--list-files] [...] [-v] [FILE_OR_DIR ...] yamllint: error: one of the arguments FILE_OR_DIR - is required [...] Restore the lost functionality by preparing a grep filter that is able to handle multiple search patterns. Fixes: 309d955985ee ("dt-bindings: kbuild: Support partial matches with DT_SCHEMA_FILES") Signed-off-by: Cristian Ciocaltea --- 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 bf2d8a8ced77..5475c25ae803 100644 --- a/Documentation/devicetree/bindings/Makefile +++ b/Documentation/devicetree/bindings/Makefile @@ -28,7 +28,7 @@ $(obj)/%.example.dts: $(src)/%.yaml check_dtschema_version FORCE find_all_cmd = find $(srctree)/$(src) \( -name '*.yaml' ! \ -name 'processed-schema*' \) -find_cmd = $(find_all_cmd) | grep -F "$(DT_SCHEMA_FILES)" +find_cmd = $(find_all_cmd) | grep -F -e "$(subst $() ," -e ",$(strip $(DT_SCHEMA_FILES)))" CHK_DT_DOCS := $(shell $(find_cmd)) quiet_cmd_yamllint = LINT $(src)