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]
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -91,7 +91,7 @@ PTR_FIELD(PTR_GEN, 0, 8) · 90 unmodified lines | ||
| 91 | 91 | |
| 92 | 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 | 95 | ((((__u64) dev) << 51) | ((__u64) offset) << 8 | gen) |
| 96 | 96 | |
| 97 | 97 | /* Bkey utility code */ |