Re: [PATCH v2] spi: sh-msiof: Do not redefine STR while compile testing
From: Geert Uytterhoeven
Date: Thu Jan 09 2020 - 07:43:02 EST
Hi Krzysztof,
On Wed, Jan 8, 2020 at 8:43 PM Krzysztof Kozlowski <krzk@xxxxxxxxxx> wrote:
> STR is a well-known stringify macro so it should be avoided in drivers
> to avoid warnings like this (MIPS architecture while compile testing):
>
> drivers/spi/spi-sh-msiof.c:76:0: warning: "STR" redefined
> #define STR 0x40 /* Status Register */
> arch/mips/include/asm/mipsregs.h:30:0: note: this is the location of the previous definition
> #define STR(x) __STR(x)
>
> To maintain consistency between all register names add a SI prefix to
> all of them. This also matches register names in datasheet.
>
> Signed-off-by: Krzysztof Kozlowski <krzk@xxxxxxxxxx>
>
> ---
>
> Changes since v1:
> 1. Use SI prefix,
> 2. Adjust all register names.
Thanks for the update!
Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
No changes in object file, so:
Tested-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx
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