From nobody Mon May 25 06:42:36 2026 Received: from relay5.mymailcheap.com (relay5.mymailcheap.com [159.100.241.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B3BE9405C55; Sun, 17 May 2026 04:14:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.100.241.64 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778991295; cv=none; b=WGfXnJw0XD6iB2B7VbGhYoFoYYQs6FfT/p/ixBdyM0CKI03rIfym8DlDav7+bXKxerR8HVViyNWIkLCFnthPBneqo3hmgYynG023SZOzfFdXZrJpNRlQ+if2Zzg9fdXFXyK5Lkj1cL1tMrSjzFWkXzAywNoDJcKlfsNF5RpKJrM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778991295; c=relaxed/simple; bh=HGkumJWNS9Ej6U7iitanw5ybQDQ/Vb3NEvzDetFF/Z0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=F2Bd4xcPbiN8hlRW9h1p3itBozjZLTncuZWsOYbBUPe7/Qp0t0y1LPyPQIxuF+FsnI94fLgnACo0FVvEmBiGbZOuYqTETLXW9i/1Sma4ZyF1vzvN/n9ByROU55dsUoniXOGIZOnXHZ3R+JLsFTzAP5c41SHLwB1S5ql3RDH3aMY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aosc.io; spf=pass smtp.mailfrom=aosc.io; dkim=pass (1024-bit key) header.d=aosc.io header.i=@aosc.io header.b=NOVEVCXT; arc=none smtp.client-ip=159.100.241.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aosc.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aosc.io Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=aosc.io header.i=@aosc.io header.b="NOVEVCXT" Received: from relay3.mymailcheap.com (relay3.mymailcheap.com [217.182.66.161]) by relay5.mymailcheap.com (Postfix) with ESMTPS id 0736820112; Sun, 17 May 2026 04:14:46 +0000 (UTC) Received: from nf2.mymailcheap.com (nf2.mymailcheap.com [54.39.180.165]) by relay3.mymailcheap.com (Postfix) with ESMTPS id 175413EAB5; Sun, 17 May 2026 04:14:38 +0000 (UTC) Received: from mail20.mymailcheap.com (mail20.mymailcheap.com [51.83.111.147]) by nf2.mymailcheap.com (Postfix) with ESMTPSA id 281AF40073; Sun, 17 May 2026 04:14:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aosc.io; s=default; t=1778991276; bh=HGkumJWNS9Ej6U7iitanw5ybQDQ/Vb3NEvzDetFF/Z0=; h=From:To:Cc:Subject:Date:From; b=NOVEVCXTSliONS2cYFmcJ/jhdQJURvY6pr3J1IjBKZqbgikpMT61/8kHEtaLK5J/O lgtMIpecF94u1qzxdY/gG+fEDvJtkk/N1QjM0yziwtdy+pDdx89wiyfV7EW3h27Qyf jfynIDkShyp+gsE8b9woomuVNE89XHcwHwJJ34YI= Received: from JellyFocals.localdomain (flh2-133-200-255-32.tky.mesh.ad.jp [133.200.255.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail20.mymailcheap.com (Postfix) with ESMTPSA id D2345405F3; Sun, 17 May 2026 04:14:30 +0000 (UTC) From: Mingcong Bai To: linux-kernel@vger.kernel.org Cc: Xi Ruoyao , Kexy Biscuit , Mingcong Bai , stable@vger.kernel.org, kernel test robot , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , "Christophe Leroy (CS GROUP)" , linuxppc-dev@lists.ozlabs.org Subject: [PATCH] powerpc: define __LITTLE_ENDIAN and __BIG_ENDIAN for math-emu Date: Sun, 17 May 2026 12:14:21 +0800 Message-ID: <20260517041423.71243-1-jeffbai@aosc.io> X-Mailer: git-send-email 2.52.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 281AF40073 X-Spamd-Result: default: False [0.70 / 10.00]; MID_CONTAINS_FROM(1.00)[]; R_SPF_ALLOW(-0.10)[+mx]; R_DKIM_ALLOW(-0.10)[aosc.io:s=default]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_ONE(0.00)[1]; DMARC_POLICY_ALLOW(0.00)[aosc.io,quarantine]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_SEVEN(0.00)[11]; RCVD_TLS_ALL(0.00)[]; FREEMAIL_CC(0.00)[xry111.site,aosc.io,vger.kernel.org,intel.com,linux.ibm.com,ellerman.id.au,gmail.com,kernel.org,lists.ozlabs.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; LOCAL_OUTBOUND(0.00)[]; DKIM_TRACE(0.00)[aosc.io:+] X-Rspamd-Action: no action X-Rspamd-Server: nf2.mymailcheap.com Similar to commit b929926f01f2 ("sh: define __BIG_ENDIAN for math-emu"), define __LITTLE_ENDIAN and __BIG_ENDIAN as 0 to mitigate build-time warnings: ./include/math-emu/double.h:59:21: error: =E2=80=98__BIG_ENDIAN=E2=80=99 = is not defined, evaluates to =E2=80=980=E2=80=99 [-Werror=3Dundef] 59 | #if __BYTE_ORDER =3D=3D __BIG_ENDIAN | Cc: stable@vger.kernel.org Fixes: 13da9e200fe4 ("Revert "endian: #define __BYTE_ORDER"") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202507301656.7FEX6J5W-lkp@int= el.com/ Signed-off-by: Mingcong Bai --- arch/powerpc/include/asm/sfp-machine.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/sfp-machine.h b/arch/powerpc/include/= asm/sfp-machine.h index 8b957aabb826d..db8525605c026 100644 --- a/arch/powerpc/include/asm/sfp-machine.h +++ b/arch/powerpc/include/asm/sfp-machine.h @@ -319,10 +319,12 @@ #define abort() \ return 0 =20 -#ifdef __BIG_ENDIAN +#ifdef __BIG_ENDIAN__ #define __BYTE_ORDER __BIG_ENDIAN +#define __LITTLE_ENDIAN 0 #else #define __BYTE_ORDER __LITTLE_ENDIAN +#define __BIG_ENDIAN 0 #endif =20 /* Exception flags. */ --=20 2.52.0