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
91 91
92#define PTR_CHECK_DEV ((1 << PTR_DEV_BITS) - 1)92#define PTR_CHECK_DEV ((1 << PTR_DEV_BITS) - 1)
93 93
94#define PTR(gen, offset, dev) \94#define MAKE_PTR(gen, offset, dev) \
95 ((((__u64) dev) << 51) | ((__u64) offset) << 8 | gen)95 ((((__u64) dev) << 51) | ((__u64) offset) << 8 | gen)
96 96
97/* Bkey utility code */97/* Bkey utility code */