Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp995577yba; Thu, 4 Apr 2019 02:01:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqyR/XUy9JvN40otOCpgRYjc1Yj/WSo8/NSjGEtzwemgC1SEKjRgCvFsUWfuSw0OAkttJO5o X-Received: by 2002:a62:14d7:: with SMTP id 206mr4563050pfu.162.1554368511589; Thu, 04 Apr 2019 02:01:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554368511; cv=none; d=google.com; s=arc-20160816; b=IMMoQr0QamBIrJbkGyQi6cQsdl1UTKhlXSSrWmpJP51fzUVj9i8zq9LMGgQRR6Pjv1 4XrvvDpeQu+rltgev5mhJPOxMWI2p+0ljiPjk4rdXGQjXhzCPMILXvwvnHn+Z5G9oVVf x+/bCoL4hMi36biflfugs+cQF5JGGWmsA5lXN5ieIW2voD9qmUWXvytXbtFIHp49gOer bhLsMf1bG3fntWMPrF0ut/Tm731oY/hnvQhuNsMl+dYFKSf9VYJa1+jgYcv16vpSWsHs /DE27WUNWgd5b/HIhkvJmM5PHVCnQblzT0SI+aGe882kTIp6kQ8xvikuvLRhCo+FPku/ FWMg== 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=N9uk7sx6o572+sWadyL+Skai2YGGAnOvdWtRvS0L+ao=; b=oIA28KO3V49cArfXk43QmKjTMiwOgwiWULXmlue5pfp7Q/soYYMpSZpFqc4ISeA0FP gRhaGVEDeWGPAP7i7Swy3cIxxLqhji1pWaiW2+FJ0bLrQclQRCcqDy8qHNYC1cNVfw3a Z/Za61gZJI6InecQ7ZEc75B3Di0RSbkVG4tWN2FWnKy1BjJZJpMuIj3WowQpESGoj7io V6zh2W5yQaHHO1zy5apfZlGWNtjG7j6HQnh6UAy0l3EAQ9qKP/UZWdYt1NdX3QrI9t9+ XpHnsoPdh1l996CavjMAvoxfL8g0riJeR0xtmMtj2396kL/sCvA/4Rh0CLbBDcrIUTgR +yCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nHwXNmnl; 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 o16si16499495pgc.327.2019.04.04.02.01.36; Thu, 04 Apr 2019 02:01:51 -0700 (PDT) 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=nHwXNmnl; 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 S1731148AbfDDI7v (ORCPT + 99 others); Thu, 4 Apr 2019 04:59:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:36270 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731131AbfDDI7s (ORCPT ); Thu, 4 Apr 2019 04:59:48 -0400 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 3C4092147C; Thu, 4 Apr 2019 08:59:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554368387; bh=SporxTRfM0/QzoeB5LOfPjJwX+8pCsCf9fI5003B0N8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nHwXNmnl3fbn8plTGyL7mDwNr5y4zqnFy0WepNH+K48wSnwITqqumQCH9/3ntRLDb 3xSjxYUdHSYGwdR/iecBCGvAW4wDq49BsCUIbiuGcy2q1k8QZJsirRXGw2xz822dYT wCNVi6V/MJktWkSve1Nelq2oHH/JIydmoIKYkgOQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masahiro Yamada , Sasha Levin Subject: [PATCH 4.19 006/187] h8300: use cc-cross-prefix instead of hardcoding h8300-unknown-linux- Date: Thu, 4 Apr 2019 10:45:43 +0200 Message-Id: <20190404084603.392944979@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084603.119654039@linuxfoundation.org> References: <20190404084603.119654039@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit fc2b47b55f17fd996f7a01975ce1c33c2f2513f6 ] It believe it is a bad idea to hardcode a specific compiler prefix that may or may not be installed on a user's system. It is annoying when testing features that should not require compilers at all. For example, mrproper, headers_install, etc. should work without any compiler. They look like follows on my machine. $ make ARCH=h8300 mrproper ./scripts/gcc-version.sh: line 26: h8300-unknown-linux-gcc: command not found ./scripts/gcc-version.sh: line 27: h8300-unknown-linux-gcc: command not found make: h8300-unknown-linux-gcc: Command not found make: h8300-unknown-linux-gcc: Command not found [ a bunch of the same error messages continue ] $ make ARCH=h8300 headers_install ./scripts/gcc-version.sh: line 26: h8300-unknown-linux-gcc: command not found ./scripts/gcc-version.sh: line 27: h8300-unknown-linux-gcc: command not found make: h8300-unknown-linux-gcc: Command not found HOSTCC scripts/basic/fixdep make: h8300-unknown-linux-gcc: Command not found WRAP arch/h8300/include/generated/uapi/asm/kvm_para.h [ snip ] The solution is to delete this line, or to use cc-cross-prefix like some architectures do. I chose the latter as a moderate fixup. I added an alternative 'h8300-linux-' because it is available at: https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/8.1.0/ Signed-off-by: Masahiro Yamada Signed-off-by: Sasha Levin --- arch/h8300/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/h8300/Makefile b/arch/h8300/Makefile index 58634e6bae92..55f251810129 100644 --- a/arch/h8300/Makefile +++ b/arch/h8300/Makefile @@ -27,7 +27,7 @@ KBUILD_LDFLAGS += $(ldflags-y) CHECKFLAGS += -msize-long ifeq ($(CROSS_COMPILE),) -CROSS_COMPILE := h8300-unknown-linux- +CROSS_COMPILE := $(call cc-cross-prefix, h8300-unknown-linux- h8300-linux-) endif core-y += arch/$(ARCH)/kernel/ arch/$(ARCH)/mm/ -- 2.19.1