grep -v config.h.in config.h.in > undef.h make all-recursive make[1]: Entering directory `/root/lustre-release' Making all in . make[2]: Entering directory `/root/lustre-release' make LDFLAGS= CC="gcc" -C /lib/modules/3.10.0-327.36.1.el7.x86_64/build \ -f /root/lustre-release/build/Makefile LUSTRE_LINUX_CONFIG=/lib/modules/3.10.0-327.36.1.el7.x86_64/build/.config \ LINUXINCLUDE='-I$(srctree)/arch/$(SRCARCH)/include -Iarch/$(SRCARCH)/include/generated -Iinclude $(if $(KBUILD_SRC)$(building_out_of_srctree),-Iinclude2 -I$(srctree)/include) -I$(srctree)/arch/$(SRCARCH)/include/uapi -Iarch/$(SRCARCH)/include/generated/uapi -I$(srctree)/include/uapi -Iinclude/generated/uapi -include /lib/modules/3.10.0-327.36.1.el7.x86_64/source/include/linux/kconfig.h' \ M=/root/lustre-release -o tmp_include_depends -o scripts -o \ include/config/MARKER modules make[3]: Entering directory `/usr/src/kernels/3.10.0-327.36.1.el7.x86_64' LD /root/lustre-release/built-in.o LD /root/lustre-release/libcfs/built-in.o LD /root/lustre-release/libcfs/libcfs/built-in.o CC [M] /root/lustre-release/libcfs/libcfs/linux/linux-prim.o CC [M] /root/lustre-release/libcfs/libcfs/linux/linux-curproc.o CC [M] /root/lustre-release/libcfs/libcfs/linux/linux-hash.o In file included from /root/lustre-release/libcfs/libcfs/linux/linux-hash.c:33:0: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:71:13: error: ‘struct rhashtable_iter’ declared inside parameter list [-Werror] struct rhashtable_iter *iter) ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:71:13: error: its scope is only this definition or declaration, which is probably not what you want [-Werror] /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h: In function ‘rhashtable_walk_enter’: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:76:2: error: implicit declaration of function ‘rhashtable_walk_init’ [-Werror=implicit-function-declaration] return rhashtable_walk_init(ht, iter); ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h: In function ‘rhltable_init’: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:98:2: error: passing argument 2 of ‘rhashtable_init’ discards ‘const’ qualifier from pointer target type [-Werror] return rhashtable_init(&hlt->ht, params); ^ In file included from /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:27:0, from /root/lustre-release/libcfs/libcfs/linux/linux-hash.c:33: include/linux/rhashtable.h:94:5: note: expected ‘struct rhashtable_params *’ but argument is of type ‘const struct rhashtable_params *’ int rhashtable_init(struct rhashtable *ht, struct rhashtable_params *params); ^ In file included from /root/lustre-release/libcfs/libcfs/linux/linux-hash.c:33:0: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h: In function ‘rhltable_lookup’: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:106:9: error: variable ‘arg’ has initializer but incomplete type struct rhashtable_compare_arg arg = { ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:107:3: error: unknown field ‘ht’ specified in initializer .ht = ht, ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:107:3: error: excess elements in struct initializer [-Werror] /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:107:3: error: (near initialization for ‘arg’) [-Werror] /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:108:3: error: unknown field ‘key’ specified in initializer .key = key, ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:108:3: error: excess elements in struct initializer [-Werror] /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:108:3: error: (near initialization for ‘arg’) [-Werror] /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:106:32: error: storage size of ‘arg’ isn’t known struct rhashtable_compare_arg arg = { ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:116:2: error: implicit declaration of function ‘rht_key_hashfn’ [-Werror=implicit-function-declaration] hash = rht_key_hashfn(ht, tbl, key, params); ^ In file included from /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:27:0, from /root/lustre-release/libcfs/libcfs/linux/linux-hash.c:33: include/linux/rhashtable.h:186:11: error: assignment from incompatible pointer type [-Werror] for (pos = rht_dereference_rcu(head, ht); \ ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:117:2: note: in expansion of macro ‘rht_for_each_rcu’ rht_for_each_rcu(he, tbl, hash) { ^ In file included from /root/lustre-release/libcfs/libcfs/linux/linux-hash.c:33:0: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:118:13: error: ‘const struct rhashtable_params’ has no member named ‘obj_cmpfn’ if (params.obj_cmpfn ? ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:119:13: error: ‘const struct rhashtable_params’ has no member named ‘obj_cmpfn’ params.obj_cmpfn(&arg, rht_obj(ht, he)) : ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:119:7: error: implicit declaration of function ‘rht_obj’ [-Werror=implicit-function-declaration] params.obj_cmpfn(&arg, rht_obj(ht, he)) : ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:120:7: error: implicit declaration of function ‘rhashtable_compare’ [-Werror=implicit-function-declaration] rhashtable_compare(&arg, rht_obj(ht, he))) ^ In file included from include/linux/srcu.h:33:0, from include/linux/notifier.h:15, from include/linux/memory_hotplug.h:6, from include/linux/mmzone.h:824, from include/linux/gfp.h:5, from include/linux/kmod.h:22, from include/linux/module.h:13, from /root/lustre-release/libcfs/libcfs/linux/linux-hash.c:25: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:128:31: error: ‘struct bucket_table’ has no member named ‘future_tbl’ tbl = rht_dereference_rcu(tbl->future_tbl, ht); ^ include/linux/rcupdate.h:526:11: note: in definition of macro ‘__rcu_dereference_check’ typeof(*p) *_________p1 = (typeof(*p)*__force )ACCESS_ONCE(p); \ ^ include/linux/rhashtable.h:117:2: note: in expansion of macro ‘rcu_dereference_check’ rcu_dereference_check(p, lockdep_rht_mutex_is_held(ht)) ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:128:8: note: in expansion of macro ‘rht_dereference_rcu’ tbl = rht_dereference_rcu(tbl->future_tbl, ht); ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:128:31: error: ‘struct bucket_table’ has no member named ‘future_tbl’ tbl = rht_dereference_rcu(tbl->future_tbl, ht); ^ include/linux/rcupdate.h:526:38: note: in definition of macro ‘__rcu_dereference_check’ typeof(*p) *_________p1 = (typeof(*p)*__force )ACCESS_ONCE(p); \ ^ include/linux/rhashtable.h:117:2: note: in expansion of macro ‘rcu_dereference_check’ rcu_dereference_check(p, lockdep_rht_mutex_is_held(ht)) ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:128:8: note: in expansion of macro ‘rht_dereference_rcu’ tbl = rht_dereference_rcu(tbl->future_tbl, ht); ^ In file included from include/uapi/linux/stddef.h:1:0, from include/linux/stddef.h:4, from /usr/src/kernels/3.10.0-327.36.1.el7.x86_64/include/uapi/linux/posix_types.h:4, from include/uapi/linux/types.h:13, from include/linux/types.h:5, from include/linux/list.h:4, from include/linux/module.h:9, from /root/lustre-release/libcfs/libcfs/linux/linux-hash.c:25: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:128:31: error: ‘struct bucket_table’ has no member named ‘future_tbl’ tbl = rht_dereference_rcu(tbl->future_tbl, ht); ^ include/linux/compiler.h:423:43: note: in definition of macro ‘ACCESS_ONCE’ #define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x)) ^ include/linux/rcupdate.h:632:2: note: in expansion of macro ‘__rcu_dereference_check’ __rcu_dereference_check((p), rcu_read_lock_held() || (c), __rcu) ^ include/linux/rhashtable.h:117:2: note: in expansion of macro ‘rcu_dereference_check’ rcu_dereference_check(p, lockdep_rht_mutex_is_held(ht)) ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:128:8: note: in expansion of macro ‘rht_dereference_rcu’ tbl = rht_dereference_rcu(tbl->future_tbl, ht); ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:128:31: error: ‘struct bucket_table’ has no member named ‘future_tbl’ tbl = rht_dereference_rcu(tbl->future_tbl, ht); ^ include/linux/compiler.h:423:50: note: in definition of macro ‘ACCESS_ONCE’ #define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x)) ^ include/linux/rcupdate.h:632:2: note: in expansion of macro ‘__rcu_dereference_check’ __rcu_dereference_check((p), rcu_read_lock_held() || (c), __rcu) ^ include/linux/rhashtable.h:117:2: note: in expansion of macro ‘rcu_dereference_check’ rcu_dereference_check(p, lockdep_rht_mutex_is_held(ht)) ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:128:8: note: in expansion of macro ‘rht_dereference_rcu’ tbl = rht_dereference_rcu(tbl->future_tbl, ht); ^ In file included from include/linux/srcu.h:33:0, from include/linux/notifier.h:15, from include/linux/memory_hotplug.h:6, from include/linux/mmzone.h:824, from include/linux/gfp.h:5, from include/linux/kmod.h:22, from include/linux/module.h:13, from /root/lustre-release/libcfs/libcfs/linux/linux-hash.c:25: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:128:31: error: ‘struct bucket_table’ has no member named ‘future_tbl’ tbl = rht_dereference_rcu(tbl->future_tbl, ht); ^ include/linux/rcupdate.h:531:13: note: in definition of macro ‘__rcu_dereference_check’ ((typeof(*p) __force __kernel *)(_________p1)); \ ^ include/linux/rhashtable.h:117:2: note: in expansion of macro ‘rcu_dereference_check’ rcu_dereference_check(p, lockdep_rht_mutex_is_held(ht)) ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:128:8: note: in expansion of macro ‘rht_dereference_rcu’ tbl = rht_dereference_rcu(tbl->future_tbl, ht); ^ In file included from /root/lustre-release/libcfs/libcfs/linux/linux-hash.c:33:0: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:106:32: error: unused variable ‘arg’ [-Werror=unused-variable] struct rhashtable_compare_arg arg = { ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h: In function ‘rhltable_insert_key’: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:143:2: error: implicit declaration of function ‘__rhashtable_insert_fast’ [-Werror=implicit-function-declaration] return PTR_ERR(__rhashtable_insert_fast(&hlt->ht, key, &list->rhead, ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:144:7: error: passing argument 1 of ‘PTR_ERR’ makes pointer from integer without a cast [-Werror] params)); ^ In file included from /usr/src/kernels/3.10.0-327.36.1.el7.x86_64/arch/x86/include/asm/processor.h:30:0, from /usr/src/kernels/3.10.0-327.36.1.el7.x86_64/arch/x86/include/asm/thread_info.h:22, from include/linux/thread_info.h:54, from include/linux/preempt.h:9, from include/linux/spinlock.h:50, from include/linux/seqlock.h:35, from include/linux/time.h:5, from include/linux/stat.h:18, from include/linux/module.h:10, from /root/lustre-release/libcfs/libcfs/linux/linux-hash.c:25: include/linux/err.h:27:33: note: expected ‘const void *’ but argument is of type ‘int’ static inline long __must_check PTR_ERR(const void *ptr) ^ In file included from /root/lustre-release/libcfs/libcfs/linux/linux-hash.c:33:0: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h: In function ‘rhltable_remove’: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:152:2: error: implicit declaration of function ‘rhashtable_remove_fast’ [-Werror=implicit-function-declaration] return rhashtable_remove_fast(&hlt->ht, &list->rhead, params); ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h: In function ‘rhltable_free_and_destroy’: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:160:2: error: implicit declaration of function ‘rhashtable_free_and_destroy’ [-Werror=implicit-function-declaration] rhashtable_free_and_destroy(&hlt->ht, free_fn, arg); ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h: At top level: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:169:19: error: ‘struct rhashtable_iter’ declared inside parameter list [-Werror] struct rhashtable_iter *iter) ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h: In function ‘rhltable_walk_enter’: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:171:2: error: passing argument 2 of ‘rhashtable_walk_enter’ from incompatible pointer type [-Werror] rhashtable_walk_enter(&hlt->ht, iter); ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:70:12: note: expected ‘struct rhashtable_iter *’ but argument is of type ‘struct rhashtable_iter *’ static int rhashtable_walk_enter(struct rhashtable *ht, ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h: In function ‘rhashtable_lookup_get_insert_fast’: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:194:2: error: implicit declaration of function ‘rhashtable_lookup_insert_fast’ [-Werror=implicit-function-declaration] rc = rhashtable_lookup_insert_fast(ht, obj, params); ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:197:7: error: assignment makes pointer from integer without a cast [-Werror] key = rht_obj(ht, obj); ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:198:3: error: implicit declaration of function ‘rhashtable_lookup_fast’ [-Werror=implicit-function-declaration] ret = rhashtable_lookup_fast(ht, key, params); ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:198:7: error: assignment makes pointer from integer without a cast [-Werror] ret = rhashtable_lookup_fast(ht, key, params); ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h: At top level: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:219:21: error: conflicting types for ‘rhashtable_lookup’ static inline void *rhashtable_lookup( ^ In file included from /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:27:0, from /root/lustre-release/libcfs/libcfs/linux/linux-hash.c:33: include/linux/rhashtable.h:107:7: note: previous declaration of ‘rhashtable_lookup’ was here void *rhashtable_lookup(const struct rhashtable *ht, const void *key); ^ In file included from /root/lustre-release/libcfs/libcfs/linux/linux-hash.c:33:0: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h: In function ‘rhashtable_lookup’: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:223:9: error: variable ‘arg’ has initializer but incomplete type struct rhashtable_compare_arg arg = { ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:224:3: error: unknown field ‘ht’ specified in initializer .ht = ht, ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:224:3: error: excess elements in struct initializer [-Werror] /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:224:3: error: (near initialization for ‘arg’) [-Werror] /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:225:3: error: unknown field ‘key’ specified in initializer .key = key, ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:225:3: error: excess elements in struct initializer [-Werror] /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:225:3: error: (near initialization for ‘arg’) [-Werror] /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:223:32: error: storage size of ‘arg’ isn’t known struct rhashtable_compare_arg arg = { ^ In file included from /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:27:0, from /root/lustre-release/libcfs/libcfs/linux/linux-hash.c:33: include/linux/rhashtable.h:186:11: error: assignment from incompatible pointer type [-Werror] for (pos = rht_dereference_rcu(head, ht); \ ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:234:2: note: in expansion of macro ‘rht_for_each_rcu’ rht_for_each_rcu(he, tbl, hash) { ^ In file included from /root/lustre-release/libcfs/libcfs/linux/linux-hash.c:33:0: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:235:13: error: ‘const struct rhashtable_params’ has no member named ‘obj_cmpfn’ if (params.obj_cmpfn ? ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:236:13: error: ‘const struct rhashtable_params’ has no member named ‘obj_cmpfn’ params.obj_cmpfn(&arg, rht_obj(ht, he)) : ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:239:3: error: return makes pointer from integer without a cast [-Werror] return rht_obj(ht, he); ^ In file included from include/linux/srcu.h:33:0, from include/linux/notifier.h:15, from include/linux/memory_hotplug.h:6, from include/linux/mmzone.h:824, from include/linux/gfp.h:5, from include/linux/kmod.h:22, from include/linux/module.h:13, from /root/lustre-release/libcfs/libcfs/linux/linux-hash.c:25: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:245:31: error: ‘const struct bucket_table’ has no member named ‘future_tbl’ tbl = rht_dereference_rcu(tbl->future_tbl, ht); ^ include/linux/rcupdate.h:526:11: note: in definition of macro ‘__rcu_dereference_check’ typeof(*p) *_________p1 = (typeof(*p)*__force )ACCESS_ONCE(p); \ ^ include/linux/rhashtable.h:117:2: note: in expansion of macro ‘rcu_dereference_check’ rcu_dereference_check(p, lockdep_rht_mutex_is_held(ht)) ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:245:8: note: in expansion of macro ‘rht_dereference_rcu’ tbl = rht_dereference_rcu(tbl->future_tbl, ht); ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:245:31: error: ‘const struct bucket_table’ has no member named ‘future_tbl’ tbl = rht_dereference_rcu(tbl->future_tbl, ht); ^ include/linux/rcupdate.h:526:38: note: in definition of macro ‘__rcu_dereference_check’ typeof(*p) *_________p1 = (typeof(*p)*__force )ACCESS_ONCE(p); \ ^ include/linux/rhashtable.h:117:2: note: in expansion of macro ‘rcu_dereference_check’ rcu_dereference_check(p, lockdep_rht_mutex_is_held(ht)) ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:245:8: note: in expansion of macro ‘rht_dereference_rcu’ tbl = rht_dereference_rcu(tbl->future_tbl, ht); ^ In file included from include/uapi/linux/stddef.h:1:0, from include/linux/stddef.h:4, from /usr/src/kernels/3.10.0-327.36.1.el7.x86_64/include/uapi/linux/posix_types.h:4, from include/uapi/linux/types.h:13, from include/linux/types.h:5, from include/linux/list.h:4, from include/linux/module.h:9, from /root/lustre-release/libcfs/libcfs/linux/linux-hash.c:25: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:245:31: error: ‘const struct bucket_table’ has no member named ‘future_tbl’ tbl = rht_dereference_rcu(tbl->future_tbl, ht); ^ include/linux/compiler.h:423:43: note: in definition of macro ‘ACCESS_ONCE’ #define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x)) ^ include/linux/rcupdate.h:632:2: note: in expansion of macro ‘__rcu_dereference_check’ __rcu_dereference_check((p), rcu_read_lock_held() || (c), __rcu) ^ include/linux/rhashtable.h:117:2: note: in expansion of macro ‘rcu_dereference_check’ rcu_dereference_check(p, lockdep_rht_mutex_is_held(ht)) ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:245:8: note: in expansion of macro ‘rht_dereference_rcu’ tbl = rht_dereference_rcu(tbl->future_tbl, ht); ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:245:31: error: ‘const struct bucket_table’ has no member named ‘future_tbl’ tbl = rht_dereference_rcu(tbl->future_tbl, ht); ^ include/linux/compiler.h:423:50: note: in definition of macro ‘ACCESS_ONCE’ #define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x)) ^ include/linux/rcupdate.h:632:2: note: in expansion of macro ‘__rcu_dereference_check’ __rcu_dereference_check((p), rcu_read_lock_held() || (c), __rcu) ^ include/linux/rhashtable.h:117:2: note: in expansion of macro ‘rcu_dereference_check’ rcu_dereference_check(p, lockdep_rht_mutex_is_held(ht)) ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:245:8: note: in expansion of macro ‘rht_dereference_rcu’ tbl = rht_dereference_rcu(tbl->future_tbl, ht); ^ In file included from include/linux/srcu.h:33:0, from include/linux/notifier.h:15, from include/linux/memory_hotplug.h:6, from include/linux/mmzone.h:824, from include/linux/gfp.h:5, from include/linux/kmod.h:22, from include/linux/module.h:13, from /root/lustre-release/libcfs/libcfs/linux/linux-hash.c:25: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:245:31: error: ‘const struct bucket_table’ has no member named ‘future_tbl’ tbl = rht_dereference_rcu(tbl->future_tbl, ht); ^ include/linux/rcupdate.h:531:13: note: in definition of macro ‘__rcu_dereference_check’ ((typeof(*p) __force __kernel *)(_________p1)); \ ^ include/linux/rhashtable.h:117:2: note: in expansion of macro ‘rcu_dereference_check’ rcu_dereference_check(p, lockdep_rht_mutex_is_held(ht)) ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:245:8: note: in expansion of macro ‘rht_dereference_rcu’ tbl = rht_dereference_rcu(tbl->future_tbl, ht); ^ In file included from /root/lustre-release/libcfs/libcfs/linux/linux-hash.c:33:0: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:223:32: error: unused variable ‘arg’ [-Werror=unused-variable] struct rhashtable_compare_arg arg = { ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h: In function ‘__rhashtable_replace_fast’: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:277:2: error: implicit declaration of function ‘rht_head_hashfn’ [-Werror=implicit-function-declaration] hash = rht_head_hashfn(ht, tbl, obj_old, params); ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:281:2: error: implicit declaration of function ‘rht_bucket_lock’ [-Werror=implicit-function-declaration] lock = rht_bucket_lock(tbl, hash); ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:281:7: error: assignment makes pointer from integer without a cast [-Werror] lock = rht_bucket_lock(tbl, hash); ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:286:2: error: implicit declaration of function ‘rht_for_each_continue’ [-Werror=implicit-function-declaration] rht_for_each_continue(he, *pprev, tbl, hash) { ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:286:47: error: expected ‘;’ before ‘{’ token rht_for_each_continue(he, *pprev, tbl, hash) { ^ In file included from include/linux/srcu.h:33:0, from include/linux/notifier.h:15, from include/linux/memory_hotplug.h:6, from include/linux/mmzone.h:824, from include/linux/gfp.h:5, from include/linux/kmod.h:22, from include/linux/module.h:13, from /root/lustre-release/libcfs/libcfs/linux/linux-hash.c:25: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h: In function ‘rhashtable_replace_fast’: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:336:39: error: ‘struct bucket_table’ has no member named ‘future_tbl’ (tbl = rht_dereference_rcu(tbl->future_tbl, ht))) ^ include/linux/rcupdate.h:526:11: note: in definition of macro ‘__rcu_dereference_check’ typeof(*p) *_________p1 = (typeof(*p)*__force )ACCESS_ONCE(p); \ ^ include/linux/rhashtable.h:117:2: note: in expansion of macro ‘rcu_dereference_check’ rcu_dereference_check(p, lockdep_rht_mutex_is_held(ht)) ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:336:16: note: in expansion of macro ‘rht_dereference_rcu’ (tbl = rht_dereference_rcu(tbl->future_tbl, ht))) ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:336:39: error: ‘struct bucket_table’ has no member named ‘future_tbl’ (tbl = rht_dereference_rcu(tbl->future_tbl, ht))) ^ include/linux/rcupdate.h:526:38: note: in definition of macro ‘__rcu_dereference_check’ typeof(*p) *_________p1 = (typeof(*p)*__force )ACCESS_ONCE(p); \ ^ include/linux/rhashtable.h:117:2: note: in expansion of macro ‘rcu_dereference_check’ rcu_dereference_check(p, lockdep_rht_mutex_is_held(ht)) ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:336:16: note: in expansion of macro ‘rht_dereference_rcu’ (tbl = rht_dereference_rcu(tbl->future_tbl, ht))) ^ In file included from include/uapi/linux/stddef.h:1:0, from include/linux/stddef.h:4, from /usr/src/kernels/3.10.0-327.36.1.el7.x86_64/include/uapi/linux/posix_types.h:4, from include/uapi/linux/types.h:13, from include/linux/types.h:5, from include/linux/list.h:4, from include/linux/module.h:9, from /root/lustre-release/libcfs/libcfs/linux/linux-hash.c:25: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:336:39: error: ‘struct bucket_table’ has no member named ‘future_tbl’ (tbl = rht_dereference_rcu(tbl->future_tbl, ht))) ^ include/linux/compiler.h:423:43: note: in definition of macro ‘ACCESS_ONCE’ #define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x)) ^ include/linux/rcupdate.h:632:2: note: in expansion of macro ‘__rcu_dereference_check’ __rcu_dereference_check((p), rcu_read_lock_held() || (c), __rcu) ^ include/linux/rhashtable.h:117:2: note: in expansion of macro ‘rcu_dereference_check’ rcu_dereference_check(p, lockdep_rht_mutex_is_held(ht)) ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:336:16: note: in expansion of macro ‘rht_dereference_rcu’ (tbl = rht_dereference_rcu(tbl->future_tbl, ht))) ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:336:39: error: ‘struct bucket_table’ has no member named ‘future_tbl’ (tbl = rht_dereference_rcu(tbl->future_tbl, ht))) ^ include/linux/compiler.h:423:50: note: in definition of macro ‘ACCESS_ONCE’ #define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x)) ^ include/linux/rcupdate.h:632:2: note: in expansion of macro ‘__rcu_dereference_check’ __rcu_dereference_check((p), rcu_read_lock_held() || (c), __rcu) ^ include/linux/rhashtable.h:117:2: note: in expansion of macro ‘rcu_dereference_check’ rcu_dereference_check(p, lockdep_rht_mutex_is_held(ht)) ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:336:16: note: in expansion of macro ‘rht_dereference_rcu’ (tbl = rht_dereference_rcu(tbl->future_tbl, ht))) ^ In file included from include/linux/srcu.h:33:0, from include/linux/notifier.h:15, from include/linux/memory_hotplug.h:6, from include/linux/mmzone.h:824, from include/linux/gfp.h:5, from include/linux/kmod.h:22, from include/linux/module.h:13, from /root/lustre-release/libcfs/libcfs/linux/linux-hash.c:25: /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:336:39: error: ‘struct bucket_table’ has no member named ‘future_tbl’ (tbl = rht_dereference_rcu(tbl->future_tbl, ht))) ^ include/linux/rcupdate.h:531:13: note: in definition of macro ‘__rcu_dereference_check’ ((typeof(*p) __force __kernel *)(_________p1)); \ ^ include/linux/rhashtable.h:117:2: note: in expansion of macro ‘rcu_dereference_check’ rcu_dereference_check(p, lockdep_rht_mutex_is_held(ht)) ^ /root/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:336:16: note: in expansion of macro ‘rht_dereference_rcu’ (tbl = rht_dereference_rcu(tbl->future_tbl, ht))) ^ /root/lustre-release/libcfs/libcfs/linux/linux-hash.c: At top level: cc1: error: unrecognized command line option "-Wno-stringop-overflow" [-Werror] cc1: error: unrecognized command line option "-Wno-stringop-truncation" [-Werror] cc1: error: unrecognized command line option "-Wno-format-truncation" [-Werror] cc1: all warnings being treated as errors make[6]: *** [/root/lustre-release/libcfs/libcfs/linux/linux-hash.o] Error 1 make[5]: *** [/root/lustre-release/libcfs/libcfs] Error 2 make[4]: *** [/root/lustre-release/libcfs] Error 2 make[3]: *** [_module_/root/lustre-release] Error 2 make[3]: Leaving directory `/usr/src/kernels/3.10.0-327.36.1.el7.x86_64' make[2]: *** [modules] Error 2 make[2]: Leaving directory `/root/lustre-release' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/lustre-release' make: *** [all] Error 2