Skip to content

Commit 138ab44

Browse files
geertuYuryNorov
authored andcommitted
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 <yury.norov@gmail.com> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
1 parent 2fc00c0 commit 138ab44

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/soc/renesas/rz-sysc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
#include "rz-sysc.h"
1818

19+
#undef field_get
1920
#define field_get(_mask, _reg) (((_reg) & (_mask)) >> (ffs(_mask) - 1))
2021

2122
/**

0 commit comments

Comments
 (0)