[openeuler:openEuler-1.0-LTS 1719/1719] 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: e6b6811414fe4cfc995369e8bda32fc1b4ee1d51 commit: de1b854e74d99da0917ef841500d597f75838dd2 [1719/1719] bdi: get device name under rcu protect config: x86_64-randconfig-121-20250706 (https://download.01.org/0day-ci/archive/20250706/202507061929.YtEh1pDk-lkp@i...) compiler: clang version 20.1.7 (https://github.com/llvm/llvm-project 6146a88f60492b520a36f8f8f3231e15f3cc6082) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250706/202507061929.YtEh1pDk-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/202507061929.YtEh1pDk-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) fs/fs-writeback.c: note: in included file (through include/linux/kernel.h): /opt/cross/clang-6146a88f60/lib/clang/20/include/stdarg.h:22:44: sparse: sparse: Expected ) in function call /opt/cross/clang-6146a88f60/lib/clang/20/include/stdarg.h:22:44: sparse: sparse: got < /opt/cross/clang-6146a88f60/lib/clang/20/include/stdarg.h:22:43: sparse: sparse: not a function <noident> /opt/cross/clang-6146a88f60/lib/clang/20/include/stdarg.h:22:22: sparse: sparse: bad constant expression type fs/fs-writeback.c: note: in included file (through include/linux/printk.h, include/linux/kernel.h): /opt/cross/clang-6146a88f60/lib/clang/20/include/stdarg.h:22:44: sparse: sparse: Expected ) in function call /opt/cross/clang-6146a88f60/lib/clang/20/include/stdarg.h:22:44: sparse: sparse: got < /opt/cross/clang-6146a88f60/lib/clang/20/include/stdarg.h:22:43: sparse: sparse: not a function <noident> /opt/cross/clang-6146a88f60/lib/clang/20/include/stdarg.h:22:22: sparse: sparse: bad constant expression type fs/fs-writeback.c: note: in included file (through include/linux/string.h, include/linux/bitmap.h, include/linux/cpumask.h, ...): /opt/cross/clang-6146a88f60/lib/clang/20/include/stdarg.h:22:44: sparse: sparse: Expected ) in function call /opt/cross/clang-6146a88f60/lib/clang/20/include/stdarg.h:22:44: sparse: sparse: got < /opt/cross/clang-6146a88f60/lib/clang/20/include/stdarg.h:22:43: sparse: sparse: not a function <noident> /opt/cross/clang-6146a88f60/lib/clang/20/include/stdarg.h:22:22: sparse: sparse: bad constant expression type fs/fs-writeback.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] <asn:4> * include/linux/backing-dev.h:510:19: sparse: struct rcu_device * 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] <asn:4> * include/linux/backing-dev.h:510:19: sparse: struct rcu_device * 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] <asn:4> * include/linux/backing-dev.h:510:19: sparse: struct rcu_device * 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] <asn:4> * include/linux/backing-dev.h:510:19: sparse: struct rcu_device * 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] <asn:4> * include/linux/backing-dev.h:510:19: sparse: struct rcu_device * 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] <asn:4> * include/linux/backing-dev.h:510:19: sparse: struct rcu_device * 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] <asn:4> * include/linux/backing-dev.h:510:19: sparse: struct rcu_device * 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] <asn:4> * include/linux/backing-dev.h:510:19: sparse: struct rcu_device * 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] <asn:4> * include/linux/backing-dev.h:510:19: sparse: struct rcu_device * 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] <asn:4> * include/linux/backing-dev.h:510:19: sparse: struct rcu_device * 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] <asn:4> * include/linux/backing-dev.h:510:19: sparse: struct rcu_device * 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] <asn:4> * include/linux/backing-dev.h:510:19: sparse: struct rcu_device * 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] <asn:4> * include/linux/backing-dev.h:510:19: sparse: struct rcu_device * 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] <asn:4> * include/linux/backing-dev.h:510:19: sparse: struct rcu_device * 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] <asn:4> * include/linux/backing-dev.h:510:19: sparse: struct rcu_device * 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] <asn:4> * include/linux/backing-dev.h:510:19: sparse: struct rcu_device * 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] <asn:4> * 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