serial: 8250: sparse warning of incorrect type
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Thu, 16 Oct 2014 08:46:22 +0000 (14:16 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 22:58:28 +0000 (14:58 -0800)
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 <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250.h

index 458ad28338fee4e4e898c61aac870d8b01a0fbbd..b00836851061e099d517a3600b838b572ef8743d 100644 (file)
@@ -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;
 };