Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1560719

[PATCH 12/13] MIPS: ip22: fix ip28 build for modern gcc

From Arnd Bergmann <arnd@arndb.de>
Newsgroups linux.kernel
Subject [PATCH 12/13] MIPS: ip22: fix ip28 build for modern gcc
Date 2017-01-17 16:30 +0100
Message-ID <t0DRW-jr-69@gated-at.bofh.it> (permalink)
References <t0DRU-jr-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---
 arch/mips/sgi-ip22/Platform | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/sgi-ip22/Platform b/arch/mips/sgi-ip22/Platform
index b7a4b7e04c38..e8f6b3a42a48 100644
--- a/arch/mips/sgi-ip22/Platform
+++ b/arch/mips/sgi-ip22/Platform
@@ -25,7 +25,7 @@ endif
 # Simplified: what IP22 does at 128MB+ in ksegN, IP28 does at 512MB+ in xkphys
 #
 ifdef CONFIG_SGI_IP28
-  ifeq ($(call cc-option-yn,-mr10k-cache-barrier=store), n)
+  ifeq ($(call cc-option-yn,-march=r10000 -mr10k-cache-barrier=store), n)
       $(error gcc doesn't support needed option -mr10k-cache-barrier=store)
   endif
 endif
-- 
2.9.0

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 01/13] MIPS: fix modversions Arnd Bergmann <arnd@arndb.de> - 2017-01-17 16:30 +0100
  [PATCH 03/13] MIPS: 'make -s' should be silent Arnd Bergmann <arnd@arndb.de> - 2017-01-17 16:30 +0100
  [PATCH 10/13] MIPS: loongson64: fix empty-body warning in dma_alloc Arnd Bergmann <arnd@arndb.de> - 2017-01-17 16:30 +0100
  [PATCH 06/13] MIPS: Lantiq: Fix another request_mem_region() return code check Arnd Bergmann <arnd@arndb.de> - 2017-01-17 16:30 +0100
  [PATCH 09/13] MIPS: ralink: remove unused rt*_wdt_reset functions Arnd Bergmann <arnd@arndb.de> - 2017-01-17 16:30 +0100
  [PATCH 13/13] MIPS: avoid old-style declaration Arnd Bergmann <arnd@arndb.de> - 2017-01-17 16:30 +0100
  [PATCH 02/13] MIPS: VDSO: avoid duplicate CAC_BASE definition Arnd Bergmann <arnd@arndb.de> - 2017-01-17 16:30 +0100
  [PATCH 12/13] MIPS: ip22: fix ip28 build for modern gcc Arnd Bergmann <arnd@arndb.de> - 2017-01-17 16:30 +0100

csiph-web