Received: by 10.223.176.5 with SMTP id f5csp2825152wra; Mon, 5 Feb 2018 10:28:28 -0800 (PST) X-Google-Smtp-Source: AH8x2264cbtyWqrhNx0lRJn0caLABgbkA6q11XZjmQVFnM2K5ADAI94yY5vxemEL6GVFfFMTx1dA X-Received: by 10.101.69.141 with SMTP id o13mr39546840pgq.204.1517855308812; Mon, 05 Feb 2018 10:28:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517855308; cv=none; d=google.com; s=arc-20160816; b=e7+cfGswBWVu1y3Lksv9P7woOjnfWxVaeVAALA/Sw+DxGCXH1KJH8m9z/D31C8dfRq GAKw/8cXZpixalwcsLL5XKJIFAUo0idPe/0irHP2lkR0u++1AoV7QLqEStG4ofeto3E0 FYTA/UBosj+qwipvJT1D5qo4bHzNnSMh21NXeZ3dYgn8wjbMNIQ9DAJwiCYFVfbGiuzx Q9smDrWiuq1UK4QwL1VztDjEMHiqkPsVWClSvzTKZvWuzgwP5RJ4Dd235m/3DWMXgXEE GVQ2kNnbi67edm1zQjRQZJOninvzUSYu2Amhh54c943qKlbWOqjg8rRTQMlvLfMzUpe7 lmSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ruk9+QVCRddjEDzWgQfUSw78CE1pyWzD/qBWatdmJoE=; b=c262hMas9E39APDRNMOjQVZboEZC5KcdAel9rSrIOnmBuSWOVP/FZDO3Cl2ipAKhe6 ytsZjpHSY+pjqaUmuIyREUDKa+K2EnkNbYxYWk1BoUhp85/Y5AHYiatL5l4+HgxasPTy DtUymyEl2HlH57zVPmOiE5cj+VALy4nxjUHHHNKm0DOJW4vzuWo7mzyo3bb1QC/kyx31 n8S07f0+NytC6iay6wzGNIVHbNnnSB+iAu58i/R7GRK/kEleeg0vxTD8Hbbo12Igpjiw OVAJRYWba7cRtfYOPexNUrM2Y3LBPsHNna6gj3o+ITAMx5n5qhNXY6OjenMM+6/+IANh T4DQ== ARC-Authentication-Results: i=1; mx.google.com; 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 z65si116846pgd.688.2018.02.05.10.28.14; Mon, 05 Feb 2018 10:28:28 -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; 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 S1753884AbeBES0N (ORCPT + 99 others); Mon, 5 Feb 2018 13:26:13 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:51448 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753508AbeBESYM (ORCPT ); Mon, 5 Feb 2018 13:24:12 -0500 Received: from localhost (unknown [104.132.1.108]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 5E181105B; Mon, 5 Feb 2018 18:24:05 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Liu Changcheng , Richard Weinberger , Richard Weinberger , Thomas Gleixner , Philippe Ombredanne , NeilBrown , Andrew Morton , Linus Torvalds Subject: [PATCH 4.14 01/64] scripts/faddr2line: fix CROSS_COMPILE unset error Date: Mon, 5 Feb 2018 10:22:20 -0800 Message-Id: <20180205182138.629053172@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180205182138.571333346@linuxfoundation.org> References: <20180205182138.571333346@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Liu, Changcheng commit 4cc90b4cc3d4955f79eae4f7f9d64e67e17b468e upstream. faddr2line hit var unbound error when CROSS_COMPILE isn't set since nounset option is set in bash script. Link: http://lkml.kernel.org/r/20171206013022.GA83929@sofia Fixes: 95a879825419 ("scripts/faddr2line: extend usage on generic arch") Signed-off-by: Liu Changcheng Reported-by: Richard Weinberger Reviewed-by: Richard Weinberger Cc: Thomas Gleixner Cc: Greg Kroah-Hartman Cc: Philippe Ombredanne Cc: NeilBrown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- scripts/faddr2line | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/scripts/faddr2line +++ b/scripts/faddr2line @@ -44,10 +44,10 @@ set -o errexit set -o nounset -READELF="${CROSS_COMPILE}readelf" -ADDR2LINE="${CROSS_COMPILE}addr2line" -SIZE="${CROSS_COMPILE}size" -NM="${CROSS_COMPILE}nm" +READELF="${CROSS_COMPILE:-}readelf" +ADDR2LINE="${CROSS_COMPILE:-}addr2line" +SIZE="${CROSS_COMPILE:-}size" +NM="${CROSS_COMPILE:-}nm" command -v awk >/dev/null 2>&1 || die "awk isn't installed" command -v ${READELF} >/dev/null 2>&1 || die "readelf isn't installed"