All of lore.kernel.org
 help / color / mirror / Atom feed
* [opencloudos:next 25/98] net/core/net-procfs.c:344:45: sparse: sparse: cast removes address space '__percpu' of expression
@ 2024-03-05  0:01 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2024-03-05  0:01 UTC (permalink / raw)
  To: jasperwang, kaixuxia, frankjpliu, kasong, sagazchen, kernelxing,
	aurelianliu, jason.zeng, wu.zheng, yingbao.jia, pei.p.jia
  Cc: oe-kbuild-all

tree:   https://gitee.com/OpenCloudOS/OpenCloudOS-Kernel.git next
head:   a4b2dc2ffad1810ebe7a86710aa1e5cc312aa2a1
commit: d9324ddd538a0b57dbee8623806ff9b9f7811202 [25/98] net: dev ipv4/v6 stat
config: x86_64-randconfig-122-20240303 (https://download.01.org/0day-ci/archive/20240305/202403050701.qou7DsLb-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240305/202403050701.qou7DsLb-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/202403050701.qou7DsLb-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> net/core/net-procfs.c:344:45: sparse: sparse: cast removes address space '__percpu' of expression
>> net/core/net-procfs.c:344:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void [noderef] __percpu *mib @@     got void [noderef] __percpu ** @@
   net/core/net-procfs.c:344:45: sparse:     expected void [noderef] __percpu *mib
   net/core/net-procfs.c:344:45: sparse:     got void [noderef] __percpu **

vim +/__percpu +344 net/core/net-procfs.c

   334	
   335	static void dev_ext_seq_printf_stats(struct seq_file *seq, void *v)
   336	{
   337		struct net_device *dev = (struct net_device *)v;
   338		int i;
   339	
   340		seq_printf(seq, "%10s  ", dev->name);
   341	
   342		for (i = 0; snmp_devstat_list[i].name; i++)
   343			seq_printf(seq, " %12lu",
 > 344				   snmp_fold_field((void __percpu **)
   345						   dev->mib.dev_statistics,
   346						   snmp_devstat_list[i].entry));
   347		seq_putc(seq, '\n');
   348	}
   349	

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [opencloudos:next 25/98] net/core/net-procfs.c:344:45: sparse: sparse: cast removes address space '__percpu' of expression
@ 2024-10-29  8:31 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2024-10-29  8:31 UTC (permalink / raw)
  To: kaixuxia, frankjpliu, kasong, sagazchen, kernelxing, aurelianliu,
	deshengwu, flyingpeng, jingqunli, jason.zeng, wu.zheng,
	yingbao.jia, pei.p.jia
  Cc: oe-kbuild-all

tree:   https://gitee.com/OpenCloudOS/OpenCloudOS-Kernel.git next
head:   ce9f9d823a41831d622fa11e29c3d620c044f51b
commit: d9324ddd538a0b57dbee8623806ff9b9f7811202 [25/98] net: dev ipv4/v6 stat
config: x86_64-randconfig-122-20241029 (https://download.01.org/0day-ci/archive/20241029/202410291614.5UV1JF06-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241029/202410291614.5UV1JF06-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/202410291614.5UV1JF06-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> net/core/net-procfs.c:344:45: sparse: sparse: cast removes address space '__percpu' of expression
>> net/core/net-procfs.c:344:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void [noderef] __percpu *mib @@     got void [noderef] __percpu ** @@
   net/core/net-procfs.c:344:45: sparse:     expected void [noderef] __percpu *mib
   net/core/net-procfs.c:344:45: sparse:     got void [noderef] __percpu **

vim +/__percpu +344 net/core/net-procfs.c

   334	
   335	static void dev_ext_seq_printf_stats(struct seq_file *seq, void *v)
   336	{
   337		struct net_device *dev = (struct net_device *)v;
   338		int i;
   339	
   340		seq_printf(seq, "%10s  ", dev->name);
   341	
   342		for (i = 0; snmp_devstat_list[i].name; i++)
   343			seq_printf(seq, " %12lu",
 > 344				   snmp_fold_field((void __percpu **)
   345						   dev->mib.dev_statistics,
   346						   snmp_devstat_list[i].entry));
   347		seq_putc(seq, '\n');
   348	}
   349	

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [opencloudos:next 25/98] net/core/net-procfs.c:344:45: sparse: sparse: cast removes address space '__percpu' of expression
@ 2024-10-30 19:11 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2024-10-30 19:11 UTC (permalink / raw)
  To: kaixuxia, frankjpliu, kasong, sagazchen, kernelxing, aurelianliu,
	deshengwu, flyingpeng, jingqunli, jason.zeng, wu.zheng,
	yingbao.jia, pei.p.jia
  Cc: oe-kbuild-all

tree:   https://gitee.com/OpenCloudOS/OpenCloudOS-Kernel.git next
head:   ce9f9d823a41831d622fa11e29c3d620c044f51b
commit: d9324ddd538a0b57dbee8623806ff9b9f7811202 [25/98] net: dev ipv4/v6 stat
config: x86_64-randconfig-122-20241029 (https://download.01.org/0day-ci/archive/20241031/202410310318.WeKIPsO0-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241031/202410310318.WeKIPsO0-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/202410310318.WeKIPsO0-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> net/core/net-procfs.c:344:45: sparse: sparse: cast removes address space '__percpu' of expression
>> net/core/net-procfs.c:344:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void [noderef] __percpu *mib @@     got void [noderef] __percpu ** @@
   net/core/net-procfs.c:344:45: sparse:     expected void [noderef] __percpu *mib
   net/core/net-procfs.c:344:45: sparse:     got void [noderef] __percpu **

vim +/__percpu +344 net/core/net-procfs.c

   334	
   335	static void dev_ext_seq_printf_stats(struct seq_file *seq, void *v)
   336	{
   337		struct net_device *dev = (struct net_device *)v;
   338		int i;
   339	
   340		seq_printf(seq, "%10s  ", dev->name);
   341	
   342		for (i = 0; snmp_devstat_list[i].name; i++)
   343			seq_printf(seq, " %12lu",
 > 344				   snmp_fold_field((void __percpu **)
   345						   dev->mib.dev_statistics,
   346						   snmp_devstat_list[i].entry));
   347		seq_putc(seq, '\n');
   348	}
   349	

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-10-30 19:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-30 19:11 [opencloudos:next 25/98] net/core/net-procfs.c:344:45: sparse: sparse: cast removes address space '__percpu' of expression kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2024-10-29  8:31 kernel test robot
2024-03-05  0:01 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.