diff options
| author | Geert Uytterhoeven <geert+renesas@glider.be> | 2025-11-06 14:33:51 +0100 |
|---|---|---|
| committer | Yury Norov (NVIDIA) <yury.norov@gmail.com> | 2025-11-24 14:15:46 -0500 |
| commit | d51b09a0feb63029be64226502cbcf53adc434b0 (patch) | |
| tree | 4b40589204724b74181e5fdfd213a3230dfc91e6 | |
| parent | 7996cbdb3f8472bc4286c776d3fa39cf0c20237a (diff) | |
EDAC/ie31200: #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: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
| -rw-r--r-- | drivers/edac/ie31200_edac.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/edac/ie31200_edac.c b/drivers/edac/ie31200_edac.c index 5a080ab65476..72290f430126 100644 --- a/drivers/edac/ie31200_edac.c +++ b/drivers/edac/ie31200_edac.c @@ -140,6 +140,7 @@ #define IE31200_CAPID0_ECC BIT(1) /* Non-constant mask variant of FIELD_GET() */ +#undef field_get #define field_get(_mask, _reg) (((_reg) & (_mask)) >> (ffs(_mask) - 1)) static int nr_channels; |
