All of lore.kernel.org
 help / color / mirror / Atom feed
* [dsahern-linux:nexthops/invalidating-dst 1/1] arch/alpha/include/asm/atomic.h:30:25: note: in expansion of macro 'READ_ONCE'
@ 2020-04-29  6:10 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-04-29  6:10 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 5710 bytes --]

tree:   https://github.com/dsahern/linux nexthops/invalidating-dst
head:   39d5d3fb5d48e83ea3df5ddcbeaa3fe9473c447a
commit: 39d5d3fb5d48e83ea3df5ddcbeaa3fe9473c447a [1/1] ipv6: Use global sernum for dst validation with nexthop objects
config: alpha-defconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.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 39d5d3fb5d48e83ea3df5ddcbeaa3fe9473c447a
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=alpha 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from include/linux/rcupdate.h:24,
                    from include/linux/init_task.h:5,
                    from init/init_task.c:2:
   include/net/net_namespace.h: In function 'rt_genid_ipv6':
   include/net/net_namespace.h:442:27: error: 'const struct net' has no member named 'ipv6'; did you mean 'ipv4'?
     442 |  return atomic_read(&net->ipv6.fib6_sernum);
         |                           ^~~~
   include/linux/compiler.h:261:17: note: in definition of macro '__READ_ONCE'
     261 |  union { typeof(x) __val; char __c[1]; } __u;   \
         |                 ^
>> arch/alpha/include/asm/atomic.h:30:25: note: in expansion of macro 'READ_ONCE'
      30 | #define atomic_read(v)  READ_ONCE((v)->counter)
         |                         ^~~~~~~~~
   include/net/net_namespace.h:442:9: note: in expansion of macro 'atomic_read'
     442 |  return atomic_read(&net->ipv6.fib6_sernum);
         |         ^~~~~~~~~~~
   include/net/net_namespace.h:442:27: error: 'const struct net' has no member named 'ipv6'; did you mean 'ipv4'?
     442 |  return atomic_read(&net->ipv6.fib6_sernum);
         |                           ^~~~
   include/linux/compiler.h:263:22: note: in definition of macro '__READ_ONCE'
     263 |   __read_once_size(&(x), __u.__c, sizeof(x));  \
         |                      ^
>> arch/alpha/include/asm/atomic.h:30:25: note: in expansion of macro 'READ_ONCE'
      30 | #define atomic_read(v)  READ_ONCE((v)->counter)
         |                         ^~~~~~~~~
   include/net/net_namespace.h:442:9: note: in expansion of macro 'atomic_read'
     442 |  return atomic_read(&net->ipv6.fib6_sernum);
         |         ^~~~~~~~~~~
   include/net/net_namespace.h:442:27: error: 'const struct net' has no member named 'ipv6'; did you mean 'ipv4'?
     442 |  return atomic_read(&net->ipv6.fib6_sernum);
         |                           ^~~~
   include/linux/compiler.h:263:42: note: in definition of macro '__READ_ONCE'
     263 |   __read_once_size(&(x), __u.__c, sizeof(x));  \
         |                                          ^
>> arch/alpha/include/asm/atomic.h:30:25: note: in expansion of macro 'READ_ONCE'
      30 | #define atomic_read(v)  READ_ONCE((v)->counter)
         |                         ^~~~~~~~~
   include/net/net_namespace.h:442:9: note: in expansion of macro 'atomic_read'
     442 |  return atomic_read(&net->ipv6.fib6_sernum);
         |         ^~~~~~~~~~~
   include/net/net_namespace.h:442:27: error: 'const struct net' has no member named 'ipv6'; did you mean 'ipv4'?
     442 |  return atomic_read(&net->ipv6.fib6_sernum);
         |                           ^~~~
   include/linux/compiler.h:265:30: note: in definition of macro '__READ_ONCE'
     265 |   __read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
         |                              ^
>> arch/alpha/include/asm/atomic.h:30:25: note: in expansion of macro 'READ_ONCE'
      30 | #define atomic_read(v)  READ_ONCE((v)->counter)
         |                         ^~~~~~~~~
   include/net/net_namespace.h:442:9: note: in expansion of macro 'atomic_read'
     442 |  return atomic_read(&net->ipv6.fib6_sernum);
         |         ^~~~~~~~~~~
   include/net/net_namespace.h:442:27: error: 'const struct net' has no member named 'ipv6'; did you mean 'ipv4'?
     442 |  return atomic_read(&net->ipv6.fib6_sernum);
         |                           ^~~~
   include/linux/compiler.h:265:50: note: in definition of macro '__READ_ONCE'
     265 |   __read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
         |                                                  ^
>> arch/alpha/include/asm/atomic.h:30:25: note: in expansion of macro 'READ_ONCE'
      30 | #define atomic_read(v)  READ_ONCE((v)->counter)
         |                         ^~~~~~~~~
   include/net/net_namespace.h:442:9: note: in expansion of macro 'atomic_read'
     442 |  return atomic_read(&net->ipv6.fib6_sernum);
         |         ^~~~~~~~~~~

vim +/READ_ONCE +30 arch/alpha/include/asm/atomic.h

^1da177e4c3f41 include/asm-alpha/atomic.h      Linus Torvalds 2005-04-16  29  
62e8a3258bda11 arch/alpha/include/asm/atomic.h Peter Zijlstra 2015-09-18 @30  #define atomic_read(v)		READ_ONCE((v)->counter)
62e8a3258bda11 arch/alpha/include/asm/atomic.h Peter Zijlstra 2015-09-18  31  #define atomic64_read(v)	READ_ONCE((v)->counter)
^1da177e4c3f41 include/asm-alpha/atomic.h      Linus Torvalds 2005-04-16  32  

:::::: The code at line 30 was first introduced by commit
:::::: 62e8a3258bda118f24ff462fe04cfbe75b8189b5 atomic, arch: Audit atomic_{read,set}()

:::::: TO: Peter Zijlstra <peterz@infradead.org>
:::::: CC: Ingo Molnar <mingo@kernel.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 13739 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-29  6:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-29  6:10 [dsahern-linux:nexthops/invalidating-dst 1/1] arch/alpha/include/asm/atomic.h:30:25: note: in expansion of macro 'READ_ONCE' kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.