From: Babu Moger Date: Wed, 24 May 2017 23:55:11 +0000 (-0600) Subject: arch/sparc: Define config parameter CPU_BIG_ENDIAN X-Git-Tag: rel_imx_4.19.35_1.1.0~12196^2~9^2~4 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=97d9f969161d79e6a4bba247e67ce731ff861f79;p=linux.git arch/sparc: Define config parameter CPU_BIG_ENDIAN Found this problem while enabling queued rwlock on SPARC. The parameter CONFIG_CPU_BIG_ENDIAN is used to clear the specific byte in qrwlock structure. Without this parameter, we clear the wrong byte. Here is the code. static inline u8 *__qrwlock_write_byte(struct qrwlock *lock) { return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN); } Define CPU_BIG_ENDIAN for SPARC to fix it. Signed-off-by: Babu Moger Reviewed-by: HÃ¥kon Bugge Reviewed-by: Jane Chu Reviewed-by: Shannon Nelson Reviewed-by: Vijay Kumar Signed-off-by: David S. Miller --- diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index 58243b0d21c0..eb213b5000c8 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig @@ -92,6 +92,9 @@ config ARCH_DEFCONFIG config ARCH_PROC_KCORE_TEXT def_bool y +config CPU_BIG_ENDIAN + def_bool y + config ARCH_ATU bool default y if SPARC64