Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3975701pxb; Tue, 25 Jan 2022 00:25:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzhxX4lAMOWWB/0CeRyB8x+ZxvqCCcyoBWgSd4NYg2uO3iujPvNP+ZEPyZklxEKhqjKzIKh X-Received: by 2002:a17:906:2a0c:: with SMTP id j12mr15093828eje.698.1643099145867; Tue, 25 Jan 2022 00:25:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643099145; cv=none; d=google.com; s=arc-20160816; b=tNT9BDiOOJ69BkGsJDniIe1QgxlKZ4o7JF/XlShJgxSCFM+M5Zg3ORyEkUtLAf2w/Z XVXSJtbtjtQ4CkWTQMIE/cHdgeat9SroiMeVXK+l19PekKYocBk6KHAPMeFACcX5OasO ZFT4G4SoQebjF56uIMNwakYf5DRiklcIBB9jFow+okrB0JimBhFQQRo7die0H17hB++E 86r6eq5mYM+/gx9N3lm2Cicz+qxJJvOyL2OtR2AAUT8cz/LizhmklKTZMDRjeddeeEv2 GQB96BB6Sq5SKH9PJ5xE09h4o/P7II+rkFgYaFrHmFtBOpgNLCIEV1Q5E31rTj0sNWY5 fpWQ== 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=0kuLMkFyd/46fPSPt5pU5klq65eyzOanXFMXfq1QY+Y=; b=QNLDyV1PyLS8gHC5omgP5Oracjq+sL4tPfHxC2a97YETTbs19qBojqy3ldyw9vqpON CcYPBRBrioe6VjUQFn5dKMfzGvE4TWxhVHwhFiAR+L0ZzO/L9sf+JsNE1Ngle0+Svxqt jp1LY8zAT2D+Mxf1/lyOguwG1PXzIpRt8M+7gfbSCLbAlDltoexZGAn1ZCpPooFKhjxc B4VjImX2IdYd99bDDeEind0CiOyWe9dsSxEltfwoFcAj9waGj8jzR0ZPKmKBKi1032DP r4D7E/L4FR9dVKYFeiApDVfsAebqyc6SyOaGMCVfh+eokKkUOjR7LbLgJdUyH5y0DfU9 d8fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=z0HYXFlX; 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 h8si1675802edb.84.2022.01.25.00.25.19; Tue, 25 Jan 2022 00:25:45 -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=z0HYXFlX; 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 S3421525AbiAYC1F (ORCPT + 99 others); Mon, 24 Jan 2022 21:27:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351000AbiAXTul (ORCPT ); Mon, 24 Jan 2022 14:50:41 -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 EBFDFC019B19; Mon, 24 Jan 2022 11:24:03 -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 B514BB8121F; Mon, 24 Jan 2022 19:24:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9DF7C340E7; Mon, 24 Jan 2022 19:24:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643052241; bh=4vD56yFlgUBC5atksTz50D4Z2EyBrU/6DhqxbVI8tNM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=z0HYXFlXUDqFI/JPxUjk9Vy5wHkU+xn05tf7HLTnyyay4Iq9YcBSO3ZUS/CFHj3Vg +Cyreyk9QfxnyyzRAhMR6fzxSJDVWWMSnfSB6RZx0in/Yz2Ml4GkJPhjNc1Zk3xsGc 4KFp7GX2BJ00I4PE/bdXoXjp/FaCXk+EktQJxNwk= 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 4.19 234/239] scripts/dtc: dtx_diff: remove broken example from help text Date: Mon, 24 Jan 2022 19:44:32 +0100 Message-Id: <20220124183950.543102350@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183943.102762895@linuxfoundation.org> References: <20220124183943.102762895@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 @@ -56,12 +56,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