Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp703594imj; Wed, 13 Feb 2019 16:06:00 -0800 (PST) X-Google-Smtp-Source: AHgI3IbxfAWvVC+lHdTGH2ykeYJ7Ny4coGxs2SGT9O1munWSXWjwiaClqoUYRTKkA1Lr8WcU6Gd2 X-Received: by 2002:a62:2781:: with SMTP id n123mr924037pfn.138.1550102760182; Wed, 13 Feb 2019 16:06:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550102760; cv=none; d=google.com; s=arc-20160816; b=qYtjr3l36hsXe6wcjSKCSk7sVzV7NHiUcMZdKYR6z4+7MsqK3YqTSaZ9hkIUqt4MEN 9XvF+UU0FjervbzUzqixO9GCksA9CEGjXaIiuec1QHC29VwKYXWEv9uakd0k0TD++inm rKfWGuE2UJmZRctEjNbypHe5og16dZuUbFRqr2S/vLW9JjO/EIDG9rDPvVYjisqC88Ti oe+3sHENHR1rlrHkCSSy1Wm7IAWzxiHzXw+7MITuxZuGBvQrgZORaBMUcIUcxYYrGLka IG7aXH4GiLw2Z3QDH1Q3lmr7DhsoAg2Do8ofMkNdHIIJCRXHpSjuJ5zzio0oRWFOUahV 6Y8A== 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=RZ5he/77Opx4wGzEh1+plU0gsZqcaECtiKG2vMtKzJ4=; b=CV5hefKvTa5brkCL+W2mOxFW21IcgBX1nFxMDLyUjWwf7RFNGQLOuO4dQcdApDNcfH X8luTAVYyPOU47LBAQzvWGG5uX2s5xSQVLikPP9trrIUsbzbnr5TQWuOs0Bd9UE7BxTb U/cCQJBFCzq646N1r+usCIRQH7v3++OM3C6XDG9ufcfosxFXLrLhD4PFQSWGGMJXpZH+ tlAndwwC1DnHg3Z2c4pNJfePS0M1zhaMevZwHTgOV3ZwSNJGjKlpkrI4l0n0uB+l191y ozdH5A+zT42gWBNsL2Fhw3UNljfx815YwNVM9GdHp7SSjQxet1UrlATLMO54pBoUhvx9 xxQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZhtqMmEh; 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 w15si767499plk.357.2019.02.13.16.05.44; Wed, 13 Feb 2019 16:06:00 -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=ZhtqMmEh; 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 S2405823AbfBMSnN (ORCPT + 99 others); Wed, 13 Feb 2019 13:43:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:41736 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405808AbfBMSnK (ORCPT ); Wed, 13 Feb 2019 13:43:10 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 A3005222D8; Wed, 13 Feb 2019 18:43:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550083389; bh=UUgbRxNhkruB8W0cVw0zBQ+pkPhZkiU03TYeuMFHVtY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZhtqMmEhk3aLCIm6mATcdtjt76UyUY7zJLAvbtoJy3vuxgoMfjImAlkWc0wH6iWRM RiTs986VLpkhinvicG1JaxIDkFiZ4MM0n3YF4dJ82L5nusnfzs4empA5dUn9PS9TZA 62C6hZdP7orJvcaM10SyLG38jYIFUSIfMEbiUAf0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Paul Burton , Kevin Hilman , Guenter Roeck , "Maciej W. Rozycki" , linux-mips@vger.kernel.org Subject: [PATCH 4.19 21/44] MIPS: VDSO: Use same -m%-float cflag as the kernel proper Date: Wed, 13 Feb 2019 19:38:22 +0100 Message-Id: <20190213183653.508709791@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190213183651.648060257@linuxfoundation.org> References: <20190213183651.648060257@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. ------------------ From: Paul Burton commit 0648e50e548d881d025b9419a1a168753c8e2bf7 upstream. The MIPS VDSO build currently doesn't provide the -msoft-float flag to the compiler as the kernel proper does. This results in an attempt to use the compiler's default floating point configuration, which can be problematic in cases where this is incompatible with the target CPU's -march= flag. For example decstation_defconfig fails to build using toolchains in which gcc was configured --with-fp-32=xx with the following error: LDS arch/mips/vdso/vdso.lds cc1: error: '-march=r3000' requires '-mfp32' make[2]: *** [scripts/Makefile.build:379: arch/mips/vdso/vdso.lds] Error 1 The kernel proper avoids this error because we build with the -msoft-float compiler flag, rather than using the compiler's default. Pass this flag through to the VDSO build so that it too becomes agnostic to the toolchain's floating point configuration. Note that this is filtered out from KBUILD_CFLAGS rather than simply always using -msoft-float such that if we switch the kernel to use -mno-float in the future the VDSO will automatically inherit the change. The VDSO doesn't actually include any floating point code, and its .MIPS.abiflags section is already manually generated to specify that it's compatible with any floating point ABI. As such this change should have no effect on the resulting VDSO, apart from fixing the build failure for affected toolchains. Signed-off-by: Paul Burton Reported-by: Kevin Hilman Reported-by: Guenter Roeck Tested-by: Kevin Hilman References: https://lore.kernel.org/linux-mips/1477843551-21813-1-git-send-email-linux@roeck-us.net/ References: https://kernelci.org/build/id/5c4e4ae059b5142a249ad004/logs/ Fixes: ebb5e78cc634 ("MIPS: Initial implementation of a VDSO") Cc: Maciej W. Rozycki Cc: linux-mips@vger.kernel.org Cc: stable@vger.kernel.org # v4.4+ Signed-off-by: Greg Kroah-Hartman --- arch/mips/vdso/Makefile | 1 + 1 file changed, 1 insertion(+) --- a/arch/mips/vdso/Makefile +++ b/arch/mips/vdso/Makefile @@ -8,6 +8,7 @@ ccflags-vdso := \ $(filter -E%,$(KBUILD_CFLAGS)) \ $(filter -mmicromips,$(KBUILD_CFLAGS)) \ $(filter -march=%,$(KBUILD_CFLAGS)) \ + $(filter -m%-float,$(KBUILD_CFLAGS)) \ -D__VDSO__ ifeq ($(cc-name),clang)