Re: [PATCH 2/2] serial: 8250pci: Recast inb return value

From: Alan Cox
Date: Tue Aug 17 2010 - 05:49:58 EST


On Tue, 17 Aug 2010 09:59:07 +0200
Michal Simek <monstr@xxxxxxxxx> wrote:

> inb returns u8 that's why is necessary to do recast.

ret is an int, inb returns a u8, neither are pointers and the cast
required is implict and defined by the spec.


> drivers/serial/8250_pci.c: In function 'pci_ite887x_init':
> drivers/serial/8250_pci.c:825: warning: cast to pointer from integer of different size
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/