sh: replace remaining __FUNCTION__ occurances
PATCH 1/1 sh: replace remaining __FUNCTION__ occurances
__FUNCTION__ is gcc-specific, use __func__
Signed-off-by Harvey Harrison <[email protected]>
--- arch/sh/boards/renesas/x3proto/ilsel.c | 2 +- arch/sh/boards/superh/microdev/io.c | 2 +- arch/sh/kernel/cpu/sh4/sq.c | 4 ++-- arch/sh/kernel/cpu/sh5/unwind.c | 2 +- arch/sh/kernel/timers/timer-cmt.c | 2 +- arch/sh/kernel/timers/timer-mtu2.c | 2 +- arch/sh/kernel/topology.c | 2 +- arch/sh/kernel/traps_64.c | 2 +- arch/sh/lib64/c-checksum.c | 2 +- arch/sh/mm/init.c | 2 +- arch/sh/mm/ioremap_32.c | 2 +- arch/sh/mm/ioremap_64.c | 4 ++-- arch/sh/mm/tlbflush_64.c | 6 +++--- 13 files changed, 17 insertions(+), 17 deletions(-)
arch/sh/boards/renesas/x3proto/ilsel.c +1 -1
@@ -68,7 +68,7 @@ static void __ilsel_enable(ilsel_source_t set, unsigned int bit) shift =mk_ilsel_shift (bit);pr_debug ("%s: bit#%d: addr - 0x%08lx (shift %d, set %d)\n" , - __FUNCTION__, bit, addr, shift, set); + __func__, bit, addr, shift, set); tmp =ctrl_inw (addr); tmp &= ~(0xf << shift);
arch/sh/boards/superh/microdev/io.c +1 -1
@@ -127,7 +127,7 @@ static unsigned long microdev_isa_port2addr(unsigned long offset)* safe default. */ printk ("Warning: unexpected port in %s( offset = 0x%lx )\n" , - __FUNCTION__, offset); + __func__, offset); result =PVR ; }
arch/sh/kernel/cpu/sh4/sq.c +2 -2
@@ -216,7 +216,7 @@ void sq_unmap(unsigned long vaddr)if (unlikely (!map)) {printk ("%s: bad store queue address 0x%08lx\n" , - __FUNCTION__, vaddr); + __func__, vaddr);return ; }
@@ -233,7 +233,7 @@ void sq_unmap(unsigned long vaddr) vma =remove_vm_area ((void *)(map->sq_addr &PAGE_MASK ));if (!vma) {printk (KERN_ERR "%s: bad address 0x%08lx\n" , - __FUNCTION__, map->sq_addr); + __func__, map->sq_addr);return ; } }
arch/sh/kernel/cpu/sh5/unwind.c +1 -1
@@ -149,7 +149,7 @@ static int lookup_prev_stack_frame(unsigned long fp, unsigned long pc,if (dest >=63 ) {printk (KERN_NOTICE "%s: Invalid dest reg %d " "specified in movi handler. Failed " -"opcode was 0x%lx: " , __FUNCTION__, +"opcode was 0x%lx: " , __func__, dest, op);continue ;
arch/sh/kernel/timers/timer-cmt.c +1 -1
@@ -77,7 +77,7 @@ static unsigned long cmt_timer_get_offset(void) count -=LATCH ; }else {printk ("%s (): hardware timer problem?\n" , - __FUNCTION__); + __func__); } } }else
arch/sh/kernel/timers/timer-mtu2.c +1 -1
@@ -76,7 +76,7 @@ static unsigned long mtu2_timer_get_offset(void) count -=LATCH ; }else {printk ("%s (): hardware timer problem?\n" , - __FUNCTION__); + __func__); } } }else
arch/sh/kernel/topology.c +1 -1
@@ -29,7 +29,7 @@ static int __init topology_init(void) ret =register_cpu (&per_cpu (cpu_devices, i), i);if (unlikely (ret))printk (KERN_WARNING "%s: register_cpu %d failed (%d)\n" , - __FUNCTION__, i, ret); + __func__, i, ret); }#if defined(CONFIG_NUMA ) && !defined(CONFIG_SMP )
arch/sh/kernel/traps_64.c +1 -1
@@ -238,7 +238,7 @@ DO_ERROR(12, SIGILL, "reserved instruction", reserved_inst, current)/* Called with interrupts disabled */ asmlinkage void do_exception_error(unsigned long ex, struct pt_regs *regs) { -show_excp_regs (__FUNCTION__,-1 ,-1 , regs); +show_excp_regs (__func__,-1 ,-1 , regs);die_if_kernel ("exception" , regs, ex); }
arch/sh/lib64/c-checksum.c +1 -1
@@ -207,7 +207,7 @@ __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, result = (result &0xffffffff ) + (result >>32 );pr_debug ("%s saddr %x daddr %x len %x proto %x sum %x result %08Lx\n" , - __FUNCTION__, saddr, daddr, len, proto, sum, result); + __func__, saddr, daddr, len, proto, sum, result);return (__wsum )result; }
arch/sh/mm/init.c +1 -1
@@ -328,7 +328,7 @@ int arch_add_memory(int nid, u64 start, u64 size)/* We only have ZONE_NORMAL, so this is easy.. */ ret =__add_pages (pgdat->node_zones +ZONE_NORMAL , start_pfn, nr_pages);if (unlikely (ret)) -printk ("%s: Failed, __add_pages() == %d\n" , __FUNCTION__, ret); +printk ("%s: Failed, __add_pages() == %d\n" , __func__, ret);return ret; }
arch/sh/mm/ioremap_32.c +1 -1
@@ -141,7 +141,7 @@ void __iounmap(void __iomem *addr) p =remove_vm_area ((void *)(vaddr &PAGE_MASK ));if (!p) { -printk (KERN_ERR "%s: bad address %p\n" , __FUNCTION__, addr); +printk (KERN_ERR "%s: bad address %p\n" , __func__, addr);return ; }
arch/sh/mm/ioremap_64.c +2 -2
@@ -178,7 +178,7 @@ static unsigned long shmedia_alloc_io(unsigned long phys, unsigned long size, }else {if (!printed_full) {printk ("%s: done with statics, switching to kmalloc\n" , - __FUNCTION__); + __func__); printed_full =1 ; } tlen =strlen (name);
@@ -352,7 +352,7 @@ void onchip_unmap(unsigned long vaddr) res =shmedia_find_resource (&shmedia_iomap, vaddr);if (!res) {printk (KERN_ERR "%s: Failed to free 0x%08lx\n" , - __FUNCTION__, vaddr); + __func__, vaddr);return ; }
arch/sh/mm/tlbflush_64.c +3 -3
@@ -131,7 +131,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long writeaccess,#ifdef DEBUG_FAULT print_task (tsk);printk ("%s:%d fault, address is 0x%08x PC %016Lx textaccess %d writeaccess %d\n" , - __FUNCTION__,__LINE__, + __func__, __LINE__, address,regs->pc,textaccess,writeaccess);show_regs (regs);#endif
@@ -145,7 +145,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long writeaccess,#ifdef DEBUG_FAULT print_task (tsk);printk ("%s:%d fault, address is 0x%08x PC %016Lx textaccess %d writeaccess %d\n" , - __FUNCTION__,__LINE__, + __func__, __LINE__, address,regs->pc,textaccess,writeaccess);show_regs (regs);
@@ -157,7 +157,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long writeaccess,#ifdef DEBUG_FAULT print_task (tsk);printk ("%s:%d fault, address is 0x%08x PC %016Lx textaccess %d writeaccess %d\n" , - __FUNCTION__,__LINE__, + __func__, __LINE__, address,regs->pc,textaccess,writeaccess);show_regs (regs);#endif
Signature · 1 line
1.5.4.3.500.g83a2c