Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7419796rdb; Wed, 3 Jan 2024 15:58:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IFqxA1POwkmyMEo0GK8m7Gz0KLc3x/0xzpYTC51y/4py4O+mIBoTUY8OTKR0hPG+r3qSJwP X-Received: by 2002:a50:d581:0:b0:555:13c9:5f88 with SMTP id v1-20020a50d581000000b0055513c95f88mr5352030edi.118.1704326317977; Wed, 03 Jan 2024 15:58:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704326317; cv=none; d=google.com; s=arc-20160816; b=IQHs/Te+W23qJHo4XZbsIEs+5Ou5qdCE4hSwmhkOax5viFzHK2YTJc4dyW+l+f3fvN hrpk/hhTaB8BPSa3rsONrmyuTRQ1JgnDjTpVxorsQ/5iiJUuS39C+qpvHVDn/3IcLpfz QGmLQwKGupn4ddMNRPo3xDcq52qXoBtjuU+S1cCp9u12d55DNr7E6wgjIGMiHkYC46YL 2rWdtBF8r2tsCHjReYr2CAjhnxyzifrzqUWCIkj9P96AaZ27irseynsuSAZmVMr1EE+A G9NKYEHetiNcstalQXKHvHjuNJPQfpCbNWy9tMo9uDJDCP87tKek0SnLuam/vsLIFdrR G5ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TvvLl3KOWZHrdYuU39RRw3YAdGv3pvZCP0HoKmQpSOk=; fh=+6s6Ulm7wOO0B2aKM4tSuvp5qiOIHuFjq7oa66sQhgs=; b=Ntas2Ml0I4k2h/6y8XCuSLBb5eCCrsSSmOWe/4rLxsMT4nwqB60Key24N2I1NXpGIY 9FhWS9ZRO8uixH1UeTATKcFUljanMTOazsU26kmjOQfbkfk9cLKTT/KHCVdJFfcnBcyV jkSnbaeKcKxvMYFwBsTJTYaYwc1FHsOcxE0ofcGYAq5qCIZxbSD0OONUz7VvQLeXX7l6 Kj18oLqZCrVVOhq+3Xy+m4uucAe6NMLFR8AYsO7+vxQLtNrB9NZINBWbZXUuGAZEE0hM h+GS47IFAipokUElrO4I6wW18IBdVIVhmM56GZ0bWksQZoQCJmIsspHl+8LH0igr3S1+ hIbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BvTQ1CIZ; spf=pass (google.com: domain of linux-kernel+bounces-16129-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16129-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id r28-20020a50aadc000000b005537e61bd6dsi12570916edc.406.2024.01.03.15.58.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 15:58:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16129-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BvTQ1CIZ; spf=pass (google.com: domain of linux-kernel+bounces-16129-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16129-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B6E181F2608C for ; Wed, 3 Jan 2024 23:58:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24C631F95F; Wed, 3 Jan 2024 23:58:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BvTQ1CIZ" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 55E781F926; Wed, 3 Jan 2024 23:58:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D093C433C7; Wed, 3 Jan 2024 23:58:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704326309; bh=iA9WYfGY5Z4oYdMSbRGnFplo2MhKh0V9KxXo9sQm5Pk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BvTQ1CIZJ3c3bkAHjb38KAjylqYtdc8OhUUlTB7ZU0IsHEYDYPWrErA1dcymNAIME 7v06xr59dNgxWQNp6/RGwGHtEGPOD2ExIrSJgRRVYmf3SKoKvUYOS/IRkTj8gmcFrG sDIJqQrJ1oJj39puhnIzsvZ3Hxas6Fz4kQWNLsdmuTjTynu4Ij3reRGCDq3hcAjLOe iSSAu7ut2lfbPaP02Ug5BB1sgqo0NyoOOWNMwx6NInkjO85zhLB/A4kWp68+18en8u I6/exVME/cc79Suz+bOFCnTVUYPhmidOkUzDuH4kT4T9IdolOY/U+5iLxtFRSS3lfA CmquNDbEAvzkQ== Received: (nullmailer pid 2042297 invoked by uid 1000); Wed, 03 Jan 2024 23:58:27 -0000 Date: Wed, 3 Jan 2024 16:58:27 -0700 From: Rob Herring To: =?iso-8859-1?Q?Andr=E9?= Draszik Cc: Rob Herring , Masahiro Yamada , Conor Dooley , Mathieu Poirier , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Krzysztof Kozlowski Subject: Re: [PATCH] dt-bindings: ignore paths outside kernel for DT_SCHEMA_FILES Message-ID: <170432630603.2042234.10993333941885772911.robh@kernel.org> References: <20231220145537.2163811-1-andre.draszik@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231220145537.2163811-1-andre.draszik@linaro.org> On Wed, 20 Dec 2023 14:55:37 +0000, Andr? Draszik wrote: > If the location of the kernel sources contains the string that we're > filtering for using DT_SCHEMA_FILES, then all schemas will currently be > matched, returned and checked, not just the ones we actually expected. > As an example, if the kernel sources happen to be below a directory > 'google', and DT_SCHEMA_FILES=google, everything is checked. More > common examples might be having the sources below people's home > directories that contain the string st or arm and then searching for > those. The list is endless. > > Fix this by only matching for schemas below the kernel source's > bindings directory. > > Note that I opted for the implementation here so as to not having to > deal with escaping DT_SCHEMA_FILES, which would have been the > alternative if the grep match itself had been updated. > > Cc: Masahiro Yamada > Signed-off-by: Andr? Draszik > --- > Documentation/devicetree/bindings/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Applied, thanks!