Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3972196pxb; Tue, 25 Jan 2022 00:19:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzjuuioMiaCmM2pfHNhyd2p3qqY1/Ur92hVhtZGTPWBk8ZwHogGje+rK2TlE8TQrfSi9oPZ X-Received: by 2002:a17:907:6e9f:: with SMTP id sh31mr5277302ejc.159.1643098678695; Tue, 25 Jan 2022 00:17:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643098678; cv=none; d=google.com; s=arc-20160816; b=vBNE3wViE8JXgxYogOp/MPxT/jevoIoN4mq3CdjW1sKKO741aaZfrIg2LWmFH8ZS0k KWOUK8UnK3eq92pVz7rL/bXwb++4jQD8WM2ATBC5b/W007Kkj1nxWVmKX/WOt7go4q/w qFaZCuR7s6I7ZMXZT62NqIM+HU4Whb97bYXzE1LsEUsr1wTxZKproD++zy58GNgRo/Mz Y15V/dB/jgR5eFqs6cNmkmMxLUtwMolcIUaxhUOV4PBhN7aBi/lNlOzZ2bbM4/UDso7K WpCCGbHVuZi/9LXLpgk4tXY8RzGRlFiPL2wr4UTSQnS5I7SSpb/oIE4E2yohPv7q14p3 L+cQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QXyd5AO+y5h9OoiwMi6oVuE1FEjz4cPwxY3PzG8Nhx4=; b=voHj1eqxyUeQckeL2P8/z0HGsSm4nxzj7voN44yboeCoJ2g8q2iQU80aLkeghfab1h Vb+m0gbUJbGh9SwX1SMvEviL3/nsD+p+MAD4aDgQVZuir7Prr6lQNdFFu3E5sWopeXmc 4J6tnnvVP3sVQGJNOOLBoLs7yAddKmPSjRDGBI8/T0TWxECKjebdE62NlhaOiTmjO30O E1TBj6k7eNZNd8Hi1EO4wqLW4uux1/QWyscMFR28ngicC8JaLqL5pNc9MRswBAYWaXbk VJV26G2Mi14pJJMw5kES7R5VkhveMS/GmX/WYc/M+i5prrCSZBDf0iM1uRhHmeFOFJ+o Z2tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dvcUD1Dk; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gn39si9636994ejc.811.2022.01.25.00.17.21; Tue, 25 Jan 2022 00:17:58 -0800 (PST) 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 header.i=@linuxfoundation.org header.s=korg header.b=dvcUD1Dk; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S3412369AbiAYAgo (ORCPT + 99 others); Mon, 24 Jan 2022 19:36:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2365366AbiAXXuq (ORCPT ); Mon, 24 Jan 2022 18:50:46 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83383C0FE6A4; Mon, 24 Jan 2022 13:44:37 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id 4AE98B811A9; Mon, 24 Jan 2022 21:44:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84918C340E4; Mon, 24 Jan 2022 21:44:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643060675; bh=yu+IE5+gItyP4e2FuDlpjTgxMD8d6Lf0tXsdlecCLis=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dvcUD1Dk9ZSL/l+2y58bpKVv6JAsBry7YQngUj3ZLtqWkdq/0hzSPAKVhulOKkejM d7pUHZmxLtLzaIoZDpk9VvjGa4bjgB6UQ14WR1gws6tf7a2fXk/hrIfSb61AnsSr6i gpTkonziGbhjGdjvJqYSAv1xm8FWub/K9zgnzXKg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matthias Schiffer , Frank Rowand , Rob Herring Subject: [PATCH 5.16 1027/1039] scripts/dtc: dtx_diff: remove broken example from help text Date: Mon, 24 Jan 2022 19:46:56 +0100 Message-Id: <20220124184159.816262393@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthias Schiffer commit d8adf5b92a9d2205620874d498c39923ecea8749 upstream. dtx_diff suggests to use <(...) syntax to pipe two inputs into it, but this has never worked: The /proc/self/fds/... paths passed by the shell will fail the `[ -f "${dtx}" ] && [ -r "${dtx}" ]` check in compile_to_dts, but even with this check removed, the function cannot work: hexdump will eat up the DTB magic, making the subsequent dtc call fail, as a pipe cannot be rewound. Simply remove this broken example, as there is already an alternative one that works fine. Fixes: 10eadc253ddf ("dtc: create tool to diff device trees") Signed-off-by: Matthias Schiffer Reviewed-by: Frank Rowand Signed-off-by: Rob Herring Link: https://lore.kernel.org/r/20220113081918.10387-1-matthias.schiffer@ew.tq-group.com Signed-off-by: Greg Kroah-Hartman --- scripts/dtc/dtx_diff | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) --- a/scripts/dtc/dtx_diff +++ b/scripts/dtc/dtx_diff @@ -59,12 +59,8 @@ Otherwise DTx is treated as a dts source or '/include/' to be processed. If DTx_1 and DTx_2 are in different architectures, then this script - may not work since \${ARCH} is part of the include path. Two possible - workarounds: - - `basename $0` \\ - <(ARCH=arch_of_dtx_1 `basename $0` DTx_1) \\ - <(ARCH=arch_of_dtx_2 `basename $0` DTx_2) + may not work since \${ARCH} is part of the include path. The following + workaround can be used: `basename $0` ARCH=arch_of_dtx_1 DTx_1 >tmp_dtx_1.dts `basename $0` ARCH=arch_of_dtx_2 DTx_2 >tmp_dtx_2.dts