[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1282031947-16483-2-git-send-email-monstr@monstr.eu>
Date: Tue, 17 Aug 2010 09:59:07 +0200
From: Michal Simek <monstr@...str.eu>
To: michal.simek@...alogix.com
Cc: Michal Simek <monstr@...str.eu>,
Andrew Morton <akpm@...ux-foundation.org>,
Greg Kroah-Hartman <gregkh@...e.de>,
Alan Cox <alan@...ux.intel.com>,
Lennert Buytenhek <buytenh@...tstofly.org>,
Lytochkin Boris <lytboris@...il.com>,
linux-serial@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 2/2] serial: 8250pci: Recast inb return value
inb returns u8 that's why is necessary to do recast.
Compilation warning:
CC drivers/serial/8250_pci.o
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
Signed-off-by: Michal Simek <monstr@...str.eu>
CC: Andrew Morton <akpm@...ux-foundation.org>
CC: Greg Kroah-Hartman <gregkh@...e.de>
CC: Alan Cox <alan@...ux.intel.com>
CC: Lennert Buytenhek <buytenh@...tstofly.org>
CC: Lytochkin Boris <lytboris@...il.com>
CC: linux-serial@...r.kernel.org
CC: linux-kernel@...r.kernel.org
---
drivers/serial/8250_pci.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/serial/8250_pci.c b/drivers/serial/8250_pci.c
index 53be4d3..cc11faa 100644
--- a/drivers/serial/8250_pci.c
+++ b/drivers/serial/8250_pci.c
@@ -822,7 +822,7 @@ static int pci_ite887x_init(struct pci_dev *dev)
/* write INTCBAR - ioport */
pci_write_config_dword(dev, ITE_887x_INTCBAR,
inta_addr[i]);
- ret = inb(inta_addr[i]);
+ ret = (int) inb(inta_addr[i]);
if (ret != 0xff) {
/* ioport connected */
break;
--
1.5.5.6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists