From: Sudip Mukherjee Date: Thu, 16 Oct 2014 08:46:22 +0000 (+0530) Subject: serial: 8250: sparse warning of incorrect type X-Git-Tag: Ubuntu-5.10.0-12.13~15693^2~68 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=7f1dc2f384792f271833cd89a8608d189b63ea6d;p=mirror_ubuntu-hirsute-kernel.git serial: 8250: sparse warning of incorrect type fixed a sparse warning in 8250_core.c : incorrect type in assignment (different address spaces) the warning was because an unsigned char pointer was being assigned to a pointer of unsigned char __iomem type . Signed-off-by: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/8250/8250.h b/drivers/tty/serial/8250/8250.h index 458ad28338fe..b00836851061 100644 --- a/drivers/tty/serial/8250/8250.h +++ b/drivers/tty/serial/8250/8250.h @@ -56,7 +56,7 @@ struct old_serial_port { unsigned int flags; unsigned char hub6; unsigned char io_type; - unsigned char *iomem_base; + unsigned char __iomem *iomem_base; unsigned short iomem_reg_shift; unsigned long irqflags; };