Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755310Ab0HQH7T (ORCPT ); Tue, 17 Aug 2010 03:59:19 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:36166 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754667Ab0HQH7Q (ORCPT ); Tue, 17 Aug 2010 03:59:16 -0400 From: Michal Simek To: michal.simek@petalogix.com Cc: Michal Simek , Andrew Morton , Greg Kroah-Hartman , Alan Cox , Lennert Buytenhek , Lytochkin Boris , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] serial: 8250pci: Recast inb return value Date: Tue, 17 Aug 2010 09:59:07 +0200 Message-Id: <1282031947-16483-2-git-send-email-monstr@monstr.eu> X-Mailer: git-send-email 1.5.5.1 In-Reply-To: <1282031947-16483-1-git-send-email-monstr@monstr.eu> References: <1282031947-16483-1-git-send-email-monstr@monstr.eu> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1395 Lines: 40 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 CC: Andrew Morton CC: Greg Kroah-Hartman CC: Alan Cox CC: Lennert Buytenhek CC: Lytochkin Boris CC: linux-serial@vger.kernel.org CC: linux-kernel@vger.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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/