All of lore.kernel.org
 help / color / mirror / Atom feed
* [anolis-intel-cloud:devel-5.10 1/1] include/net/ip6_fib.h:273:10: error: default initialization of an object of type 'typeof (f6i->expires)' (aka 'const unsigned long') leaves the object uninitialized
@ 2025-07-15  5:34 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-15  5:34 UTC (permalink / raw)
  To: aubrey.li; +Cc: oe-kbuild-all

tree:   https://gitee.com/anolis/intel-cloud-kernel.git devel-5.10
head:   9117970143cf69ace484f08b1d545a03f57c69ff
commit: f55326b5b36a104711ee86c851bd2a981cae61d0 [1/1] anolis: net: supports linkdata ethernet controllers
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20250715/202507151322.RYo5pnBp-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 16534d19bf50bde879a83f0ae62875e2c5120e64)
rustc: rustc 1.58.0 (02072b482 2022-01-11)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250715/202507151322.RYo5pnBp-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507151322.RYo5pnBp-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/net/ethernet/linkdata/sxe/sxepf/sxe_netdev.c:16:
   In file included from include/net/xfrm.h:26:
>> include/net/ip6_fib.h:273:10: error: default initialization of an object of type 'typeof (f6i->expires)' (aka 'const unsigned long') leaves the object uninitialized [-Werror,-Wdefault-const-init-var-unsafe]
     273 |                 return time_after(jiffies, f6i->expires);
         |                        ^
   include/linux/jiffies.h:106:3: note: expanded from macro 'time_after'
     106 |          typecheck(unsigned long, b) && \
         |          ^
   include/linux/typecheck.h:11:12: note: expanded from macro 'typecheck'
      11 |         typeof(x) __dummy2; \
         |                   ^
   1 error generated.


vim +273 include/net/ip6_fib.h

1716a96101c491 Gao feng         2012-04-06  269  
8d1c802b2815ed David Ahern      2018-04-17  270  static inline bool fib6_check_expired(const struct fib6_info *f6i)
1716a96101c491 Gao feng         2012-04-06  271  {
93c2fb253d177a David Ahern      2018-04-18  272  	if (f6i->fib6_flags & RTF_EXPIRES)
14895687d36805 David Ahern      2018-04-17 @273  		return time_after(jiffies, f6i->expires);
14895687d36805 David Ahern      2018-04-17  274  	return false;
1716a96101c491 Gao feng         2012-04-06  275  }
b197df4f0f3782 Martin KaFai Lau 2015-05-22  276  

:::::: The code at line 273 was first introduced by commit
:::::: 14895687d36805f051bb54014c32e48e5937f7e1 net/ipv6: move expires into rt6_info

:::::: TO: David Ahern <dsahern@gmail.com>
:::::: CC: David S. Miller <davem@davemloft.net>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2025-07-15  5:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-15  5:34 [anolis-intel-cloud:devel-5.10 1/1] include/net/ip6_fib.h:273:10: error: default initialization of an object of type 'typeof (f6i->expires)' (aka 'const unsigned long') leaves the object uninitialized kernel 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.