lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201805291215.dJMuGvgv%fengguang.wu@intel.com>
Date:   Tue, 29 May 2018 12:59:22 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Theodore Ts'o <tytso@....edu>
Cc:     kbuild-all@...org, linux-ext4@...r.kernel.org
Subject: [ext4:fsverity 2/2] arch/sparc/include/asm/barrier_64.h:50:21: note:
 in expansion of macro 'READ_ONCE'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git fsverity
head:   170fb32af57ab4d16a7b771a68b9ff5344a00a22
commit: 170fb32af57ab4d16a7b771a68b9ff5344a00a22 [2/2] ext4: add fsverity read support
config: sparc64-defconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 170fb32af57ab4d16a7b771a68b9ff5344a00a22
        # save the attached .config to linux build tree
        make.cross ARCH=sparc64 

All warnings (new ones prefixed by >>):

   In file included from arch/sparc/include/asm/barrier.h:5:0,
                    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_write_hint'?
         (smp_load_acquire(&inode->i_verity_info) != NULL) &&
                                   ^
   arch/sparc/include/asm/barrier_64.h:50:10: note: in definition of macro '__smp_load_acquire'
     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) &&
          ^~~~~~~~~~~~~~~~
   In file included from include/linux/kernel.h:10:0,
                    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_write_hint'?
         (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;   \
                    ^
>> arch/sparc/include/asm/barrier_64.h:50:21: note: in expansion of macro 'READ_ONCE'
     typeof(*p) ___p1 = READ_ONCE(*p);    \
                        ^~~~~~~~~
   include/asm-generic/barrier.h:161:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(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_write_hint'?
         (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));  \
                         ^
>> arch/sparc/include/asm/barrier_64.h:50:21: note: in expansion of macro 'READ_ONCE'
     typeof(*p) ___p1 = READ_ONCE(*p);    \
                        ^~~~~~~~~
   include/asm-generic/barrier.h:161:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(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_write_hint'?
         (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));  \
                                             ^
>> arch/sparc/include/asm/barrier_64.h:50:21: note: in expansion of macro 'READ_ONCE'
     typeof(*p) ___p1 = READ_ONCE(*p);    \
                        ^~~~~~~~~
   include/asm-generic/barrier.h:161:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(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_write_hint'?
         (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)); \
                                 ^
>> arch/sparc/include/asm/barrier_64.h:50:21: note: in expansion of macro 'READ_ONCE'
     typeof(*p) ___p1 = READ_ONCE(*p);    \
                        ^~~~~~~~~
   include/asm-generic/barrier.h:161:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(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_write_hint'?
         (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)); \
                                                     ^
>> arch/sparc/include/asm/barrier_64.h:50:21: note: in expansion of macro 'READ_ONCE'
     typeof(*p) ___p1 = READ_ONCE(*p);    \
                        ^~~~~~~~~
   include/asm-generic/barrier.h:161:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(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_write_hint'?
         (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),    \
                        ^~~~~~~~~~~~~
>> arch/sparc/include/asm/barrier_64.h:51:2: note: in expansion of macro 'compiletime_assert_atomic_type'
     compiletime_assert_atomic_type(*p);    \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/barrier.h:161:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(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_write_hint'?
         (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),    \
                        ^~~~~~~~~~~~~
>> arch/sparc/include/asm/barrier_64.h:51:2: note: in expansion of macro 'compiletime_assert_atomic_type'
     compiletime_assert_atomic_type(*p);    \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/barrier.h:161:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(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_write_hint'?
         (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),    \
                        ^~~~~~~~~~~~~
>> arch/sparc/include/asm/barrier_64.h:51:2: note: in expansion of macro 'compiletime_assert_atomic_type'
     compiletime_assert_atomic_type(*p);    \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/barrier.h:161:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(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_write_hint'?
         (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),    \
                        ^~~~~~~~~~~~~
>> arch/sparc/include/asm/barrier_64.h:51:2: note: in expansion of macro 'compiletime_assert_atomic_type'
     compiletime_assert_atomic_type(*p);    \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/barrier.h:161:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(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/sparc/include/asm/barrier.h:5:0,
                    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_write_hint'?
         (smp_load_acquire(&inode->i_verity_info) != NULL) &&
                                   ^
   arch/sparc/include/asm/barrier_64.h:50:10: note: in definition of macro '__smp_load_acquire'
     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) &&
          ^~~~~~~~~~~~~~~~
   In file included from include/linux/kernel.h:10:0,
                    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_write_hint'?
         (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;   \
                    ^
>> arch/sparc/include/asm/barrier_64.h:50:21: note: in expansion of macro 'READ_ONCE'
     typeof(*p) ___p1 = READ_ONCE(*p);    \
                        ^~~~~~~~~
   include/asm-generic/barrier.h:161:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(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_write_hint'?
         (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));  \
                         ^
>> arch/sparc/include/asm/barrier_64.h:50:21: note: in expansion of macro 'READ_ONCE'
     typeof(*p) ___p1 = READ_ONCE(*p);    \
                        ^~~~~~~~~
   include/asm-generic/barrier.h:161:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(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_write_hint'?
         (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));  \
                                             ^
>> arch/sparc/include/asm/barrier_64.h:50:21: note: in expansion of macro 'READ_ONCE'
     typeof(*p) ___p1 = READ_ONCE(*p);    \
                        ^~~~~~~~~
   include/asm-generic/barrier.h:161:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(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_write_hint'?
         (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)); \
                                 ^
>> arch/sparc/include/asm/barrier_64.h:50:21: note: in expansion of macro 'READ_ONCE'
     typeof(*p) ___p1 = READ_ONCE(*p);    \
                        ^~~~~~~~~
   include/asm-generic/barrier.h:161:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(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_write_hint'?
         (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)); \
                                                     ^
>> arch/sparc/include/asm/barrier_64.h:50:21: note: in expansion of macro 'READ_ONCE'
     typeof(*p) ___p1 = READ_ONCE(*p);    \
                        ^~~~~~~~~
   include/asm-generic/barrier.h:161:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(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_write_hint'?
         (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),    \
                        ^~~~~~~~~~~~~
>> arch/sparc/include/asm/barrier_64.h:51:2: note: in expansion of macro 'compiletime_assert_atomic_type'
     compiletime_assert_atomic_type(*p);    \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/barrier.h:161:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(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_write_hint'?
         (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),    \
                        ^~~~~~~~~~~~~
>> arch/sparc/include/asm/barrier_64.h:51:2: note: in expansion of macro 'compiletime_assert_atomic_type'
     compiletime_assert_atomic_type(*p);    \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/barrier.h:161:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(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_write_hint'?
         (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),    \
                        ^~~~~~~~~~~~~
>> arch/sparc/include/asm/barrier_64.h:51:2: note: in expansion of macro 'compiletime_assert_atomic_type'
     compiletime_assert_atomic_type(*p);    \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/barrier.h:161:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(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_write_hint'?
         (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),    \
                        ^~~~~~~~~~~~~
>> arch/sparc/include/asm/barrier_64.h:51:2: note: in expansion of macro 'compiletime_assert_atomic_type'
     compiletime_assert_atomic_type(*p);    \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/barrier.h:161:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(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 +50 arch/sparc/include/asm/barrier_64.h

47933ad4 Peter Zijlstra     2013-11-06  47  
45d9b859 Michael S. Tsirkin 2015-12-27  48  #define __smp_load_acquire(p)						\
47933ad4 Peter Zijlstra     2013-11-06  49  ({									\
76695af2 Andrey Konovalov   2015-08-02 @50  	typeof(*p) ___p1 = READ_ONCE(*p);				\
47933ad4 Peter Zijlstra     2013-11-06 @51  	compiletime_assert_atomic_type(*p);				\
47933ad4 Peter Zijlstra     2013-11-06  52  	barrier();							\
47933ad4 Peter Zijlstra     2013-11-06  53  	___p1;								\
47933ad4 Peter Zijlstra     2013-11-06  54  })
47933ad4 Peter Zijlstra     2013-11-06  55  

:::::: The code at line 50 was first introduced by commit
:::::: 76695af20c015206cffb84b15912be6797d0cca2 locking, arch: use WRITE_ONCE()/READ_ONCE() in smp_store_release()/smp_load_acquire()

:::::: TO: Andrey Konovalov <andreyknvl@...gle.com>
:::::: CC: Ingo Molnar <mingo@...nel.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Download attachment ".config.gz" of type "application/gzip" (17379 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ