tree: https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git fsverity head: 24570b70c8a73bd22f28d2e50c45c737ba487a9c commit: 24570b70c8a73bd22f28d2e50c45c737ba487a9c [2/2] ext4: add fsverity read support config: x86_64-randconfig-x003-201821 (attached as .config) compiler: gcc-8 (Debian 8.1.0-3) 8.1.0 reproduce: git checkout 24570b70c8a73bd22f28d2e50c45c737ba487a9c # save the attached .config to linux build tree make ARCH=x86_64 All warnings (new ones prefixed by >>): In file included from arch/x86/include/asm/barrier.h:86, from include/linux/compiler.h:245, from include/linux/kernel.h:10, from fs//ext4/readpage.c:31: fs//ext4/readpage.c: In function 'get_bio_post_read_ctx': fs//ext4/readpage.c:162:32: error: 'struct inode' has no member named 'i_verity_info'; did you mean 'i_crypt_info'? (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~ include/asm-generic/barrier.h:190:10: note: in definition of macro 'smp_load_acquire' typeof(*p) ___p1 = READ_ONCE(*p); \ ^ In file included from include/linux/kernel.h:10, from fs//ext4/readpage.c:31: fs//ext4/readpage.c:162:32: error: 'struct inode' has no member named 'i_verity_info'; did you mean 'i_crypt_info'? (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~ include/linux/compiler.h:250:17: note: in definition of macro '__READ_ONCE' union { typeof(x) __val; char __c[1]; } __u; \ ^ >> include/asm-generic/barrier.h:190:21: note: in expansion of macro 'READ_ONCE' typeof(*p) ___p1 = READ_ONCE(*p); \ ^~~~~~~~~ fs//ext4/readpage.c:162:7: note: in expansion of macro 'smp_load_acquire' (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~~~~ fs//ext4/readpage.c:162:32: error: 'struct inode' has no member named 'i_verity_info'; did you mean 'i_crypt_info'? (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~ include/linux/compiler.h:252:22: note: in definition of macro '__READ_ONCE' __read_once_size(&(x), __u.__c, sizeof(x)); \ ^ >> include/asm-generic/barrier.h:190:21: note: in expansion of macro 'READ_ONCE' typeof(*p) ___p1 = READ_ONCE(*p); \ ^~~~~~~~~ fs//ext4/readpage.c:162:7: note: in expansion of macro 'smp_load_acquire' (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~~~~ fs//ext4/readpage.c:162:32: error: 'struct inode' has no member named 'i_verity_info'; did you mean 'i_crypt_info'? (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~ include/linux/compiler.h:252:42: note: in definition of macro '__READ_ONCE' __read_once_size(&(x), __u.__c, sizeof(x)); \ ^ >> include/asm-generic/barrier.h:190:21: note: in expansion of macro 'READ_ONCE' typeof(*p) ___p1 = READ_ONCE(*p); \ ^~~~~~~~~ fs//ext4/readpage.c:162:7: note: in expansion of macro 'smp_load_acquire' (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~~~~ fs//ext4/readpage.c:162:32: error: 'struct inode' has no member named 'i_verity_info'; did you mean 'i_crypt_info'? (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~ include/linux/compiler.h:254:30: note: in definition of macro '__READ_ONCE' __read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \ ^ >> include/asm-generic/barrier.h:190:21: note: in expansion of macro 'READ_ONCE' typeof(*p) ___p1 = READ_ONCE(*p); \ ^~~~~~~~~ fs//ext4/readpage.c:162:7: note: in expansion of macro 'smp_load_acquire' (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~~~~ fs//ext4/readpage.c:162:32: error: 'struct inode' has no member named 'i_verity_info'; did you mean 'i_crypt_info'? (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~ include/linux/compiler.h:254:50: note: in definition of macro '__READ_ONCE' __read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \ ^ >> include/asm-generic/barrier.h:190:21: note: in expansion of macro 'READ_ONCE' typeof(*p) ___p1 = READ_ONCE(*p); \ ^~~~~~~~~ fs//ext4/readpage.c:162:7: note: in expansion of macro 'smp_load_acquire' (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~~~~ fs//ext4/readpage.c:162:32: error: 'struct inode' has no member named 'i_verity_info'; did you mean 'i_crypt_info'? (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~ include/linux/compiler.h:316:19: note: in definition of macro '__compiletime_assert' bool __cond = !(condition); \ ^~~~~~~~~ include/linux/compiler.h:339:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:342:2: note: in expansion of macro 'compiletime_assert' compiletime_assert(__native_word(t), \ ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:342:21: note: in expansion of macro '__native_word' compiletime_assert(__native_word(t), \ ^~~~~~~~~~~~~ include/asm-generic/barrier.h:191:2: note: in expansion of macro 'compiletime_assert_atomic_type' compiletime_assert_atomic_type(*p); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs//ext4/readpage.c:162:7: note: in expansion of macro 'smp_load_acquire' (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~~~~ fs//ext4/readpage.c:162:32: error: 'struct inode' has no member named 'i_verity_info'; did you mean 'i_crypt_info'? (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~ include/linux/compiler.h:316:19: note: in definition of macro '__compiletime_assert' bool __cond = !(condition); \ ^~~~~~~~~ include/linux/compiler.h:339:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:342:2: note: in expansion of macro 'compiletime_assert' compiletime_assert(__native_word(t), \ ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:342:21: note: in expansion of macro '__native_word' compiletime_assert(__native_word(t), \ ^~~~~~~~~~~~~ include/asm-generic/barrier.h:191:2: note: in expansion of macro 'compiletime_assert_atomic_type' compiletime_assert_atomic_type(*p); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs//ext4/readpage.c:162:7: note: in expansion of macro 'smp_load_acquire' (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~~~~ fs//ext4/readpage.c:162:32: error: 'struct inode' has no member named 'i_verity_info'; did you mean 'i_crypt_info'? (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~ include/linux/compiler.h:316:19: note: in definition of macro '__compiletime_assert' bool __cond = !(condition); \ ^~~~~~~~~ include/linux/compiler.h:339:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:342:2: note: in expansion of macro 'compiletime_assert' compiletime_assert(__native_word(t), \ ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:342:21: note: in expansion of macro '__native_word' compiletime_assert(__native_word(t), \ ^~~~~~~~~~~~~ include/asm-generic/barrier.h:191:2: note: in expansion of macro 'compiletime_assert_atomic_type' compiletime_assert_atomic_type(*p); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs//ext4/readpage.c:162:7: note: in expansion of macro 'smp_load_acquire' (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~~~~ fs//ext4/readpage.c:162:32: error: 'struct inode' has no member named 'i_verity_info'; did you mean 'i_crypt_info'? (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~ include/linux/compiler.h:316:19: note: in definition of macro '__compiletime_assert' bool __cond = !(condition); \ ^~~~~~~~~ include/linux/compiler.h:339:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:342:2: note: in expansion of macro 'compiletime_assert' compiletime_assert(__native_word(t), \ ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:342:21: note: in expansion of macro '__native_word' compiletime_assert(__native_word(t), \ ^~~~~~~~~~~~~ include/asm-generic/barrier.h:191:2: note: in expansion of macro 'compiletime_assert_atomic_type' compiletime_assert_atomic_type(*p); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs//ext4/readpage.c:162:7: note: in expansion of macro 'smp_load_acquire' (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~~~~ fs//ext4/readpage.c:162:47: warning: comparison between pointer and integer (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~ -- In file included from arch/x86/include/asm/barrier.h:86, from include/linux/compiler.h:245, from include/linux/kernel.h:10, from fs/ext4/readpage.c:31: fs/ext4/readpage.c: In function 'get_bio_post_read_ctx': fs/ext4/readpage.c:162:32: error: 'struct inode' has no member named 'i_verity_info'; did you mean 'i_crypt_info'? (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~ include/asm-generic/barrier.h:190:10: note: in definition of macro 'smp_load_acquire' typeof(*p) ___p1 = READ_ONCE(*p); \ ^ In file included from include/linux/kernel.h:10, from fs/ext4/readpage.c:31: fs/ext4/readpage.c:162:32: error: 'struct inode' has no member named 'i_verity_info'; did you mean 'i_crypt_info'? (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~ include/linux/compiler.h:250:17: note: in definition of macro '__READ_ONCE' union { typeof(x) __val; char __c[1]; } __u; \ ^ >> include/asm-generic/barrier.h:190:21: note: in expansion of macro 'READ_ONCE' typeof(*p) ___p1 = READ_ONCE(*p); \ ^~~~~~~~~ fs/ext4/readpage.c:162:7: note: in expansion of macro 'smp_load_acquire' (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~~~~ fs/ext4/readpage.c:162:32: error: 'struct inode' has no member named 'i_verity_info'; did you mean 'i_crypt_info'? (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~ include/linux/compiler.h:252:22: note: in definition of macro '__READ_ONCE' __read_once_size(&(x), __u.__c, sizeof(x)); \ ^ >> include/asm-generic/barrier.h:190:21: note: in expansion of macro 'READ_ONCE' typeof(*p) ___p1 = READ_ONCE(*p); \ ^~~~~~~~~ fs/ext4/readpage.c:162:7: note: in expansion of macro 'smp_load_acquire' (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~~~~ fs/ext4/readpage.c:162:32: error: 'struct inode' has no member named 'i_verity_info'; did you mean 'i_crypt_info'? (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~ include/linux/compiler.h:252:42: note: in definition of macro '__READ_ONCE' __read_once_size(&(x), __u.__c, sizeof(x)); \ ^ >> include/asm-generic/barrier.h:190:21: note: in expansion of macro 'READ_ONCE' typeof(*p) ___p1 = READ_ONCE(*p); \ ^~~~~~~~~ fs/ext4/readpage.c:162:7: note: in expansion of macro 'smp_load_acquire' (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~~~~ fs/ext4/readpage.c:162:32: error: 'struct inode' has no member named 'i_verity_info'; did you mean 'i_crypt_info'? (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~ include/linux/compiler.h:254:30: note: in definition of macro '__READ_ONCE' __read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \ ^ >> include/asm-generic/barrier.h:190:21: note: in expansion of macro 'READ_ONCE' typeof(*p) ___p1 = READ_ONCE(*p); \ ^~~~~~~~~ fs/ext4/readpage.c:162:7: note: in expansion of macro 'smp_load_acquire' (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~~~~ fs/ext4/readpage.c:162:32: error: 'struct inode' has no member named 'i_verity_info'; did you mean 'i_crypt_info'? (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~ include/linux/compiler.h:254:50: note: in definition of macro '__READ_ONCE' __read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \ ^ >> include/asm-generic/barrier.h:190:21: note: in expansion of macro 'READ_ONCE' typeof(*p) ___p1 = READ_ONCE(*p); \ ^~~~~~~~~ fs/ext4/readpage.c:162:7: note: in expansion of macro 'smp_load_acquire' (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~~~~ fs/ext4/readpage.c:162:32: error: 'struct inode' has no member named 'i_verity_info'; did you mean 'i_crypt_info'? (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~ include/linux/compiler.h:316:19: note: in definition of macro '__compiletime_assert' bool __cond = !(condition); \ ^~~~~~~~~ include/linux/compiler.h:339:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:342:2: note: in expansion of macro 'compiletime_assert' compiletime_assert(__native_word(t), \ ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:342:21: note: in expansion of macro '__native_word' compiletime_assert(__native_word(t), \ ^~~~~~~~~~~~~ include/asm-generic/barrier.h:191:2: note: in expansion of macro 'compiletime_assert_atomic_type' compiletime_assert_atomic_type(*p); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ext4/readpage.c:162:7: note: in expansion of macro 'smp_load_acquire' (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~~~~ fs/ext4/readpage.c:162:32: error: 'struct inode' has no member named 'i_verity_info'; did you mean 'i_crypt_info'? (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~ include/linux/compiler.h:316:19: note: in definition of macro '__compiletime_assert' bool __cond = !(condition); \ ^~~~~~~~~ include/linux/compiler.h:339:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:342:2: note: in expansion of macro 'compiletime_assert' compiletime_assert(__native_word(t), \ ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:342:21: note: in expansion of macro '__native_word' compiletime_assert(__native_word(t), \ ^~~~~~~~~~~~~ include/asm-generic/barrier.h:191:2: note: in expansion of macro 'compiletime_assert_atomic_type' compiletime_assert_atomic_type(*p); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ext4/readpage.c:162:7: note: in expansion of macro 'smp_load_acquire' (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~~~~ fs/ext4/readpage.c:162:32: error: 'struct inode' has no member named 'i_verity_info'; did you mean 'i_crypt_info'? (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~ include/linux/compiler.h:316:19: note: in definition of macro '__compiletime_assert' bool __cond = !(condition); \ ^~~~~~~~~ include/linux/compiler.h:339:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:342:2: note: in expansion of macro 'compiletime_assert' compiletime_assert(__native_word(t), \ ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:342:21: note: in expansion of macro '__native_word' compiletime_assert(__native_word(t), \ ^~~~~~~~~~~~~ include/asm-generic/barrier.h:191:2: note: in expansion of macro 'compiletime_assert_atomic_type' compiletime_assert_atomic_type(*p); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ext4/readpage.c:162:7: note: in expansion of macro 'smp_load_acquire' (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~~~~ fs/ext4/readpage.c:162:32: error: 'struct inode' has no member named 'i_verity_info'; did you mean 'i_crypt_info'? (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~ include/linux/compiler.h:316:19: note: in definition of macro '__compiletime_assert' bool __cond = !(condition); \ ^~~~~~~~~ include/linux/compiler.h:339:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:342:2: note: in expansion of macro 'compiletime_assert' compiletime_assert(__native_word(t), \ ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:342:21: note: in expansion of macro '__native_word' compiletime_assert(__native_word(t), \ ^~~~~~~~~~~~~ include/asm-generic/barrier.h:191:2: note: in expansion of macro 'compiletime_assert_atomic_type' compiletime_assert_atomic_type(*p); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ext4/readpage.c:162:7: note: in expansion of macro 'smp_load_acquire' (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~~~~~~~~~~~~~~~ fs/ext4/readpage.c:162:47: warning: comparison between pointer and integer (smp_load_acquire(&inode->i_verity_info) != NULL) && ^~ vim +/READ_ONCE +190 include/asm-generic/barrier.h 47933ad4 Peter Zijlstra 2013-11-06 186 57f7c037 Michael S. Tsirkin 2015-12-27 187 #ifndef smp_load_acquire 47933ad4 Peter Zijlstra 2013-11-06 188 #define smp_load_acquire(p) \ 47933ad4 Peter Zijlstra 2013-11-06 189 ({ \ 76695af2 Andrey Konovalov 2015-08-02 @190 typeof(*p) ___p1 = READ_ONCE(*p); \ 47933ad4 Peter Zijlstra 2013-11-06 191 compiletime_assert_atomic_type(*p); \ a9e4252a Michael S. Tsirkin 2015-12-27 192 barrier(); \ 47933ad4 Peter Zijlstra 2013-11-06 193 ___p1; \ 47933ad4 Peter Zijlstra 2013-11-06 194 }) 57f7c037 Michael S. Tsirkin 2015-12-27 195 #endif 47933ad4 Peter Zijlstra 2013-11-06 196 :::::: The code at line 190 was first introduced by commit :::::: 76695af20c015206cffb84b15912be6797d0cca2 locking, arch: use WRITE_ONCE()/READ_ONCE() in smp_store_release()/smp_load_acquire() :::::: TO: Andrey Konovalov <andreyknvl@xxxxxxxxxx> :::::: CC: Ingo Molnar <mingo@xxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip