From: Allen Pais Date: Wed, 14 Jun 2017 07:12:36 +0000 (+0530) Subject: arch/sparc: Define config parameter CPU_BIG_ENDIAN X-Git-Tag: v4.1.12-104.0.20170618_1145~30 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6e89f566d32e4fae3fc608a29508fbc6770172a8;p=users%2Fjedix%2Flinux-maple.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 (cherry picked from commit 97d9f969161d79e6a4bba247e67ce731ff861f79) Signed-off-by: Babu Moger Orabug: 26183741 Signed-off-by: Allen Pais --- diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index 83820b13a8b61..b338d6a4f17ec 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig @@ -96,6 +96,9 @@ config ARCH_DEFCONFIG config ARCH_PROC_KCORE_TEXT def_bool y +config CPU_BIG_ENDIAN + def_bool y + config IOMMU_HELPER bool default y if SPARC64