[openeuler:openEuler-1.0-LTS 1510/1510] include/linux/backing-dev.h:510:19: sparse: sparse: incompatible types in comparison expression (different address spaces):

tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: 8a7a3996f4b2078603a8346880dbf5935308a57f commit: de1b854e74d99da0917ef841500d597f75838dd2 [1510/1510] bdi: get device name under rcu protect config: arm64-randconfig-r132-20250322 (https://download.01.org/0day-ci/archive/20250322/202503221640.dSQdYk6c-lkp@i...) compiler: aarch64-linux-gcc (GCC) 13.3.0 reproduce: (https://download.01.org/0day-ci/archive/20250322/202503221640.dSQdYk6c-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/202503221640.dSQdYk6c-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) block/blk-core.c: note: in included file:
include/linux/backing-dev.h:510:19: sparse: sparse: incompatible types in comparison expression (different address spaces): include/linux/backing-dev.h:510:19: sparse: struct rcu_device [noderef] __rcu * include/linux/backing-dev.h:510:19: sparse: struct rcu_device * -- block/bfq-iosched.c: note: in included file: include/linux/backing-dev.h:510:19: sparse: sparse: incompatible types in comparison expression (different address spaces): include/linux/backing-dev.h:510:19: sparse: struct rcu_device [noderef] __rcu * include/linux/backing-dev.h:510:19: sparse: struct rcu_device *
vim +510 include/linux/backing-dev.h 502 503 static inline void bdi_get_dev_name(struct backing_dev_info *bdi, char *dname, 504 int len) 505 { 506 struct rcu_device *rcu_dev; 507 508 rcu_read_lock(); 509
510 rcu_dev = rcu_dereference(bdi->rcu_dev); 511 strlcpy(dname, rcu_dev ? dev_name(&rcu_dev->dev) : "(unknown)", len); 512 513 rcu_read_unlock(); 514 } 515
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot