Skip to content

Commit aadfe4b

Browse files
arndbtsbogend
authored andcommitted
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 <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 919af8b commit aadfe4b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

arch/mips/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ config MACH_JAZZ
409409
select SYS_SUPPORTS_32BIT_KERNEL
410410
select SYS_SUPPORTS_64BIT_KERNEL
411411
select SYS_SUPPORTS_100HZ
412+
select SYS_SUPPORTS_LITTLE_ENDIAN
412413
help
413414
This a family of machines based on the MIPS R4030 chipset which was
414415
used by several vendors to build RISC/os and Windows NT workstations.

arch/mips/jazz/Kconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ config ACER_PICA_61
33
bool "Support for Acer PICA 1 chipset"
44
depends on MACH_JAZZ
55
select DMA_NONCOHERENT
6-
select SYS_SUPPORTS_LITTLE_ENDIAN
76
help
87
This is a machine with a R4400 133/150 MHz CPU. To compile a Linux
98
kernel that runs on these, say Y here. For details about Linux on
@@ -15,7 +14,6 @@ config MIPS_MAGNUM_4000
1514
depends on MACH_JAZZ
1615
select DMA_NONCOHERENT
1716
select SYS_SUPPORTS_BIG_ENDIAN
18-
select SYS_SUPPORTS_LITTLE_ENDIAN
1917
help
2018
This is a machine with a R4000 100 MHz CPU. To compile a Linux
2119
kernel that runs on these, say Y here. For details about Linux on
@@ -26,7 +24,6 @@ config OLIVETTI_M700
2624
bool "Support for Olivetti M700-10"
2725
depends on MACH_JAZZ
2826
select DMA_NONCOHERENT
29-
select SYS_SUPPORTS_LITTLE_ENDIAN
3027
help
3128
This is a machine with a R4000 100 MHz CPU. To compile a Linux
3229
kernel that runs on these, say Y here. For details about Linux on

0 commit comments

Comments
 (0)