Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp119918ybz; Tue, 21 Apr 2020 16:39:26 -0700 (PDT) X-Google-Smtp-Source: APiQypJVZbY1S+f4LF6oFeLku5Cl/kCJrw65O3U3a4Q5gBbnWDJDrGDhTuWBT0WyWKOhJpZOsEaZ X-Received: by 2002:a17:906:6a92:: with SMTP id p18mr23863957ejr.351.1587512366314; Tue, 21 Apr 2020 16:39:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587512366; cv=none; d=google.com; s=arc-20160816; b=mH4DmEnDp1JlyB64DgOFzCVD7l9AphR/PMNGO/0/8piM5UVqNr1Agz6GmM7CIIii7V sqTEPi2Bg/7V/aRHSKpI3eCuB/HEt1hKreIPpmalvyqS/vZ0WzOwGnXUA60mQYnRLYMH mKLv65X2w/aEBTBYks8NMtT3amDIaNfmnElU/o5PEUKz0uUFAxWi/eyh8ql4d9WUzBru uC+mJ7QCkott7gn85EzFTaXEXe0GsvGAgMeSH+u6OOqrZ1VvOU6fxaw2DEHCsLWpa5rY rO+ArLTRJlTeJfv0b7yrTwSFWWUzHKxqWCUpDIlhc9+SJkP8SeafY9H4fzjNOeAhihkY ZLEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=GdzKctHMoK3+CJbyDPgaBNRnE/t+vmpD0WOixIaRYYM=; b=NdeGord81t2K3OAFLGmTkYHuobv7abBAKTwbvdx51h40Exrgt2fl7a/2vVlkT1rj7z CVHCkopkTYf3DMiYb7JMGACUo0UzNUPOrrwKYRrYJs6liEB/oEUqfSjlr9nAfvt/3SUN yGZ6ncDOxOb5eiMEIFMhS3VQCu5TrPRNSlgGWsfRsgQTRhfl2zRUHWGHp+czynVD2sNA NdXPcDIswlz37OXI8NRip7zBZnCvmqsAnNWW1spb48+7Q5gDEPBImWDIohqAHpM03nQq 1kjbN69WBsK6MnERbDdZbd0L8ZYB3HK6dwJfRBf9ucOaHiNYf17mFLjj4G2+hCf4jlzP T91g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=PppgEIgL; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si2739493ejc.247.2020.04.21.16.38.55; Tue, 21 Apr 2020 16:39:26 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=PppgEIgL; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726380AbgDUXhy (ORCPT + 99 others); Tue, 21 Apr 2020 19:37:54 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:52016 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726024AbgDUXhy (ORCPT ); Tue, 21 Apr 2020 19:37:54 -0400 Received: from pendragon.ideasonboard.com (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id AECE5528; Wed, 22 Apr 2020 01:37:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1587512272; bh=5eFRCFCW+AQcwwQ1P4SI+kh5BzixH1YnCepykGCRdug=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PppgEIgL2oA76DRoFXBlbUfuUsgkWw067Ew75aocw0CHqCyiSrwDAsI7zdvu2X8kj 2dU4CUFHSL9p+0TZpFkbEl7vuOKiZaOOWXm6oexUDSR4j73WyKMsTPG/roimCx68dh tacN2Ywp59unw9IWwtRkdXHHlZ0fhpEsuyzK2UO0= Date: Wed, 22 Apr 2020 02:37:37 +0300 From: Laurent Pinchart To: Rob Herring Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Masahiro Yamada Subject: Re: [PATCH 1/2] dt-bindings: Fix command line length limit calling dt-mk-schema Message-ID: <20200421233737.GH5983@pendragon.ideasonboard.com> References: <20200421212004.6146-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200421212004.6146-1-robh@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, Thank you for the patch. On Tue, Apr 21, 2020 at 04:20:03PM -0500, Rob Herring wrote: > As the number of schemas has increased, we're starting to hit the error > "execvp: /bin/sh: Argument list too long". This is due to passing all the > schema files on the command line to dt-mk-schema. It currently is only > with out of tree builds and is intermittent depending on the file path > lengths. > > Commit 2ba06cd8565b ("kbuild: Always validate DT binding examples") made > hitting this proplem more likely since the example validation now always > gets the full list of schemas. > > Fix this by putting the schema file list into a temp file and using xargs. > > Reported-by: Laurent Pinchart > Cc: Masahiro Yamada > Signed-off-by: Rob Herring Quite a bit slower than v5.6 when passing DT_SCHEMA_FILES, but reasonable, and working now :-) Tested-by: Laurent Pinchart > --- > Documentation/devicetree/bindings/.gitignore | 2 +- > Documentation/devicetree/bindings/Makefile | 3 ++- > 2 files changed, 3 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/.gitignore b/Documentation/devicetree/bindings/.gitignore > index 5c6d8ea1a09c..0a6aef915fa4 100644 > --- a/Documentation/devicetree/bindings/.gitignore > +++ b/Documentation/devicetree/bindings/.gitignore > @@ -1,3 +1,3 @@ > # SPDX-License-Identifier: GPL-2.0-only > *.example.dts > -processed-schema*.yaml > +processed-schema*.yaml* > diff --git a/Documentation/devicetree/bindings/Makefile b/Documentation/devicetree/bindings/Makefile > index 1df680d07461..1c1cad860b7c 100644 > --- a/Documentation/devicetree/bindings/Makefile > +++ b/Documentation/devicetree/bindings/Makefile > @@ -14,7 +14,8 @@ $(obj)/%.example.dts: $(src)/%.yaml FORCE > DT_TMP_SCHEMA := $(obj)/processed-schema-examples.yaml > > quiet_cmd_mk_schema = SCHEMA $@ > - cmd_mk_schema = $(DT_MK_SCHEMA) $(DT_MK_SCHEMA_FLAGS) -o $@ $(real-prereqs) > + cmd_mk_schema = $(file >$@.tmp, $(real-prereqs)) \ > + cat $@.tmp | xargs $(DT_MK_SCHEMA) $(DT_MK_SCHEMA_FLAGS) -o $@ > > DT_DOCS = $(addprefix $(src)/, \ > $(shell \ -- Regards, Laurent Pinchart