linux/arch/sh
Randy Dunlap 982d31ba55 sh: define __BIG_ENDIAN for math-emu
[ Upstream commit b929926f01f2d14635345d22eafcf60feed1085e ]

Fix this by defining both ENDIAN macros in
<asm/sfp-machine.h> so that they can be utilized in
<math-emu/soft-fp.h> according to the latter's comment:
/* Allow sfp-machine to have its own byte order definitions. */

(This is what is done in arch/nds32/include/asm/sfp-machine.h.)

This placates these build warnings:

In file included from ../arch/sh/math-emu/math.c:23:
.../include/math-emu/single.h:50:21: warning: "__BIG_ENDIAN" is not defined, evaluates to 0 [-Wundef]
   50 | #if __BYTE_ORDER == __BIG_ENDIAN
In file included from ../arch/sh/math-emu/math.c:24:
.../include/math-emu/double.h:59:21: warning: "__BIG_ENDIAN" is not defined, evaluates to 0 [-Wundef]
   59 | #if __BYTE_ORDER == __BIG_ENDIAN

Fixes: 4b565680d1 ("sh: math-emu support")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Signed-off-by: Rich Felker <dalias@libc.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-26 10:47:17 +01:00
..
boards sh: landisk: Add missing initialization of sh_io_port_base 2020-08-21 13:05:38 +02:00
boot
cchips
configs scsi: sr: remove references to BLK_DEV_SR_VENDOR, leave it enabled 2020-07-22 09:32:57 +02:00
drivers sh: dma: fix kconfig dependency for G2_DMA 2021-01-27 11:47:52 +01:00
include sh: define __BIG_ENDIAN for math-emu 2021-11-26 10:47:17 +01:00
kernel sh: check return code of request_irq 2021-11-26 10:47:16 +01:00
lib
lib64
math-emu sh: math-emu: drop unused functions 2021-11-26 10:47:17 +01:00
mm
oprofile
tools
Kconfig
Kconfig.cpu
Kconfig.debug sh: fix kconfig unmet dependency warning for FRAME_POINTER 2021-11-26 10:47:17 +01:00
Makefile