]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
MIPS: Stop using <asm-generic/int-l64.h>.
authorRalf Baechle <ralf@linux-mips.org>
Mon, 30 Mar 2009 12:49:41 +0000 (14:49 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 30 Mar 2009 12:49:41 +0000 (14:49 +0200)
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>
arch/mips/cavium-octeon/flash_setup.c
arch/mips/include/asm/types.h
arch/mips/kernel/setup.c
arch/mips/sgi-ip27/ip27-berr.c
arch/mips/sgi-ip27/ip27-nmi.c
arch/mips/sgi-ip32/ip32-memory.c
drivers/net/meth.c

index 553d36cbcc42b7ec6e24778d111f08d7a035ead6..008f657116eb4a61822a711fe8f0c845b157a500 100644 (file)
@@ -57,7 +57,7 @@ static int __init flash_init(void)
                flash_map.bankwidth = 1;
                flash_map.virt = ioremap(flash_map.phys, flash_map.size);
                pr_notice("Bootbus flash: Setting flash for %luMB flash at "
-                         "0x%08lx\n", flash_map.size >> 20, flash_map.phys);
+                         "0x%08llx\n", flash_map.size >> 20, flash_map.phys);
                simple_map_init(&flash_map);
                mymtd = do_map_probe("cfi_probe", &flash_map);
                if (mymtd) {
index bcbb8d675af5ffdd51bd1a8ddb2b45985c5a6e49..7956e69a3bd5cfe6a8b50466f7460996599f9ce5 100644 (file)
@@ -4,12 +4,18 @@
  * for more details.
  *
  * Copyright (C) 1994, 1995, 1996, 1999 by Ralf Baechle
+ * Copyright (C) 2008 Wind River Systems,
+ *   written by Ralf Baechle
  * Copyright (C) 1999 Silicon Graphics, Inc.
  */
 #ifndef _ASM_TYPES_H
 #define _ASM_TYPES_H
 
-#if _MIPS_SZLONG == 64
+/*
+ * We don't use int-l64.h for the kernel anymore but still use it for
+ * userspace to avoid code changes.
+ */
+#if (_MIPS_SZLONG == 64) && !defined(__KERNEL__)
 # include <asm-generic/int-l64.h>
 #else
 # include <asm-generic/int-ll64.h>
index 4430a1f8fdf127da309875755735a949f188c98a..2950b97253b7348c02134a2317372e78ba61c703 100644 (file)
@@ -277,7 +277,8 @@ static void __init bootmem_init(void)
         * not selected. Once that done we can determine the low bound
         * of usable memory.
         */
-       reserved_end = max(init_initrd(), PFN_UP(__pa_symbol(&_end)));
+       reserved_end = max(init_initrd(),
+                          (unsigned long) PFN_UP(__pa_symbol(&_end)));
 
        /*
         * max_low_pfn is not a number of pages. The number of pages
index 7d05e68fdc77974454cf22583f57af720cf135e8..04cebadc2b3cf41bece15fdf87af92e4f1dfef0b 100644 (file)
@@ -66,7 +66,7 @@ int ip27_be_handler(struct pt_regs *regs, int is_fixup)
        printk("Slice %c got %cbe at 0x%lx\n", 'A' + cpu, data ? 'd' : 'i',
               regs->cp0_epc);
        printk("Hub information:\n");
-       printk("ERR_INT_PEND = 0x%06lx\n", LOCAL_HUB_L(PI_ERR_INT_PEND));
+       printk("ERR_INT_PEND = 0x%06llx\n", LOCAL_HUB_L(PI_ERR_INT_PEND));
        errst0 = LOCAL_HUB_L(cpu ? PI_ERR_STATUS0_B : PI_ERR_STATUS0_A);
        errst1 = LOCAL_HUB_L(cpu ? PI_ERR_STATUS1_B : PI_ERR_STATUS1_A);
        dump_hub_information(errst0, errst1);
index 64459e7d891b1a45f5d089b350b65598626f163f..a1f21d9421e86e7002f99946864118de9d5000dc 100644 (file)
@@ -143,8 +143,8 @@ void nmi_dump_hub_irq(nasid_t nasid, int slice)
        pend0 = REMOTE_HUB_L(nasid, PI_INT_PEND0);
        pend1 = REMOTE_HUB_L(nasid, PI_INT_PEND1);
 
-       printk("PI_INT_MASK0: %16lx PI_INT_MASK1: %16lx\n", mask0, mask1);
-       printk("PI_INT_PEND0: %16lx PI_INT_PEND1: %16lx\n", pend0, pend1);
+       printk("PI_INT_MASK0: %16Lx PI_INT_MASK1: %16Lx\n", mask0, mask1);
+       printk("PI_INT_PEND0: %16Lx PI_INT_PEND1: %16Lx\n", pend0, pend1);
        printk("\n\n");
 }
 
index ca93ecf825ae73b84e1d1a2bb0f38dcd70962c3e..828ce131c22800ab2c496d049ba7396286ff1fbe 100644 (file)
@@ -36,7 +36,7 @@ void __init prom_meminit(void)
                if (base + size > (256 << 20))
                        base += CRIME_HI_MEM_BASE;
 
-               printk("CRIME MC: bank %u base 0x%016lx size %luMiB\n",
+               printk("CRIME MC: bank %u base 0x%016Lx size %LuMiB\n",
                        bank, base, size >> 20);
                add_memory_region(base, size, BOOT_MEM_RAM);
        }
index c336a1f42510c09d5c9e690cc46c207f9f6880e3..aa08987f6e8156e6f9dd18bcc30a279bb23a73ab 100644 (file)
@@ -398,7 +398,7 @@ static void meth_rx(struct net_device* dev, unsigned long int_status)
                        int len = (status & 0xffff) - 4; /* omit CRC */
                        /* length sanity check */
                        if (len < 60 || len > 1518) {
-                               printk(KERN_DEBUG "%s: bogus packet size: %ld, status=%#2lx.\n",
+                               printk(KERN_DEBUG "%s: bogus packet size: %ld, status=%#2Lx.\n",
                                       dev->name, priv->rx_write,
                                       priv->rx_ring[priv->rx_write]->status.raw);
                                dev->stats.rx_errors++;