Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1781404pxb; Wed, 20 Oct 2021 11:36:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqq7sLnJpgAmVpMB0H0SHk7ZNh77gyltG4u4kUCETRLejf6tEGFdowI0sIKqVpqhN2rR1f X-Received: by 2002:a50:be82:: with SMTP id b2mr888201edk.56.1634755016105; Wed, 20 Oct 2021 11:36:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634755016; cv=none; d=google.com; s=arc-20160816; b=OfmYiAYcQ10+SWHpteHOyfYS+DGOZL4uB6n2Igq7rBrKzIohUku2ZediKopsp5TMe5 DM1a4IZCD85ukId8T4w0GHNomfJtfj8ZQSKdGVxpi66kq48T8CsqmWuC+fCZQKxUeNcF FI578YzB1DQam0+4LS2dUREf4ct3HnSLRhS1JjAgwAY8k2Fxz8i22pL66d1F0i5Kq1GW U31C2woVxIxy+2wmKLy59vhlRyU2Jjqev7ER63rRrqZVK3tFCd655IlwS1NGBnolorXs kAepMVBmTm3jzCnv+wx5c0EKwKQoxMkUzWrcT/LEm+PhhjoQv3uRcgog/ITGosS7KQ1x GmSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=xnBryV4oUKQXd619YT8sGTDtpc9ycu5jUG/DjRiH8XU=; b=ZLVn/3WHbb33dl2JCCwAZCyaTY+tF0X2CtlZvpl0JT3QckUlcAuuOx8gFDK2vC64mM Uk1zUS/KqHAThvAC3oICaGC8Ba6W/cD5AF8uM4FWllqjfyLRNOmtTsaQSzVStrLlBKX8 qgF9mZQfP0QdrQ7Pw5bEx5Z85Y2WH9SbUoLPiSK99JeINceTFYPA7HCHElHQ10o7eF8k QsHzbT/3wckZ4aJLNhkI1SyM2E66MFdVPDdqb+knVVfi+q2tmuI2c8o18jdvIYkx4FSj 8mH3N8L8YrQJUxGQQyQR3v6P144M/nn7ErgoEw7pUbeHlJobWCCgrx5SoNRG+Zw0pGXU O8Dw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d6si3828018ejm.641.2021.10.20.11.36.27; Wed, 20 Oct 2021 11:36:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231183AbhJTSgQ (ORCPT + 99 others); Wed, 20 Oct 2021 14:36:16 -0400 Received: from mail-ot1-f44.google.com ([209.85.210.44]:43553 "EHLO mail-ot1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230520AbhJTSgP (ORCPT ); Wed, 20 Oct 2021 14:36:15 -0400 Received: by mail-ot1-f44.google.com with SMTP id y15-20020a9d460f000000b0055337e17a55so1887024ote.10; Wed, 20 Oct 2021 11:34:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=xnBryV4oUKQXd619YT8sGTDtpc9ycu5jUG/DjRiH8XU=; b=uLCpKczqGefFophjTVw2ebxpfW+B4Q6W/uFwYvVm2LUIWBOkvGSKoCuxqDJ46TfBgu NTUF6nRyEYFjv2g5q7UWD7N73wIyqPCrlw8BmgGveMDvBFZ3hHZVGvPO6UDpuUN6SRdl GUtIbf/vtEa3X7k9COVpLT35S6nd6JfZEqcUcCOKzM3wV3N92KLDFuhSnnaeQcukY7QA Zk4iaMPPG4RsNaHZivkcGd63l05NBrixPFDpd97vLYuybCdoSJdAsSffLAoCJKZT1bKC +HRYgqO0jwoqNahASFMGIHNd+7M5PkFxn9A07xOIVT2TNH6GOFCZgrtMJYlEpqY2Nbrb kblw== X-Gm-Message-State: AOAM533Wt+AHqKJD5c+QB9dcYT9/BeaLlJ0wtcAmi8wGVVhRKDNStggS HPYbuXQmGgMhyEC5k0rHwCcRBDz4Ww== X-Received: by 2002:a05:6830:788:: with SMTP id w8mr819981ots.72.1634754840619; Wed, 20 Oct 2021 11:34:00 -0700 (PDT) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id w9sm597696otp.64.2021.10.20.11.33.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Oct 2021 11:33:59 -0700 (PDT) Received: (nullmailer pid 2651673 invoked by uid 1000); Wed, 20 Oct 2021 18:33:57 -0000 Date: Wed, 20 Oct 2021 13:33:57 -0500 From: Rob Herring To: Geert Uytterhoeven Cc: Joey Gouly , devicetree@vger.kernel.org, Rob Herring , Stephen Boyd , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] dt-bindings: Consider DT_SCHEMA_FILES when finding all json-schema Message-ID: References: <174ab1d791b7bc65f3b0f11b72be13af1748c731.1634551582.git.geert+renesas@glider.be> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <174ab1d791b7bc65f3b0f11b72be13af1748c731.1634551582.git.geert+renesas@glider.be> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 18 Oct 2021 12:54:48 +0200, Geert Uytterhoeven wrote: > Setting DT_SCHEMA_FILES allows the user to restrict the > "dt_binding_check" make target to a specified set of DT binding files. > However, yamllint is still run on all available files, which not only > takes time, but also outputs warnings for other binding files the > developer is not interested in. > > Fix this by renaming "find_cmd" to "find_all_cmd", introducing a new > "find_cmd" to only return the files specified by DT_SCHEMA_FILES (if > present), and using the latter for yamllint. We can also do the same thing on dt-doc-validate since checking and preprocessing schemas are separate steps, so I did while applying. > > Signed-off-by: Geert Uytterhoeven > --- > v2: > - Introduce find_all_cmd, > - Only use the restricted set for yamllint. > --- > Documentation/devicetree/bindings/Makefile | 14 ++++++++++---- > 1 file changed, 10 insertions(+), 4 deletions(-) >