Subject: [PATCH][MIPS] fix warning mips-boards generic pci

From: Yoichi Yuasa <[email-masked]>
Date: Wed, 1 Nov 2006 18:55:22 +0900

Hi Ralf,

This patch has fixed the following warning.

arch/mips/mips-boards/generic/pci.c: In function `mips_pcibios_init':
arch/mips/mips-boards/generic/pci.c:227: warning: comparison of distinct pointer types lacks a cast
arch/mips/mips-boards/generic/pci.c:228: warning: comparison of distinct pointer types lacks a cast

Yoichi

Signed-off-by: Yoichi Yuasa <[email-masked]>

diff -pruN -X mips/Documentation/dontdiff mips-orig/arch/mips/mips-boards/generic/pci.c mips/arch/mips/mips-boards/generic/pci.c
--- mips-orig/arch/mips/mips-boards/generic/pci.c	2006-10-29 13:42:19.471809750 +0900
+++ mips/arch/mips/mips-boards/generic/pci.c	2006-10-29 13:48:04.077346250 +0900
@@ -90,7 +90,7 @@ static struct pci_controller msc_control
 void __init mips_pcibios_init(void)
 {
 	struct pci_controller *controller;
-	unsigned long start, end, map, start1, end1, map1, map2, map3, mask;
+	resource_size_t start, end, map, start1, end1, map1, map2, map3, mask;
 
 	switch (mips_revision_corid) {
 	case MIPS_REVISION_CORID_QED_RM5261:

---

From: Ralf Baechle <[email-masked]>
Date: Wed, 1 Nov 2006 12:52:45 +0000

> arch/mips/mips-boards/generic/pci.c:228: warning: comparison of distinct pointer types lacks a cast

Applied as well,

  Ralf