diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2021-10-05 02:19:14 +0200 |
---|---|---|
committer | Rich Felker <dalias@libc.org> | 2021-10-27 22:51:32 +0200 |
commit | 475c3f599582a34e189f047ed3fb7e90a295ea5b (patch) | |
tree | c047c1a58d975c7b5a72423e4cff3d8144952751 /fs | |
parent | sh: define __BIG_ENDIAN for math-emu (diff) | |
download | linux-475c3f599582a34e189f047ed3fb7e90a295ea5b.tar.xz linux-475c3f599582a34e189f047ed3fb7e90a295ea5b.zip |
sh: fix READ/WRITE redefinition warnings
kernel.h defines READ and WRITE, so rename the SH math-emu macros
to MREAD and MWRITE.
Fixes these warnings:
.../arch/sh/math-emu/math.c:54: warning: "WRITE" redefined
54 | #define WRITE(d,a) ({if(put_user(d, (typeof (d) __user *)a)) return -EFAULT;})
In file included from ../arch/sh/math-emu/math.c:10:
.../include/linux/kernel.h:37: note: this is the location of the previous definition
37 | #define WRITE 1
.../arch/sh/math-emu/math.c:55: warning: "READ" redefined
55 | #define READ(d,a) ({if(get_user(d, (typeof (d) __user *)a)) return -EFAULT;})
In file included from ../arch/sh/math-emu/math.c:10:
.../include/linux/kernel.h:36: note: this is the location of the previous definition
36 | #define READ 0
Fixes: 4b565680d163 ("sh: math-emu support")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Takashi YOSHII <takasi-y@ops.dti.ne.jp>
Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Rich Felker <dalias@libc.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions