tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing head: 9b4e18f032db160a70d73d3cdf3a0bff229686b4 commit: 2554e6ba28a25f00cf1258d984a695e7ae391af2 [20/49] 8250_men_mcb: Read num ports from register data. config: x86_64-randconfig-r093-20230725 (https://download.01.org/0day-ci/archive/20230726/202307261517.x1O9OAkd-lkp@xxxxxxxxx/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce: (https://download.01.org/0day-ci/archive/20230726/202307261517.x1O9OAkd-lkp@xxxxxxxxx/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@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202307261517.x1O9OAkd-lkp@xxxxxxxxx/ sparse warnings: (new ones prefixed by >>) >> drivers/tty/serial/8250/8250_men_mcb.c:92:21: sparse: sparse: cast removes address space '__iomem' of expression >> drivers/tty/serial/8250/8250_men_mcb.c:92:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/tty/serial/8250/8250_men_mcb.c:92:21: sparse: expected void const volatile [noderef] __iomem *addr drivers/tty/serial/8250/8250_men_mcb.c:92:21: sparse: got void * vim +/__iomem +92 drivers/tty/serial/8250/8250_men_mcb.c 83 84 static int read_uarts_available_from_register(void __iomem *membase, 85 u8 *uarts_available) 86 { 87 void __iomem *mem; 88 int reg_value; 89 90 mem = membase + MEN_Z025_REGISTER_OFFSET; 91 > 92 reg_value = MEN_READ_REGISTER(membase); 93 94 *uarts_available = reg_value >> 4; 95 96 return 0; 97 } 98 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki