diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2009-03-30 08:49:41 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-03-30 08:49:41 -0400 |
commit | 12e22e8e60add9e1ccd61509ab7fd6fc1c214c52 (patch) | |
tree | 6b7df40ae8aca0a2d0d937136c780ae66bcafcb4 | |
parent | 2da0ba2d2768baa0c5c502d1f53505dc905a06e3 (diff) |
MIPS: Stop using <asm-generic/int-l64.h>.
This fixes a few warnings - and triggers a few new ones which the rest of
this patch fixes.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/cavium-octeon/flash_setup.c | 2 | ||||
-rw-r--r-- | arch/mips/include/asm/types.h | 8 | ||||
-rw-r--r-- | arch/mips/kernel/setup.c | 3 | ||||
-rw-r--r-- | arch/mips/sgi-ip27/ip27-berr.c | 2 | ||||
-rw-r--r-- | arch/mips/sgi-ip27/ip27-nmi.c | 4 | ||||
-rw-r--r-- | arch/mips/sgi-ip32/ip32-memory.c | 2 | ||||
-rw-r--r-- | drivers/net/meth.c | 2 |
7 files changed, 15 insertions, 8 deletions
diff --git a/arch/mips/cavium-octeon/flash_setup.c b/arch/mips/cavium-octeon/flash_setup.c index 553d36cbcc42..008f657116eb 100644 --- a/arch/mips/cavium-octeon/flash_setup.c +++ b/arch/mips/cavium-octeon/flash_setup.c | |||
@@ -57,7 +57,7 @@ static int __init flash_init(void) | |||
57 | flash_map.bankwidth = 1; | 57 | flash_map.bankwidth = 1; |
58 | flash_map.virt = ioremap(flash_map.phys, flash_map.size); | 58 | flash_map.virt = ioremap(flash_map.phys, flash_map.size); |
59 | pr_notice("Bootbus flash: Setting flash for %luMB flash at " | 59 | pr_notice("Bootbus flash: Setting flash for %luMB flash at " |
60 | "0x%08lx\n", flash_map.size >> 20, flash_map.phys); | 60 | "0x%08llx\n", flash_map.size >> 20, flash_map.phys); |
61 | simple_map_init(&flash_map); | 61 | simple_map_init(&flash_map); |
62 | mymtd = do_map_probe("cfi_probe", &flash_map); | 62 | mymtd = do_map_probe("cfi_probe", &flash_map); |
63 | if (mymtd) { | 63 | if (mymtd) { |
diff --git a/arch/mips/include/asm/types.h b/arch/mips/include/asm/types.h index bcbb8d675af5..7956e69a3bd5 100644 --- a/arch/mips/include/asm/types.h +++ b/arch/mips/include/asm/types.h | |||
@@ -4,12 +4,18 @@ | |||
4 | * for more details. | 4 | * for more details. |
5 | * | 5 | * |
6 | * Copyright (C) 1994, 1995, 1996, 1999 by Ralf Baechle | 6 | * Copyright (C) 1994, 1995, 1996, 1999 by Ralf Baechle |
7 | * Copyright (C) 2008 Wind River Systems, | ||
8 | * written by Ralf Baechle | ||
7 | * Copyright (C) 1999 Silicon Graphics, Inc. | 9 | * Copyright (C) 1999 Silicon Graphics, Inc. |
8 | */ | 10 | */ |
9 | #ifndef _ASM_TYPES_H | 11 | #ifndef _ASM_TYPES_H |
10 | #define _ASM_TYPES_H | 12 | #define _ASM_TYPES_H |
11 | 13 | ||
12 | #if _MIPS_SZLONG == 64 | 14 | /* |
15 | * We don't use int-l64.h for the kernel anymore but still use it for | ||
16 | * userspace to avoid code changes. | ||
17 | */ | ||
18 | #if (_MIPS_SZLONG == 64) && !defined(__KERNEL__) | ||
13 | # include <asm-generic/int-l64.h> | 19 | # include <asm-generic/int-l64.h> |
14 | #else | 20 | #else |
15 | # include <asm-generic/int-ll64.h> | 21 | # include <asm-generic/int-ll64.h> |
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index 4430a1f8fdf1..2950b97253b7 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c | |||
@@ -277,7 +277,8 @@ static void __init bootmem_init(void) | |||
277 | * not selected. Once that done we can determine the low bound | 277 | * not selected. Once that done we can determine the low bound |
278 | * of usable memory. | 278 | * of usable memory. |
279 | */ | 279 | */ |
280 | reserved_end = max(init_initrd(), PFN_UP(__pa_symbol(&_end))); | 280 | reserved_end = max(init_initrd(), |
281 | (unsigned long) PFN_UP(__pa_symbol(&_end))); | ||
281 | 282 | ||
282 | /* | 283 | /* |
283 | * max_low_pfn is not a number of pages. The number of pages | 284 | * max_low_pfn is not a number of pages. The number of pages |
diff --git a/arch/mips/sgi-ip27/ip27-berr.c b/arch/mips/sgi-ip27/ip27-berr.c index 7d05e68fdc77..04cebadc2b3c 100644 --- a/arch/mips/sgi-ip27/ip27-berr.c +++ b/arch/mips/sgi-ip27/ip27-berr.c | |||
@@ -66,7 +66,7 @@ int ip27_be_handler(struct pt_regs *regs, int is_fixup) | |||
66 | printk("Slice %c got %cbe at 0x%lx\n", 'A' + cpu, data ? 'd' : 'i', | 66 | printk("Slice %c got %cbe at 0x%lx\n", 'A' + cpu, data ? 'd' : 'i', |
67 | regs->cp0_epc); | 67 | regs->cp0_epc); |
68 | printk("Hub information:\n"); | 68 | printk("Hub information:\n"); |
69 | printk("ERR_INT_PEND = 0x%06lx\n", LOCAL_HUB_L(PI_ERR_INT_PEND)); | 69 | printk("ERR_INT_PEND = 0x%06llx\n", LOCAL_HUB_L(PI_ERR_INT_PEND)); |
70 | errst0 = LOCAL_HUB_L(cpu ? PI_ERR_STATUS0_B : PI_ERR_STATUS0_A); | 70 | errst0 = LOCAL_HUB_L(cpu ? PI_ERR_STATUS0_B : PI_ERR_STATUS0_A); |
71 | errst1 = LOCAL_HUB_L(cpu ? PI_ERR_STATUS1_B : PI_ERR_STATUS1_A); | 71 | errst1 = LOCAL_HUB_L(cpu ? PI_ERR_STATUS1_B : PI_ERR_STATUS1_A); |
72 | dump_hub_information(errst0, errst1); | 72 | dump_hub_information(errst0, errst1); |
diff --git a/arch/mips/sgi-ip27/ip27-nmi.c b/arch/mips/sgi-ip27/ip27-nmi.c index 64459e7d891b..a1f21d9421e8 100644 --- a/arch/mips/sgi-ip27/ip27-nmi.c +++ b/arch/mips/sgi-ip27/ip27-nmi.c | |||
@@ -143,8 +143,8 @@ void nmi_dump_hub_irq(nasid_t nasid, int slice) | |||
143 | pend0 = REMOTE_HUB_L(nasid, PI_INT_PEND0); | 143 | pend0 = REMOTE_HUB_L(nasid, PI_INT_PEND0); |
144 | pend1 = REMOTE_HUB_L(nasid, PI_INT_PEND1); | 144 | pend1 = REMOTE_HUB_L(nasid, PI_INT_PEND1); |
145 | 145 | ||
146 | printk("PI_INT_MASK0: %16lx PI_INT_MASK1: %16lx\n", mask0, mask1); | 146 | printk("PI_INT_MASK0: %16Lx PI_INT_MASK1: %16Lx\n", mask0, mask1); |
147 | printk("PI_INT_PEND0: %16lx PI_INT_PEND1: %16lx\n", pend0, pend1); | 147 | printk("PI_INT_PEND0: %16Lx PI_INT_PEND1: %16Lx\n", pend0, pend1); |
148 | printk("\n\n"); | 148 | printk("\n\n"); |
149 | } | 149 | } |
150 | 150 | ||
diff --git a/arch/mips/sgi-ip32/ip32-memory.c b/arch/mips/sgi-ip32/ip32-memory.c index ca93ecf825ae..828ce131c228 100644 --- a/arch/mips/sgi-ip32/ip32-memory.c +++ b/arch/mips/sgi-ip32/ip32-memory.c | |||
@@ -36,7 +36,7 @@ void __init prom_meminit(void) | |||
36 | if (base + size > (256 << 20)) | 36 | if (base + size > (256 << 20)) |
37 | base += CRIME_HI_MEM_BASE; | 37 | base += CRIME_HI_MEM_BASE; |
38 | 38 | ||
39 | printk("CRIME MC: bank %u base 0x%016lx size %luMiB\n", | 39 | printk("CRIME MC: bank %u base 0x%016Lx size %LuMiB\n", |
40 | bank, base, size >> 20); | 40 | bank, base, size >> 20); |
41 | add_memory_region(base, size, BOOT_MEM_RAM); | 41 | add_memory_region(base, size, BOOT_MEM_RAM); |
42 | } | 42 | } |
diff --git a/drivers/net/meth.c b/drivers/net/meth.c index c336a1f42510..aa08987f6e81 100644 --- a/drivers/net/meth.c +++ b/drivers/net/meth.c | |||
@@ -398,7 +398,7 @@ static void meth_rx(struct net_device* dev, unsigned long int_status) | |||
398 | int len = (status & 0xffff) - 4; /* omit CRC */ | 398 | int len = (status & 0xffff) - 4; /* omit CRC */ |
399 | /* length sanity check */ | 399 | /* length sanity check */ |
400 | if (len < 60 || len > 1518) { | 400 | if (len < 60 || len > 1518) { |
401 | printk(KERN_DEBUG "%s: bogus packet size: %ld, status=%#2lx.\n", | 401 | printk(KERN_DEBUG "%s: bogus packet size: %ld, status=%#2Lx.\n", |
402 | dev->name, priv->rx_write, | 402 | dev->name, priv->rx_write, |
403 | priv->rx_ring[priv->rx_write]->status.raw); | 403 | priv->rx_ring[priv->rx_write]->status.raw); |
404 | dev->stats.rx_errors++; | 404 | dev->stats.rx_errors++; |