Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3560836pxb; Mon, 24 Jan 2022 12:14:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJwaZUr8nVgyYBhmOWhpHBKfzcE5aUog6rFYhV8AyhXWy03Lf3418kKo+8WF+na8EqNuclvl X-Received: by 2002:aa7:8190:0:b0:4c0:1332:4c8f with SMTP id g16-20020aa78190000000b004c013324c8fmr15289166pfi.23.1643055275875; Mon, 24 Jan 2022 12:14:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643055275; cv=none; d=google.com; s=arc-20160816; b=Ux3DtOyCNpW1ILD3cbW6gNN9GoHeL4CNu8buk/6gM5zHB1LvXvNJXaqM4POmm8YCDV jksS25uL7gbr5wIP3crhE+UtU8bZm7AtSTUgNWBWRssVzP22tCPOcdxucdC7o518/bOg Xbuf2dkgAYV6j1h1bTjxSgcwotGUSZNh122oyp67GDyzg2bJwG+fnG3a/k6wz7JZp6zP /bRuH7hEIxrx8BDGatZFnDsYDiBwdMVzgIRbrKH5+3G5gKd/Lt29VKN4Dpv+l4pWhMW0 rzdgoRuj0DEATmBBIx20Xg/NKo36ZcbyP6gBt2zgep50A2jxTEtm+HdXmfLumwm1jJ3B v8lw== 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=gNC7dM53vY3WQg9MWu7p28IksfnALa5xhrJnpJTkABlZyiwPGi2q9jq9UyaHxvQGg9 tkP5XVcIRUGrHQHlrG75rH8KPZsVfyBBiU/vgoOlt/YRbnUxTzKCe8tSukdyH15MQlIS yVNl5LXLv+NIWx52HwMNpZBzglQM0PbPGG0A1DMavSUvZlXGpYFQ2mObqROK+6coVSKq hGMaSqAcm/DCl5jns4/irUzdUy4XFjp889oKmKEbf0Kbj3HQuQJe8STdqzZJ86hwWV0p PnZiejN+AVldNm2860dE5iiYfStf2i9Dq9OIVt3Ucdd+JdsofIg6CFWcWeQ4pzddiOvV F8bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tqI8XLMt; 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 ch19si265934pjb.163.2022.01.24.12.14.20; Mon, 24 Jan 2022 12:14:35 -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=tqI8XLMt; 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 S237421AbiAXTR1 (ORCPT + 99 others); Mon, 24 Jan 2022 14:17:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346627AbiAXTHH (ORCPT ); Mon, 24 Jan 2022 14:07:07 -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 2F1F4C0613A7; Mon, 24 Jan 2022 11:01:33 -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 C7E13B8123A; Mon, 24 Jan 2022 19:01:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2B01C36AF5; Mon, 24 Jan 2022 19:01:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643050891; bh=4vD56yFlgUBC5atksTz50D4Z2EyBrU/6DhqxbVI8tNM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tqI8XLMtfrAdozpQ3AFu04cvQywJ1iXapoo7GOnmBfpuzljkxDoDaVnZfvXr9OfXj sVxAVVvToWpDik6CSyaWDGYh9GsS/ocTNbjyzYGqzRjOWZPV0c1UzhfX5Wz9mne7ey igMXE4toGqyH4nrsaZhyrUYlUiqQGj8HVKSGLoWw= 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.9 144/157] scripts/dtc: dtx_diff: remove broken example from help text Date: Mon, 24 Jan 2022 19:43:54 +0100 Message-Id: <20220124183937.334059306@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183932.787526760@linuxfoundation.org> References: <20220124183932.787526760@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