Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3563393pxb; Mon, 24 Jan 2022 12:17:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJzkheaDERPsT3fN1GRSaFeca0xjgIZe2aPrdNfOvOkYzqA+fRYSR3L6SW8QftTadGeGEF5Y X-Received: by 2002:a17:902:7c10:b0:14a:3fd4:29fb with SMTP id x16-20020a1709027c1000b0014a3fd429fbmr16039427pll.69.1643055478105; Mon, 24 Jan 2022 12:17:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643055478; cv=none; d=google.com; s=arc-20160816; b=pmlTHhDphNK3hCSuleWjkOc9ZNaRb5fICPzGvOWUWOGrab/G2fBLiFobpqEHjCfWQ/ BW3OdxO990j05JTyCUu+oUVVEZ16haGWADfa7GQ0iRPxVq+CWSKqJcuvDWBlahdFEFr3 phDPSZiKBePB3HavpWXDklRQG7ycIWaODddstRRPw9uLLlOE0x8Y06hvt8fKTuS/3f3R mY4CXHtxN7zzPAkkFa/kjJMHhVVSjQSO2j3LYY0BvSUikmRFQ9V7oVQyoFXcp/DjA5Mq vj75AviDVdVm80kc9zcixbQ3ycoh0rdtOdduOeRn+09284W+NdTjjkA4XjtXtIiyq71o vyvA== 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=H1mUhc6KZ5j48NXgbK72cy6OlrYpE0Sj293KLjirElxw9xALvABKR6H5plxZC5la2Q OfDB+teorNKCx5YLA9Xu7oTz2uVOm+MnGZLJu1yQXJjAOrs1EfThH0AGkBZyRAo+RORQ VPbdq6CZgeBDGRIidPV0GI45z5aQIEX38IqC/WBWBmIONjCMilyDJ3pI4XicVxfVgWnn znvyq1Z8mvkbRB9onwyDl3JSpcloBsXr/SxFo7dLeEHMxA00OdEKardAbDTqAXw2/P5/ Dq3HFefXx88R5n2J8l8/rPK+ydWKjX0mCIDpd0SOCzRVGVWVxduQMfBc0PQ7eWkbLGR7 BhXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LBqcQDqk; 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 nl12si366204pjb.6.2022.01.24.12.17.44; Mon, 24 Jan 2022 12: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=LBqcQDqk; 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 S1349202AbiAXTU0 (ORCPT + 99 others); Mon, 24 Jan 2022 14:20:26 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:41430 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344587AbiAXTLx (ORCPT ); Mon, 24 Jan 2022 14:11:53 -0500 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 dfw.source.kernel.org (Postfix) with ESMTPS id D5A09612C5; Mon, 24 Jan 2022 19:11:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E8D6C340E5; Mon, 24 Jan 2022 19:11:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643051511; bh=4vD56yFlgUBC5atksTz50D4Z2EyBrU/6DhqxbVI8tNM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LBqcQDqk9bjePlFPGjw0Sd+Eh7ro2pT/fH0FIfHt+lA0lCCJv4/em2dmFy6pr9S/E 5saap948RUUWYBfyosQpk8IWcbBkNhasiScIL3qQ1ARS7i10rRWgywFTMp9ODMfOdT QLmlin/m2b8Jd0mu3FNHX8ZxB094HHz6CEO7ZGCE= 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.14 178/186] scripts/dtc: dtx_diff: remove broken example from help text Date: Mon, 24 Jan 2022 19:44:13 +0100 Message-Id: <20220124183942.837047790@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183937.101330125@linuxfoundation.org> References: <20220124183937.101330125@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