mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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>
This commit is contained in:
committed by
Yury Norov (NVIDIA)
parent
7996cbdb3f
commit
d51b09a0fe
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user