diff options
author | Sanjuán García, Jorge <Jorge.SanjuanGarcia@duagon.com> | 2023-08-03 09:59:07 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-08-04 15:09:51 +0200 |
commit | 593135f09368dbddc0244b859a7c3befb97214e0 (patch) | |
tree | 0897e232dc54561cb930ee44bc9656fcd40c2517 /drivers | |
parent | a10b6a03e6377f8e658ee3c9f4bc0feae30f3df2 (diff) | |
download | linux-stable-593135f09368dbddc0244b859a7c3befb97214e0.tar.gz linux-stable-593135f09368dbddc0244b859a7c3befb97214e0.tar.bz2 linux-stable-593135f09368dbddc0244b859a7c3befb97214e0.zip |
8250_men_mcb: remove unnecessary cast when reading register
Fixes following sparse warning:
drivers/tty/serial/8250/8250_men_mcb.c:92:21: sparse: cast removes
address space '__iomem' of expression
drivers/tty/serial/8250/8250_men_mcb.c:92:21: sparse: incorrect type
in argument 1 (different address spaces) expected void const volatile
[noderef] __iomem *addr got void *
Fixes: 2554e6ba28a2 ("8250_men_mcb: Read num ports from register data.")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202307261517.x1O9OAkd-lkp@intel.com/
Signed-off-by: Jorge Sanjuan Garcia <jorge.sanjuangarcia@duagon.com>
Link: https://lore.kernel.org/r/20230803095816.110864-1-jorge.sanjuangarcia@duagon.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/tty/serial/8250/8250_men_mcb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/8250/8250_men_mcb.c b/drivers/tty/serial/8250/8250_men_mcb.c index db62a3b15f19..dc9e093b1cb3 100644 --- a/drivers/tty/serial/8250/8250_men_mcb.c +++ b/drivers/tty/serial/8250/8250_men_mcb.c @@ -40,7 +40,7 @@ #define MEN_UART3_OFFSET (MEN_UART2_OFFSET + MEN_UART_MEM_SIZE) #define MEN_UART4_OFFSET (MEN_UART3_OFFSET + MEN_UART_MEM_SIZE) -#define MEN_READ_REGISTER(addr) readb((void *)addr) +#define MEN_READ_REGISTER(addr) readb(addr) #define MAX_PORTS 4 |