Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp17930077ybl; Thu, 2 Jan 2020 15:02:23 -0800 (PST) X-Google-Smtp-Source: APXvYqz8ITNvvQQoIIR1JW7+7m2eHEVgDJZfFRChFecmt1Im19oFPMuJw5UXkg2Tlg5lbn1NyZdU X-Received: by 2002:a05:6830:1653:: with SMTP id h19mr78182488otr.305.1578006143114; Thu, 02 Jan 2020 15:02:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578006143; cv=none; d=google.com; s=arc-20160816; b=y2Vaf2gHCzRzBq0rd4sWlwSuxfe6xNukZPkxoCxLbi1+zUeN+uOZslgpjeaECAj3wK I8xtHy9i9lP8ZwwDevGI438Uluo2BcsbSKnmjZpYZMrqFSZAiIzHe/MWvUWEkWTm9DYe O3PLJyfu3Dtuqh7uJ0z5ZaeiuDiY1qvM+RPoNtwdifpC5OHQ/QjmmWXoaluTaTWThXbk 6OQVrvnG5bt79a/U0SK91w1VQkpKqkP56kDf3DUa3He2D5xoLOwhRrtEVhDGDiPkI66H pn1bz4c9AUyWUMwCecZYhjSIt8s1O0stRsBTTLsz88P5wbVeMlQMQ6SJwfEmA3lVvNRa GJww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=FvAyspcSvr5lRck2J9jtB6GVEhna8ckxDtNxP/g3gM8=; b=rBW21nZva+d0yYq9OmdeRXh4QOVOTdbq1iUDV4nn7i55ewXfuwzF82NEd734WBFPZO fso9Lx3uefp9qo1cTQmpBtoB5JcBOspOOe5EkjBpaPCQGgRD15g4zqNEhnqTNvuxSsyL sbomT5SG8SM3muWjQCmkA7PyL+aeN41n8pnohlf7zthcYJPiihA8uQnpG08fl+tKnfph SBMyC02lvo52fWW4dK9hmb6PnvWym5pZUCAJwBLb2SorORSWtWf0qbMRRNz91dkVwAjV 8/HTGnusmahUagbkq5jDfPnVvp71OMfTNU/fEjVFBXVc4Qjdf9znoh3MSegOVX6nJ1aq DC4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="lVOFqnu/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j9si29345712otq.317.2020.01.02.15.02.11; Thu, 02 Jan 2020 15:02:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="lVOFqnu/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727393AbgABWMI (ORCPT + 99 others); Thu, 2 Jan 2020 17:12:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:50812 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727359AbgABWMC (ORCPT ); Thu, 2 Jan 2020 17:12:02 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6403121D7D; Thu, 2 Jan 2020 22:12:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578003121; bh=9W+wVeIj4gzjo7OC+82Ir9bWxU7VyprffJUpHoKcAcU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lVOFqnu/ky3Rc4TCMwAD4ZNaCYVUFqcBTnAd3/1sFVE16RHG+OzyAvYNnUG6Xx/9T 8osDLMGZRxYZ2GUhGesGYJ5viAN9hN3qjreMcCDZJxRTTbMbGyjFdWgCtjGBzu9yWE rncQqXIqg7oN/J0FsPxpJED4W5gG7JtWHjQFiK+g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Ellerman , Sasha Levin Subject: [PATCH 5.4 028/191] powerpc/tools: Dont quote $objdump in scripts Date: Thu, 2 Jan 2020 23:05:10 +0100 Message-Id: <20200102215832.984539186@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102215829.911231638@linuxfoundation.org> References: <20200102215829.911231638@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michael Ellerman [ Upstream commit e44ff9ea8f4c8a90c82f7b85bd4f5e497c841960 ] Some of our scripts are passed $objdump and then call it as "$objdump". This doesn't work if it contains spaces because we're using ccache, for example you get errors such as: ./arch/powerpc/tools/relocs_check.sh: line 48: ccache ppc64le-objdump: No such file or directory ./arch/powerpc/tools/unrel_branch_check.sh: line 26: ccache ppc64le-objdump: No such file or directory Fix it by not quoting the string when we expand it, allowing the shell to do the right thing for us. Fixes: a71aa05e1416 ("powerpc: Convert relocs_check to a shell script using grep") Fixes: 4ea80652dc75 ("powerpc/64s: Tool to flag direct branches from unrelocated interrupt vectors") Signed-off-by: Michael Ellerman Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20191024004730.32135-1-mpe@ellerman.id.au Signed-off-by: Sasha Levin --- arch/powerpc/tools/relocs_check.sh | 2 +- arch/powerpc/tools/unrel_branch_check.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/tools/relocs_check.sh b/arch/powerpc/tools/relocs_check.sh index 2b4e959caa36..7b9fe0a567cf 100755 --- a/arch/powerpc/tools/relocs_check.sh +++ b/arch/powerpc/tools/relocs_check.sh @@ -20,7 +20,7 @@ objdump="$1" vmlinux="$2" bad_relocs=$( -"$objdump" -R "$vmlinux" | +$objdump -R "$vmlinux" | # Only look at relocation lines. grep -E '\:' | awk '{print $1}' ) BRANCHES=$( -"$objdump" -R "$vmlinux" -D --start-address=0xc000000000000000 \ +$objdump -R "$vmlinux" -D --start-address=0xc000000000000000 \ --stop-address=${end_intr} | grep -e "^c[0-9a-f]*:[[:space:]]*\([0-9a-f][0-9a-f][[:space:]]\)\{4\}[[:space:]]*b" | grep -v '\<__start_initialization_multiplatform>' | -- 2.20.1