Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3602445pxb; Mon, 24 Jan 2022 13:16:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJymu7mgLEOqkw7u0y/I7xohcAXdwAMkonFBO4iWhD0DutxQeWE/maWetMMNQ4PPgImHajXk X-Received: by 2002:a17:90b:250:: with SMTP id fz16mr217999pjb.188.1643058978177; Mon, 24 Jan 2022 13:16:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643058978; cv=none; d=google.com; s=arc-20160816; b=isoguCWv/3Gu8AhtTf5Co2T5RHIUC+7vK50A+VGXEzCwYWWZJvICQ0bcTUQnq+nOKS 2sYEgsaQROf7GQ8Qy/me8Tf/Z4ZrxpAaWf93HEyTZ2lgw8EItkYtxQeQESNWGuQtjvmT K+XSjkXky3ix1uzrwFVmCsgJND1L4g8XAkD0THj9DiMwI3Odb9ogL46Y065zYBmGiXzI 8tILyMiYMlI8USn/uloiS+DHUBpbZiW03HheS9VQY8WX0oChIzq+CloCjeBNu4Vw3q40 r7oXmDB3++Bq0kbdvJ+LUx3kOQiHPK0p4IRtpltbYvBqt+a0wf2tcgbSe80T/h1kmnh+ wEpw== 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=bVNQn65TUmx6A5lhEv1J3osU1VHVW/LYEgreS7vy0jLZMmbKp/0VP6Flpd03I6Gx8X tWKp63hVlFKB2lDZdg/DwybYCmQaNgvpchspwF/GbLzxYIyScJxJ32zHt5C1YWrewTpf 22mYsf2vUmmQmcuITnCGjjUQUg53mqSfxy5pcVLy2Ceo94GkKRgJjgarJtCV8B5RfBbg IqQ+RMXBZzkw8gyqVtW6h1wgi7do9Rqis22kMneOdHpFvFk7T5O4Bhf1oqY6ZBhZTUeP kXGTl84gmyW0pcMQTsEN9D56zRe4Q5z9JIIwvw+/4yYkfdiFHT1iWhsLWNuTvkthixq8 Vg3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BzfnHKaL; 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 w10si14717531pgp.38.2022.01.24.13.16.05; Mon, 24 Jan 2022 13:16:18 -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=BzfnHKaL; 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 S1355412AbiAXUsm (ORCPT + 99 others); Mon, 24 Jan 2022 15:48:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354371AbiAXUYa (ORCPT ); Mon, 24 Jan 2022 15:24:30 -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 7D1F7C0085BD; Mon, 24 Jan 2022 11:40:55 -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 21F59B81239; Mon, 24 Jan 2022 19:40:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50BCAC340E5; Mon, 24 Jan 2022 19:40:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643053253; bh=4vD56yFlgUBC5atksTz50D4Z2EyBrU/6DhqxbVI8tNM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BzfnHKaLpfGrmy0fpiDDD56QR7FKLlYQtC4VREilCOjC9gRo3bfTVPl2IJknuJtXI rLxMIojTNBXG2+Qk6Bo46uEMesFoELr+l5uSQXVCDA/tinmknZxVZFstAwOeIBNgVY 5H1MBaU7Wjp41g1RyA43nOqvSH7tH8ApBllE3Wys= 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.4 316/320] scripts/dtc: dtx_diff: remove broken example from help text Date: Mon, 24 Jan 2022 19:45:00 +0100 Message-Id: <20220124184004.689164480@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183953.750177707@linuxfoundation.org> References: <20220124183953.750177707@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