* [PATCH 2/2] sh: math-emu: fix macro redefined warning
@ 2021-11-15 6:41 Randy Dunlap
2021-11-15 10:04 ` Geert Uytterhoeven
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2021-11-15 6:41 UTC (permalink / raw)
To: linux-kernel
Cc: Randy Dunlap, kernel test robot, Yoshinori Sato, Rich Felker, linux-sh
Fix a warning that was reported by the kernel test robot:
In file included from ../include/math-emu/soft-fp.h:27,
from ../arch/sh/math-emu/math.c:22:
../arch/sh/include/asm/sfp-machine.h:17: warning: "__BYTE_ORDER" redefined
17 | #define __BYTE_ORDER __BIG_ENDIAN
In file included from ../arch/sh/math-emu/math.c:21:
../arch/sh/math-emu/sfp-util.h:71: note: this is the location of the previous definition
71 | #define __BYTE_ORDER __LITTLE_ENDIAN
Fixes: b929926f01f2 ("sh: define __BIG_ENDIAN for math-emu")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Cc: linux-sh@vger.kernel.org
---
arch/sh/math-emu/sfp-util.h | 4 ----
1 file changed, 4 deletions(-)
--- linux-next-20211112.orig/arch/sh/math-emu/sfp-util.h
+++ linux-next-20211112/arch/sh/math-emu/sfp-util.h
@@ -67,7 +67,3 @@
} while (0)
#define abort() return 0
-
-#define __BYTE_ORDER __LITTLE_ENDIAN
-
-
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 2/2] sh: math-emu: fix macro redefined warning
2021-11-15 6:41 [PATCH 2/2] sh: math-emu: fix macro redefined warning Randy Dunlap
@ 2021-11-15 10:04 ` Geert Uytterhoeven
0 siblings, 0 replies; 2+ messages in thread
From: Geert Uytterhoeven @ 2021-11-15 10:04 UTC (permalink / raw)
To: Randy Dunlap
Cc: Linux Kernel Mailing List, kernel test robot, Yoshinori Sato,
Rich Felker, Linux-sh list
On Mon, Nov 15, 2021 at 7:42 AM Randy Dunlap <rdunlap@infradead.org> wrote:
> Fix a warning that was reported by the kernel test robot:
>
> In file included from ../include/math-emu/soft-fp.h:27,
> from ../arch/sh/math-emu/math.c:22:
> ../arch/sh/include/asm/sfp-machine.h:17: warning: "__BYTE_ORDER" redefined
> 17 | #define __BYTE_ORDER __BIG_ENDIAN
> In file included from ../arch/sh/math-emu/math.c:21:
> ../arch/sh/math-emu/sfp-util.h:71: note: this is the location of the previous definition
> 71 | #define __BYTE_ORDER __LITTLE_ENDIAN
>
> Fixes: b929926f01f2 ("sh: define __BIG_ENDIAN for math-emu")
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
> --- linux-next-20211112.orig/arch/sh/math-emu/sfp-util.h
> +++ linux-next-20211112/arch/sh/math-emu/sfp-util.h
> @@ -67,7 +67,3 @@
> } while (0)
>
> #define abort() return 0
> -
> -#define __BYTE_ORDER __LITTLE_ENDIAN
> -
> -
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-11-15 10:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-15 6:41 [PATCH 2/2] sh: math-emu: fix macro redefined warning Randy Dunlap
2021-11-15 10:04 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).