From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D8B4F224CC; Mon, 6 Jan 2025 15:21:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736176889; cv=none; b=Bj8mM/zAw5U116pG+zu+LONOXAGH58Bv/dcqEuAG/JE1t5aCwIMpGL00SbrmlYsOeKH/cj8pWo3DXLtcQc7U05xarSkcY3rZeufAQvdkwWvaVnWG5TS9oZSLZClW9n/G/Co6uTekcpHeqs1bRtgX7n8XaPw/8l7ry/Y+5WaBgf4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736176889; c=relaxed/simple; bh=5Wo4BchbMNlTppw6DbEDBemjyhPFnpRiFw3lt9hr9HI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=MLukCz4YU/P58793J1YGyQe/a+VPZxxIjxD9LDHP4IveLX6YeX8t9MRPTnyPgKzcf/2Gj7V+tqnp3W9s/d5cjRuJFcj4IAPMf7ph0cZmM/uxWL8hykzZd6Eq3s9fS8njFdWYlah3BZLa6uyQaqEd4U8E6YAGXz28pXi4mIit1eQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Gfbm/36B; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Gfbm/36B" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A03FC4CEE1; Mon, 6 Jan 2025 15:21:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736176889; bh=5Wo4BchbMNlTppw6DbEDBemjyhPFnpRiFw3lt9hr9HI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Gfbm/36BMajtpCQGUpBiJwHBj9lRJiHuuHBojYgUmSUjGAdWbnaLJwOjUql66XNaQ ly/BhGfCnUbgRJoiBULq80VpqzPQ/S3wGYLjQ17nSyzbzuUvjktiwURPw2/z4xCKyg PUlimzpPLTntyFVDNtkLQNGPn+XDo6F0OFtIO0TY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Leon Romanovsky , Vineet Gupta , Sasha Levin Subject: [PATCH 6.1 64/81] ARC: build: Try to guess GCC variant of cross compiler Date: Mon, 6 Jan 2025 16:16:36 +0100 Message-ID: <20250106151131.851191748@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250106151129.433047073@linuxfoundation.org> References: <20250106151129.433047073@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Leon Romanovsky [ Upstream commit 824927e88456331c7a999fdf5d9d27923b619590 ] ARC GCC compiler is packaged starting from Fedora 39i and the GCC variant of cross compile tools has arc-linux-gnu- prefix and not arc-linux-. This is causing that CROSS_COMPILE variable is left unset. This change allows builds without need to supply CROSS_COMPILE argument if distro package is used. Before this change: $ make -j 128 ARCH=arc W=1 drivers/infiniband/hw/mlx4/ gcc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead gcc: error: unrecognized command-line option ‘-mmedium-calls’ gcc: error: unrecognized command-line option ‘-mlock’ gcc: error: unrecognized command-line option ‘-munaligned-access’ [1] https://packages.fedoraproject.org/pkgs/cross-gcc/gcc-arc-linux-gnu/index.html Signed-off-by: Leon Romanovsky Signed-off-by: Vineet Gupta Signed-off-by: Sasha Levin --- arch/arc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc/Makefile b/arch/arc/Makefile index 329400a1c355..8e6f52c6626d 100644 --- a/arch/arc/Makefile +++ b/arch/arc/Makefile @@ -6,7 +6,7 @@ KBUILD_DEFCONFIG := haps_hs_smp_defconfig ifeq ($(CROSS_COMPILE),) -CROSS_COMPILE := $(call cc-cross-prefix, arc-linux- arceb-linux-) +CROSS_COMPILE := $(call cc-cross-prefix, arc-linux- arceb-linux- arc-linux-gnu-) endif cflags-y += -fno-common -pipe -fno-builtin -mmedium-calls -D__linux__ -- 2.39.5