From: Geert Uytterhoeven Date: Thu, 6 Nov 2025 13:33:56 +0000 (+0100) Subject: soc: renesas: rz-sysc: #undef field_get() before local definition X-Git-Tag: v6.19-rc1~87^2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=138ab44108fad96c22b381ebfb6936ab9787aedc;p=thirdparty%2Fkernel%2Flinux.git soc: renesas: rz-sysc: #undef field_get() before local definition Prepare for the advent of a globally available common field_get() macro by undefining the symbol before defining a local variant. This prevents redefinition warnings from the C preprocessor when introducing the common macro later. Suggested-by: Yury Norov Signed-off-by: Geert Uytterhoeven Reviewed-by: Claudiu Beznea Signed-off-by: Yury Norov (NVIDIA) --- diff --git a/drivers/soc/renesas/rz-sysc.c b/drivers/soc/renesas/rz-sysc.c index 9f79e299e6f41..b9880085d3634 100644 --- a/drivers/soc/renesas/rz-sysc.c +++ b/drivers/soc/renesas/rz-sysc.c @@ -16,6 +16,7 @@ #include "rz-sysc.h" +#undef field_get #define field_get(_mask, _reg) (((_reg) & (_mask)) >> (ffs(_mask) - 1)) /**