orgads / rpms / kernel

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