]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] AVR32: Silence some compile warnings
authorHaavard Skinnemoen <hskinnemoen@atmel.com>
Tue, 24 Oct 2006 08:12:40 +0000 (10:12 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 26 Oct 2006 03:26:32 +0000 (20:26 -0700)
Silence a few compile warnings which are basically harmless, but
easy to fix.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/avr32/kernel/kprobes.c
arch/avr32/kernel/module.c
arch/avr32/kernel/ptrace.c
arch/avr32/mm/init.c

index 6caf9e8d8080791e656225cbf06e3dc445e43d54..ca41fc1edbe1aa26711343a3fcae488899de7882 100644 (file)
@@ -109,7 +109,7 @@ static int __kprobes kprobe_handler(struct pt_regs *regs)
        void *addr = (void *)regs->pc;
        int ret = 0;
 
-       pr_debug("kprobe_handler: kprobe_running=%d\n",
+       pr_debug("kprobe_handler: kprobe_running=%p\n",
                 kprobe_running());
 
        /*
index dfc32f2817b6f6e11ad1b1de45eec7d8969ab592..b599eae6457601f2932bbf45f4451966307e8935 100644 (file)
@@ -263,7 +263,7 @@ int apply_relocate_add(Elf32_Shdr *sechdrs, const char *strtab,
                         * value of PC.  Just subtract the value of
                         * GOT, and we're done.
                         */
-                       pr_debug("GOTPC: PC=0x%lx, got_offset=0x%lx, core=0x%p\n",
+                       pr_debug("GOTPC: PC=0x%x, got_offset=0x%lx, core=0x%p\n",
                                 relocation, module->arch.got_offset,
                                 module->module_core);
                        relocation -= ((unsigned long)module->module_core
@@ -282,7 +282,7 @@ int apply_relocate_add(Elf32_Shdr *sechdrs, const char *strtab,
                            && (relocation & 0xffff0000) != 0xffff0000)
                                return reloc_overflow(module, "R_AVR32_GOT16S",
                                                      relocation);
-                       pr_debug("GOT reloc @ 0x%lx -> %lu\n",
+                       pr_debug("GOT reloc @ 0x%x -> %u\n",
                                 rel->r_offset, relocation);
                        value = *location;
                        value = ((value & 0xffff0000)
index 3c89e59029abf292820e83415ae14baa59b63749..f2e81cd7900223cc3e112fa0b1c40eeb8319ff13 100644 (file)
@@ -157,7 +157,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
        unsigned long tmp;
        int ret;
 
-       pr_debug("arch_ptrace(%ld, %ld, %#lx, %#lx)\n",
+       pr_debug("arch_ptrace(%ld, %d, %#lx, %#lx)\n",
                 request, child->pid, addr, data);
 
        pr_debug("ptrace: Enabling monitor mode...\n");
index 3e6c4103980855281164ea4acdfe945fa6819b85..70da6894acc1dbfbde9d4501115c6d6eb26ea135 100644 (file)
@@ -206,7 +206,7 @@ void __init setup_bootmem(void)
 
        if (mem_ramdisk) {
 #ifdef CONFIG_BLK_DEV_INITRD
-               initrd_start = __va(mem_ramdisk->addr);
+               initrd_start = (unsigned long)__va(mem_ramdisk->addr);
                initrd_end = initrd_start + mem_ramdisk->size;
 
                print_memory_map("RAMDISK images", mem_ramdisk);