Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: jazz: always allow little-endian builds

The kernel test robot keeps reporting the same bug when it
shows up in new files after random unrelated patches:

In file included from arch/mips/include/uapi/asm/byteorder.h:13,
from arch/mips/include/asm/bitops.h:20,
from include/linux/bitops.h:26,
from include/linux/kernel.h:12,
from include/linux/clk.h:13,
from drivers/base/regmap/regmap-mmio.c:7:
include/linux/byteorder/big_endian.h:8:2: warning: #warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN [-Wcpp]
8 | #warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN
| ^~~~~~~
drivers/base/regmap/regmap-mmio.c: In function 'regmap_mmio_gen_context':
>> drivers/base/regmap/regmap-mmio.c:274:2: error: duplicate case value
274 | case REGMAP_ENDIAN_NATIVE:
| ^~~~
drivers/base/regmap/regmap-mmio.c:246:2: note: previously used here
246 | case REGMAP_ENDIAN_NATIVE:

The problem is that some randconfig builds end up on the MIPS jazz
platform with neither CONFIG_CPU_BIG_ENDIAN nor CONFIG_CPU_LITTLE_ENDIAN
because no specific machine is selected. As it turns out, all jazz
machines support little-endian kernels, so this can simply be allowed
globally.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

authored by

Arnd Bergmann and committed by
Thomas Bogendoerfer
aadfe4b5 919af8b9

+1 -3
+1
arch/mips/Kconfig
··· 409 409 select SYS_SUPPORTS_32BIT_KERNEL 410 410 select SYS_SUPPORTS_64BIT_KERNEL 411 411 select SYS_SUPPORTS_100HZ 412 + select SYS_SUPPORTS_LITTLE_ENDIAN 412 413 help 413 414 This a family of machines based on the MIPS R4030 chipset which was 414 415 used by several vendors to build RISC/os and Windows NT workstations.
-3
arch/mips/jazz/Kconfig
··· 3 3 bool "Support for Acer PICA 1 chipset" 4 4 depends on MACH_JAZZ 5 5 select DMA_NONCOHERENT 6 - select SYS_SUPPORTS_LITTLE_ENDIAN 7 6 help 8 7 This is a machine with a R4400 133/150 MHz CPU. To compile a Linux 9 8 kernel that runs on these, say Y here. For details about Linux on ··· 14 15 depends on MACH_JAZZ 15 16 select DMA_NONCOHERENT 16 17 select SYS_SUPPORTS_BIG_ENDIAN 17 - select SYS_SUPPORTS_LITTLE_ENDIAN 18 18 help 19 19 This is a machine with a R4000 100 MHz CPU. To compile a Linux 20 20 kernel that runs on these, say Y here. For details about Linux on ··· 24 26 bool "Support for Olivetti M700-10" 25 27 depends on MACH_JAZZ 26 28 select DMA_NONCOHERENT 27 - select SYS_SUPPORTS_LITTLE_ENDIAN 28 29 help 29 30 This is a machine with a R4000 100 MHz CPU. To compile a Linux 30 31 kernel that runs on these, say Y here. For details about Linux on