[openeuler:OLK-6.6 3508/3508] drivers/ub/urma/ubcore/ubcore_cdev_file.c:810:19: sparse: sparse: incompatible types in comparison expression (different address spaces):
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: d281438782e3c28a3df71a64513a3312d43dcf01 commit: 8debc601f33e3b6848ccaa54209cebe0b684f844 [3508/3508] urma: implement ubcore sysfs interface and device management config: arm64-randconfig-r112-20251210 (https://download.01.org/0day-ci/archive/20251211/202512110005.f16tR709-lkp@i...) compiler: aarch64-linux-gcc (GCC) 13.4.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251211/202512110005.f16tR709-lkp@i...) 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/202512110005.f16tR709-lkp@intel.com/ sparse warnings: (new ones prefixed by >>)
drivers/ub/urma/ubcore/ubcore_cdev_file.c:810:19: sparse: sparse: incompatible types in comparison expression (different address spaces): drivers/ub/urma/ubcore/ubcore_cdev_file.c:810:19: sparse: struct net_device [noderef] __rcu * drivers/ub/urma/ubcore/ubcore_cdev_file.c:810:19: sparse: struct net_device * drivers/ub/urma/ubcore/ubcore_cdev_file.c:1106:5: sparse: sparse: symbol 'ubcore_create_port_attr_files' was not declared. Should it be static? drivers/ub/urma/ubcore/ubcore_cdev_file.c:1197:5: sparse: sparse: symbol 'ubcore_create_dev_attr_files' was not declared. Should it be static? drivers/ub/urma/ubcore/ubcore_cdev_file.c:1217:6: sparse: sparse: symbol 'ubcore_remove_port_attr_files' was not declared. Should it be static? drivers/ub/urma/ubcore/ubcore_cdev_file.c:1223:6: sparse: sparse: symbol 'ubcore_remove_dev_attr_files' was not declared. Should it be static?
vim +810 drivers/ub/urma/ubcore/ubcore_cdev_file.c 800 801 static ssize_t net_dev_show_cb(struct ubcore_device *dev, char *buf) 802 { 803 struct net_device *net_dev; 804 int ret = 0; 805 806 if (!dev->netdev) 807 return 0; 808 809 rcu_read_lock();
810 net_dev = rcu_dereference(dev->netdev); 811 if (net_dev) 812 ret = snprintf(buf, IFNAMSIZ, "%s\n", net_dev->name); 813 rcu_read_unlock(); 814 815 return ret; 816 } 817
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot