]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
MIPS: ip22: Fix ip28 build for modern gcc
authorArnd Bergmann <arnd@arndb.de>
Tue, 17 Jan 2017 15:18:46 +0000 (16:18 +0100)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 20 Mar 2017 11:24:55 +0000 (05:24 -0600)
commit6129b2bb49b5223b36cc68386e69230bf2449f05
treeab7bb3450226fb1558f1c734aa2db15224702811
parent735d3abed9033b511080e7eb289ae30d5e5c6f69
MIPS: ip22: Fix ip28 build for modern gcc

BugLink: http://bugs.launchpad.net/bugs/1674288
commit 23ca9b522383d3b9b7991d8586db30118992af4a upstream.

kernelci reports a failure of the ip28_defconfig build after upgrading its
gcc version:

arch/mips/sgi-ip22/Platform:29: *** gcc doesn't support needed option -mr10k-cache-barrier=store.  Stop.

The problem apparently is that the -mr10k-cache-barrier=store option is now
rejected for CPUs other than r10k. Explicitly including the CPU in the
check fixes this and is safe because both options were introduced in
gcc-4.4.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/15049/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/mips/sgi-ip22/Platform