a8a466
centosplus patch
a8a466
a8a466
Building reiserfs.ko under EL7.1 produces error:
a8a466
a8a466
In file included from fs/reiserfs/bitmap.c:7:0:
a8a466
fs/reiserfs/reiserfs.h:1957:0: error: "U32_MAX" redefined [-Werror]
a8a466
 #define U32_MAX (~(__u32)0)
a8a466
a8a466
Solution:
a8a466
a8a466
In EL7.1 kernels (>= 210), U32_MAX is defined in include/linux/kernel.h
a8a466
This define now needs to be deleted from reiserfs.h
a8a466
a8a466
Applied-by: Akemi Yagi <toracat@centos.org>
a8a466
a8a466
--- a/fs/reiserfs/reiserfs.h	2014-11-24 14:38:58.000000000 -0800
a8a466
+++ b/fs/reiserfs/reiserfs.h	2015-01-12 15:34:40.187297040 -0800
a8a466
@@ -1954,7 +1954,6 @@ struct treepath var = {.path_length = IL
a8a466
 #define MAX_US_INT 0xffff
a8a466
 
a8a466
 // reiserfs version 2 has max offset 60 bits. Version 1 - 32 bit offset
a8a466
-#define U32_MAX (~(__u32)0)
a8a466
 
a8a466
 static inline loff_t max_reiserfs_offset(struct inode *inode)
a8a466
 {