History

bcache: Fix building error on MIPS

This patch try to fix the building error on MIPS. The reason is MIPS has already defined the PTR macro, which conflicts with the PTR macro in include/uapi/linux/bcache.h. [fixed by mlyle: corrected a line-length issue]

Huacai Chen committed 8 years ago

Commit cf33c1e1 parent bb22caf4 files · +4 −4Browse files

Showing the changes to include/uapi/linux (1 of 4 files). Show all

Unified · Split

include/uapi/linux/bcache.h+1−1
@@ -91,7 +91,7 @@ PTR_FIELD(PTR_GEN, 0, 8) · 90 unmodified lines
9191
9292 #define PTR_CHECK_DEV ((1 << PTR_DEV_BITS) - 1)
9393
94−#define PTR(gen, offset, dev) \
94+#define MAKE_PTR(gen, offset, dev) \
9595 ((((__u64) dev) << 51) | ((__u64) offset) << 8 | gen)
9696
9797 /* Bkey utility code */