diff options
| author | Mikhail Kshevetskiy <[email protected]> | 2026-07-03 14:56:07 +0300 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-07-08 13:29:18 -0600 |
| commit | 9b5c0b883485a63eac437ade055b1f3a928eb39a (patch) | |
| tree | 8d10873cc439f88f9b8a701f4282005c77d609e2 | |
| parent | cd36be5a4731fb1d640458101ae7327b3e450c73 (diff) | |
mtd: nand: raw: sunxi: #undef field_{get, prep}() before definition
Prepare for the advent of globally available common field_get() and
field_prep() macros by undefining the symbols before defining local
variants. This prevents redefinition warnings from the C preprocessor
when introducing the common macros later.
Signed-off-by: Mikhail Kshevetskiy <[email protected]>
| -rw-r--r-- | drivers/mtd/nand/raw/sunxi_nand.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/nand/raw/sunxi_nand.h b/drivers/mtd/nand/raw/sunxi_nand.h index d7a8b3dd40c..b470e1d3368 100644 --- a/drivers/mtd/nand/raw/sunxi_nand.h +++ b/drivers/mtd/nand/raw/sunxi_nand.h @@ -26,7 +26,9 @@ #include <linux/bitops.h> /* non compile-time field get/prep */ +#undef field_get #define field_get(_mask, _reg) (((_reg) & (_mask)) >> (ffs(_mask) - 1)) +#undef field_prep #define field_prep(_mask, _val) (((_val) << (ffs(_mask) - 1)) & (_mask)) #define NFC_REG_CTL 0x0000 |
