linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [tty:tty-testing 20/49] drivers/tty/serial/8250/8250_men_mcb.c:92:21: sparse: sparse: cast removes address space '__iomem' of expression
@ 2023-07-26  7:34 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-07-26  7:34 UTC (permalink / raw)
  To: Rodríguez Barbarin, José Javier
  Cc: oe-kbuild-all, linux-serial, Greg Kroah-Hartman,
	Jorge Sanjuan Garcia, Javier Rodriguez

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@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230726/202307261517.x1O9OAkd-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/202307261517.x1O9OAkd-lkp@intel.com/

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-26  7:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-26  7:34 [tty:tty-testing 20/49] drivers/tty/serial/8250/8250_men_mcb.c:92:21: sparse: sparse: cast removes address space '__iomem' of expression kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).