Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3975896pxb; Tue, 25 Jan 2022 00:26:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJyy2kXKySyH2/LilkYoA75a5ZNBGBK0PZIwSTUuSS3tQ8dNgjmIWQgih3OKf5DyzweBiRv+ X-Received: by 2002:a62:7602:0:b0:4c6:864b:6400 with SMTP id r2-20020a627602000000b004c6864b6400mr17644868pfc.14.1643099171538; Tue, 25 Jan 2022 00:26:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643099171; cv=none; d=google.com; s=arc-20160816; b=0RCY2GfI1L3PZU+h9n0ISmTzXFHUQNkqFrAh4gFtffFCnZpT30R93P/hBVMWeJzy1Y wsGWMhIeL24NyM0wq5DTmXRaJhnCLtgdjEYoi3mAk2Af38s8f5jNARuuaGwhVqcbmp3q scu07O099FMkKjzYi+dT+rm4pdpC+ZcRSVVSGCNQ2+DaPZm5UqeFRhaUIxOk/319vY5G cC0Tl+lyvr7vf/LAfqJGmdjGxGyqPemughmpt/mqwBJedCKlaOJNTR/EGqsXDTcWdIpN /o6rBaZ1zHE7LkMlUGJ7MklMpX3GFzKzS4jhzFFBrTE0LWxw2ubpypyk7ZckTJ/JXVua /1sg== 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=uoNkQ2lMtl3tmRB4fwew4qJtkVa0zk2RmYU9zdu7MDublMeuIaoVyQuVPhGFspxjL+ kpUovBHM8HBOEbeTRfsHjhVKrAMZU6b8g+m/hmd+S9AL08H34KYCbw8nxI33grMjqZmK 3vmtPU20SGH1Av/79xZK1Bg4Wk0C75aCJf7UhhXdKA0oHUIpwNuWztZCuzrWFwJ/KMcQ Unr0sYslK4dpipQKaEmR8MAN7vWh4h8HQLL+7LGAetme52BadSyZgs+1jw+5HX7W5PyR K2SpBicR1ar8UBUbAXzQnLX0uA9MW0gS99Ofr2vH0BnmoMHsgaijQCVM9pc4+tqgifaa xadg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pVO0uHo6; 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 i21si12952951pgk.309.2022.01.25.00.25.59; Tue, 25 Jan 2022 00:26:11 -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=pVO0uHo6; 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 S3421979AbiAYC3g (ORCPT + 99 others); Mon, 24 Jan 2022 21:29:36 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:36132 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353904AbiAXUJR (ORCPT ); Mon, 24 Jan 2022 15:09:17 -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 22C266131D; Mon, 24 Jan 2022 20:09:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D26F6C340E7; Mon, 24 Jan 2022 20:09:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643054956; bh=yu+IE5+gItyP4e2FuDlpjTgxMD8d6Lf0tXsdlecCLis=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pVO0uHo6LQESZ87fvNf0/m7MXcHpOYI+TVmnpIxLXmrXz+SUZ/8SQC68SdvzXHQIK 4MpMfdIF3G/OG76/Rab7EU7TT8WJG0ey4eceYRerFUEGo49Lzvt71+5PVmmPKAgyHf d9elk8Gzvfm52d9Nk9kUoXvXbRYu6ngF1v451RoA= 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.10 558/563] scripts/dtc: dtx_diff: remove broken example from help text Date: Mon, 24 Jan 2022 19:45:23 +0100 Message-Id: <20220124184043.747104714@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184024.407936072@linuxfoundation.org> References: <20220124184024.407936072@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