ia64: remove remaining __FUNCTION__ occurances
Subsystems (2)
PATCH 1/1 ia64: remove remaining __FUNCTION__ occurances
__FUNCTION__ is gcc-specific, use __func__
Long lines have been kept where they exist, some small spacing changes have been done.
Signed-off-by Harvey Harrison <[email protected]>
--- arch/ia64/hp/common/hwsw_iommu.c | 2 +- arch/ia64/hp/common/sba_iommu.c | 36 +++++------ arch/ia64/hp/sim/simeth.c | 2 +- arch/ia64/hp/sim/simserial.c | 2 +- arch/ia64/kernel/crash.c | 2 +- arch/ia64/kernel/efi.c | 6 +- arch/ia64/kernel/iosapic.c | 24 ++++---- arch/ia64/kernel/irq_ia64.c | 4 +- arch/ia64/kernel/mca.c | 73 +++++++++++----------- arch/ia64/kernel/module.c | 22 +++--- arch/ia64/kernel/perfmon.c | 4 +- arch/ia64/kernel/perfmon_default_smpl.c | 4 +- arch/ia64/kernel/ptrace.c | 4 +- arch/ia64/kernel/setup.c | 8 +- arch/ia64/kernel/unaligned.c | 6 +- arch/ia64/kernel/unwind.c | 102 +++++++++++++++--------------- arch/ia64/mm/init.c | 2 +- arch/ia64/pci/pci.c | 4 +- arch/ia64/sn/kernel/huberror.c | 4 +- arch/ia64/sn/kernel/io_acpi_init.c | 36 ++++++------ arch/ia64/sn/kernel/io_common.c | 2 +- arch/ia64/sn/kernel/io_init.c | 4 +- arch/ia64/sn/kernel/mca.c | 2 +- arch/ia64/sn/pci/pci_dma.c | 6 +- arch/ia64/sn/pci/tioca_provider.c | 12 ++-- arch/ia64/sn/pci/tioce_provider.c | 4 +- 26 files changed, 186 insertions(+), 191 deletions(-)
arch/ia64/hp/common/hwsw_iommu.c +1 -1
@@ -71,7 +71,7 @@ hwsw_init (void)#ifdef CONFIG_IA64_GENERIC /* Better to have normal DMA than panic */ printk (KERN_WARNING "%s: Failed to initialize software I/O TLB," -" reverting to hpzx1 platform vector\n" , __FUNCTION__); +" reverting to hpzx1 platform vector\n" , __func__);machvec_init ("hpzx1" );#else panic ("Unable to initialize software I/O TLB services" );
arch/ia64/hp/common/sba_iommu.c +17 -19
@@ -529,7 +529,7 @@ sba_search_bitmap(struct ioc *ioc, unsigned long bits_wanted, int use_hint) base_mask =RESMAP_MASK (bits_wanted); mask = base_mask << bitshiftcnt; -DBG_RES ("%s() o %ld %p" , __FUNCTION__, o, res_ptr); +DBG_RES ("%s() o %ld %p" , __func__, o, res_ptr);for (; res_ptr < res_end ; res_ptr++) {DBG_RES (" %p %lx %lx\n" , res_ptr, mask, *res_ptr);
@@ -679,7 +679,7 @@ sba_alloc_range(struct ioc *ioc, size_t size)#endif DBG_RES ("%s(%x) %d -> %lx hint %x/%x\n" , - __FUNCTION__, size, pages_needed, pide, + __func__, size, pages_needed, pide, (uint) ((unsigned long ) ioc->res_hint - (unsigned long ) ioc->res_map), ioc->res_bitshift );
@@ -722,8 +722,8 @@ sba_free_range(struct ioc *ioc, dma_addr_t iova, size_t size) m =RESMAP_MASK (bits_not_wanted) << (pide & (BITS_PER_LONG -1 )); bits_not_wanted =0 ; -DBG_RES ("%s( ,%x,%x) %x/%lx %x %p %lx\n" , __FUNCTION__, (uint ) iova, size, - bits_not_wanted, m, pide, res_ptr, *res_ptr); +DBG_RES ("%s( ,%x,%x) %x/%lx %x %p %lx\n" , __func__, (uint ) iova, size, + bits_not_wanted, m, pide, res_ptr, *res_ptr);ASSERT (m !=0 );ASSERT (bits_not_wanted);
@@ -940,8 +940,7 @@ sba_map_single(struct device *dev, void *addr, size_t size, int dir) iovp = (dma_addr_t ) pide << iovp_shift; -DBG_RUN ("%s() 0x%p -> 0x%lx\n" , - __FUNCTION__, addr, (long ) iovp | offset); +DBG_RUN ("%s() 0x%p -> 0x%lx\n" , __func__, addr, (long ) iovp | offset); pdir_start = &(ioc->pdir_base[pide]);
@@ -1029,8 +1028,7 @@ void sba_unmap_single(struct device *dev, dma_addr_t iova, size_t size, int dir)#endif offset = iova & ~iovp_mask; -DBG_RUN ("%s() iovp 0x%lx/%x\n" , - __FUNCTION__, (long ) iova, size); +DBG_RUN ("%s() iovp 0x%lx/%x\n" , __func__, (long ) iova, size); iova ^= offset;/* clear offset bits */ size += offset;
@@ -1404,7 +1402,7 @@ int sba_map_sg(struct device *dev, struct scatterlist *sglist, int nents, int distruct scatterlist *sg;#endif -DBG_RUN_SG ("%s() START %d entries\n" , __FUNCTION__, nents); +DBG_RUN_SG ("%s() START %d entries\n" , __func__, nents); ioc =GET_IOC (dev);ASSERT (ioc);
@@ -1468,7 +1466,7 @@ int sba_map_sg(struct device *dev, struct scatterlist *sglist, int nents, int di#endif ASSERT (coalesced == filled); -DBG_RUN_SG ("%s() DONE %d mappings\n" , __FUNCTION__, filled); +DBG_RUN_SG ("%s() DONE %d mappings\n" , __func__, filled);return filled; }
@@ -1491,7 +1489,7 @@ void sba_unmap_sg (struct device *dev, struct scatterlist *sglist, int nents, in#endif DBG_RUN_SG ("%s() START %d entries, %p,%x\n" , - __FUNCTION__, nents,sba_sg_address (sglist), sglist->length); + __func__, nents,sba_sg_address (sglist), sglist->length);#ifdef ASSERT_PDIR_SANITY ioc =GET_IOC (dev);
@@ -1509,7 +1507,7 @@ void sba_unmap_sg (struct device *dev, struct scatterlist *sglist, int nents, in nents--; } -DBG_RUN_SG ("%s() DONE (nents %d)\n" , __FUNCTION__, nents); +DBG_RUN_SG ("%s() DONE (nents %d)\n" , __func__, nents);#ifdef ASSERT_PDIR_SANITY spin_lock_irqsave (&ioc->res_lock, flags);
@@ -1546,7 +1544,7 @@ ioc_iova_init(struct ioc *ioc) ioc->iov_size = ~ioc->imask +1 ;DBG_INIT ("%s() hpa %p IOV base 0x%lx mask 0x%lx (%dMB)\n" , - __FUNCTION__, ioc->ioc_hpa, ioc->ibase, ioc->imask, + __func__, ioc->ioc_hpa, ioc->ibase, ioc->imask, ioc->iov_size >>20 );switch (iovp_size) {
@@ -1569,7 +1567,7 @@ ioc_iova_init(struct ioc *ioc)memset (ioc->pdir_base,0 , ioc->pdir_size); -DBG_INIT ("%s() IOV page size %ldK pdir %p size %x\n" , __FUNCTION__, +DBG_INIT ("%s() IOV page size %ldK pdir %p size %x\n" , __func__, iovp_size >>10 , ioc->pdir_base, ioc->pdir_size);ASSERT (ALIGN ((unsigned long ) ioc->pdir_base,4 *1024 ) == (unsigned long ) ioc->pdir_base);
@@ -1612,7 +1610,7 @@ ioc_iova_init(struct ioc *ioc) prefetch_spill_page =virt_to_phys (addr); -DBG_INIT ("%s() prefetch spill addr: 0x%lx\n" , __FUNCTION__, prefetch_spill_page); +DBG_INIT ("%s() prefetch spill addr: 0x%lx\n" , __func__, prefetch_spill_page); }/* ** Set all the PDIR entries valid w/ the spill page as the target
@@ -1641,7 +1639,7 @@ ioc_resource_init(struct ioc *ioc)/* resource map size dictated by pdir_size */ ioc->res_size = ioc->pdir_size /PDIR_ENTRY_SIZE ;/* entries */ ioc->res_size >>=3 ;/* convert bit count to byte count */ -DBG_INIT ("%s() res_size 0x%x\n" , __FUNCTION__, ioc->res_size); +DBG_INIT ("%s() res_size 0x%x\n" , __func__, ioc->res_size); ioc->res_map = (char *)__get_free_pages (GFP_KERNEL ,get_order (ioc->res_size));
@@ -1664,7 +1662,7 @@ ioc_resource_init(struct ioc *ioc) | prefetch_spill_page);#endif -DBG_INIT ("%s() res_map %x %p\n" , __FUNCTION__, +DBG_INIT ("%s() res_map %x %p\n" , __func__, ioc->res_size, (void *) ioc->res_map); }
@@ -1767,7 +1765,7 @@ ioc_init(u64 hpa, void *handle) iovp_size = (1 << iovp_shift); iovp_mask = ~(iovp_size -1 ); -DBG_INIT ("%s: PAGE_SIZE %ldK, iovp_size %ldK\n" , __FUNCTION__, +DBG_INIT ("%s: PAGE_SIZE %ldK, iovp_size %ldK\n" , __func__,PAGE_SIZE >>10 , iovp_size >>10 );if (!ioc->name) {
@@ -2137,7 +2135,7 @@ sba_page_override(char *str)break ;default :printk ("%s: unknown/unsupported iommu page size %ld\n" , - __FUNCTION__, page_size); + __func__, page_size); }return 1 ;
arch/ia64/hp/sim/simeth.c +1 -1
@@ -222,7 +222,7 @@ simeth_probe1(void) }if ((rc =assign_irq_vector (AUTO_ASSIGN )) <0 ) -panic ("%s: out of interrupt vectors!\n" , __FUNCTION__); +panic ("%s: out of interrupt vectors!\n" , __func__); dev->irq = rc;/*
arch/ia64/hp/sim/simserial.c +1 -1
@@ -1000,7 +1000,7 @@ simrs_init (void)if (!state->irq) {if ((rc =assign_irq_vector (AUTO_ASSIGN )) <0 )panic ("%s: out of interrupt vectors!\n" , - __FUNCTION__); + __func__); state->irq = rc;ia64_ssc_connect_irq (KEYBOARD_INTR , state->irq); }
arch/ia64/kernel/crash.c +1 -1
@@ -155,7 +155,7 @@ kdump_init_notifier(struct notifier_block *self, unsigned long val, void *data)if (val ==DIE_INIT_MONARCH_LEAVE )ia64_mca_printk (KERN_NOTICE "%s: kdump not configured\n" , - __FUNCTION__); + __func__);return NOTIFY_DONE ; }
arch/ia64/kernel/efi.c +3 -3
@@ -379,8 +379,8 @@ efi_get_pal_addr (void)* a dedicated ITR for the PAL code. */ if ((vaddr & mask) == (KERNEL_START & mask)) { -printk (KERN_INFO "%s: no need to install ITR for " -"PAL code\n" , __FUNCTION__); +printk (KERN_INFO "%s: no need to install ITR for PAL code\n" , + __func__);continue ; }
@@ -399,7 +399,7 @@ efi_get_pal_addr (void)return __va (md->phys_addr); }printk (KERN_WARNING "%s: no PAL-code memory-descriptor found\n" , - __FUNCTION__); + __func__);return NULL ; }
arch/ia64/kernel/iosapic.c +12 -12
@@ -532,7 +532,7 @@ iosapic_reassign_vector (int irq)if (iosapic_intr_info[irq].count) { new_irq =create_irq ();if (new_irq <0 ) -panic ("%s: out of interrupt vectors!\n" , __FUNCTION__); +panic ("%s: out of interrupt vectors!\n" , __func__);printk (KERN_INFO "Reassigning vector %d to %d\n" ,irq_to_vector (irq),irq_to_vector (new_irq)); memcpy(&iosapic_intr_info[new_irq], &iosapic_intr_info[irq],
@@ -597,7 +597,7 @@ register_intr (unsigned int gsi, int irq, unsigned char delivery, index =find_iosapic (gsi);if (index <0 ) {printk (KERN_WARNING "%s: No IOSAPIC for GSI %u\n" , - __FUNCTION__, gsi); + __func__, gsi);return -ENODEV ; }
@@ -606,7 +606,7 @@ register_intr (unsigned int gsi, int irq, unsigned char delivery, rte =iosapic_alloc_rte ();if (!rte) {printk (KERN_WARNING "%s: cannot allocate memory\n" , - __FUNCTION__); + __func__);return -ENOMEM ; }
@@ -623,7 +623,7 @@ register_intr (unsigned int gsi, int irq, unsigned char delivery, (info->trigger != trigger || info->polarity != polarity)){printk (KERN_WARNING "%s: cannot override the interrupt\n" , - __FUNCTION__); + __func__);return -EINVAL ; } rte->refcnt++;
@@ -645,7 +645,7 @@ register_intr (unsigned int gsi, int irq, unsigned char delivery,if (idesc->chip != &no_irq_type)printk (KERN_WARNING "%s: changing vector %d from %s to %s\n" , - __FUNCTION__,irq_to_vector (irq), + __func__,irq_to_vector (irq), idesc->chip->name, irq_type->name); idesc->chip = irq_type; }
@@ -918,7 +918,7 @@ iosapic_register_platform_intr (u32 int_type, unsigned int gsi,case ACPI_INTERRUPT_INIT : irq =create_irq ();if (irq <0 ) -panic ("%s: out of interrupt vectors!\n" , __FUNCTION__); +panic ("%s: out of interrupt vectors!\n" , __func__); vector =irq_to_vector (irq); delivery =IOSAPIC_INIT ;break ;
@@ -929,7 +929,7 @@ iosapic_register_platform_intr (u32 int_type, unsigned int gsi, mask =1 ;break ;default : -printk (KERN_ERR "%s: invalid int type 0x%x\n" , __FUNCTION__, +printk (KERN_ERR "%s: invalid int type 0x%x\n" , __func__, int_type);return -1 ; }
@@ -994,7 +994,7 @@ iosapic_system_init (int system_pcat_compat)*/ printk (KERN_INFO "%s: Disabling PC-AT compatible 8259 interrupts\n" , - __FUNCTION__); + __func__);outb (0xff ,0xA1 );outb (0xff ,0x21 ); }
@@ -1009,7 +1009,7 @@ iosapic_alloc (void)if (!iosapic_lists[index].addr)return index; -printk (KERN_WARNING "%s: failed to allocate iosapic\n" , __FUNCTION__); +printk (KERN_WARNING "%s: failed to allocate iosapic\n" , __func__);return -1 ; }
@@ -1107,14 +1107,14 @@ iosapic_remove (unsigned int gsi_base) index =find_iosapic (gsi_base);if (index <0 ) {printk (KERN_WARNING "%s: No IOSAPIC for GSI base %u\n" , - __FUNCTION__, gsi_base); + __func__, gsi_base); goto out; }if (iosapic_lists[index].rtes_inuse) { err = -EBUSY ;printk (KERN_WARNING "%s: IOSAPIC for GSI base %u is busy\n" , - __FUNCTION__, gsi_base); + __func__, gsi_base); goto out; }
@@ -1135,7 +1135,7 @@ map_iosapic_to_node(unsigned int gsi_base, int node) index =find_iosapic (gsi_base);if (index <0 ) {printk (KERN_WARNING "%s: No IOSAPIC for GSI %u\n" , - __FUNCTION__, gsi_base); + __func__, gsi_base);return ; } iosapic_lists[index].node = node;
arch/ia64/kernel/irq_ia64.c +2 -2
@@ -440,7 +440,7 @@ ia64_handle_irq (ia64_vector vector, struct pt_regs *regs)if (unlikely (irq <0 )) {printk (KERN_ERR "%s: Unexpected interrupt " "vector %d on CPU %d is not mapped " -"to any IRQ!\n" , __FUNCTION__, vector, +"to any IRQ!\n" , __func__, vector,smp_processor_id ()); }else generic_handle_irq (irq);
@@ -505,7 +505,7 @@ void ia64_process_pending_intr(void)if (unlikely (irq <0 )) {printk (KERN_ERR "%s: Unexpected interrupt " "vector %d on CPU %d not being mapped " -"to any IRQ!!\n" , __FUNCTION__, vector, +"to any IRQ!!\n" , __func__, vector,smp_processor_id ()); }else { vectors_in_migration[irq]=0 ;
arch/ia64/kernel/mca.c +35 -38
241 lines not on this page · raw message
arch/ia64/kernel/module.c +11 -11
@@ -493,7 +493,7 @@ module_frob_arch_sections (Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, char *secstrings, mod->arch.opd->sh_addralign =8 ; mod->arch.opd->sh_size = fdescs *sizeof (struct fdesc );DEBUGP ("%s: core.plt=%lx, init.plt=%lx, got=%lx, fdesc=%lx\n" , - __FUNCTION__, mod->arch.core_plt->sh_size, mod->arch.init_plt->sh_size, + __func__, mod->arch.core_plt->sh_size, mod->arch.init_plt->sh_size, mod->arch.got->sh_size, mod->arch.opd->sh_size);return 0 ; }
@@ -585,7 +585,7 @@ get_plt (struct module *mod, const struct insn *insn, uint64_t value, int *okp)#if ARCH_MODULE_DEBUG if (plt_target (plt) != target_ip) {printk ("%s: mistargeted PLT: wanted %lx, got %lx\n" , - __FUNCTION__, target_ip,plt_target (plt)); + __func__, target_ip,plt_target (plt)); *okp =0 ;return 0 ; }
@@ -703,7 +703,7 @@ do_reloc (struct module *mod, uint8_t r_type, Elf64_Sym *sym, uint64_t addend,if (r_type ==R_IA64_PCREL21BI ) {if (!is_internal (mod, val)) {printk (KERN_ERR "%s: %s reloc against non-local symbol (%lx)\n" , - __FUNCTION__, reloc_name[r_type], val); + __func__, reloc_name[r_type], val);return -ENOEXEC ; } format =RF_INSN21B ;
@@ -737,7 +737,7 @@ do_reloc (struct module *mod, uint8_t r_type, Elf64_Sym *sym, uint64_t addend,case R_IA64_LDXMOV :if (gp_addressable (mod, val)) {/* turn "ld8" into "mov": */ -DEBUGP ("%s: patching ld8 at %p to mov\n" , __FUNCTION__, location); +DEBUGP ("%s: patching ld8 at %p to mov\n" , __func__, location);ia64_patch ((u64 ) location,0x1fff80fe000UL ,0x10000000000UL ); }return 0 ;
@@ -771,7 +771,7 @@ do_reloc (struct module *mod, uint8_t r_type, Elf64_Sym *sym, uint64_t addend,if (!ok)return -ENOEXEC ; -DEBUGP ("%s: [%p]<-%016lx = %s(%lx)\n" , __FUNCTION__, location, val, +DEBUGP ("%s: [%p]<-%016lx = %s(%lx)\n" , __func__, location, val, reloc_name[r_type] ? reloc_name[r_type] :"?" , sym->st_value + addend);switch (format) {
@@ -807,7 +807,7 @@ apply_relocate_add (Elf64_Shdr *sechdrs, const char *strtab, unsigned int symindElf64_Shdr *target_sec;int ret; -DEBUGP ("%s: applying section %u (%u relocs) to %u\n" , __FUNCTION__, +DEBUGP ("%s: applying section %u (%u relocs) to %u\n" , __func__, relsec, n, sechdrs[relsec].sh_info); target_sec = sechdrs + sechdrs[relsec].sh_info;
@@ -835,7 +835,7 @@ apply_relocate_add (Elf64_Shdr *sechdrs, const char *strtab, unsigned int symind gp = mod->core_size /2 ; gp = (uint64_t ) mod->module_core + ((gp +7 ) &-8 ); mod->arch.gp = gp; -DEBUGP ("%s: placing gp at 0x%lx\n" , __FUNCTION__, gp); +DEBUGP ("%s: placing gp at 0x%lx\n" , __func__, gp); }for (i =0 ; i < n; i++) {
@@ -903,7 +903,7 @@ register_unwind_table (struct module *mod) init = start + num_core; } -DEBUGP ("%s: name=%s, gp=%lx, num_init=%lu, num_core=%lu\n" , __FUNCTION__, +DEBUGP ("%s: name=%s, gp=%lx, num_init=%lu, num_core=%lu\n" , __func__, mod->name, mod->arch.gp, num_init, num_core);/*
@@ -912,13 +912,13 @@ register_unwind_table (struct module *mod)if (num_core >0 ) { mod->arch.core_unw_table =unw_add_unwind_table (mod->name,0 , mod->arch.gp, core, core + num_core); -DEBUGP ("%s: core: handle=%p [%p-%p)\n" , __FUNCTION__, +DEBUGP ("%s: core: handle=%p [%p-%p)\n" , __func__, mod->arch.core_unw_table, core, core + num_core); }if (num_init >0 ) { mod->arch.init_unw_table =unw_add_unwind_table (mod->name,0 , mod->arch.gp, init, init + num_init); -DEBUGP ("%s: init: handle=%p [%p-%p)\n" , __FUNCTION__, +DEBUGP ("%s: init: handle=%p [%p-%p)\n" , __func__, mod->arch.init_unw_table, init, init + num_init); } }
@@ -926,7 +926,7 @@ register_unwind_table (struct module *mod)int module_finalize (const Elf_Ehdr *hdr,const Elf_Shdr *sechdrs,struct module *mod) { -DEBUGP ("%s: init: entry=%p\n" , __FUNCTION__, mod->init); +DEBUGP ("%s: init: entry=%p\n" , __func__, mod->init);if (mod->arch.unwind)register_unwind_table (mod);return 0 ;
arch/ia64/kernel/perfmon.c +2 -2
@@ -227,12 +227,12 @@#ifdef PFM_DEBUGGING #define DPRINT (a) \ do { \ - if (unlikely(pfm_sysctl.debug >0)) { printk("%s.%d: CPU%d [%d] ", __FUNCTION__, __LINE__, smp_processor_id(), task_pid_nr(current)); printk a; } \ + if (unlikely(pfm_sysctl.debug >0)) { printk("%s.%d: CPU%d [%d] ", __func__, __LINE__, smp_processor_id(), task_pid_nr(current)); printk a; } \ } while (0)#define DPRINT_ovfl (a) \ do { \ - if (unlikely(pfm_sysctl.debug > 0 && pfm_sysctl.debug_ovfl >0)) { printk("%s.%d: CPU%d [%d] ", __FUNCTION__, __LINE__, smp_processor_id(), task_pid_nr(current)); printk a; } \ + if (unlikely(pfm_sysctl.debug > 0 && pfm_sysctl.debug_ovfl >0)) { printk("%s.%d: CPU%d [%d] ", __func__, __LINE__, smp_processor_id(), task_pid_nr(current)); printk a; } \ } while (0)#endif
arch/ia64/kernel/perfmon_default_smpl.c +2 -2
@@ -24,12 +24,12 @@ MODULE_LICENSE("GPL");#ifdef DEFAULT_DEBUG #define DPRINT (a) \ do { \ - if (unlikely(pfm_sysctl.debug >0)) { printk("%s.%d: CPU%d ", __FUNCTION__, __LINE__, smp_processor_id()); printk a; } \ + if (unlikely(pfm_sysctl.debug >0)) { printk("%s.%d: CPU%d ", __func__, __LINE__, smp_processor_id()); printk a; } \ } while (0)#define DPRINT_ovfl (a) \ do { \ - if (unlikely(pfm_sysctl.debug > 0 && pfm_sysctl.debug_ovfl >0)) { printk("%s.%d: CPU%d ", __FUNCTION__, __LINE__, smp_processor_id()); printk a; } \ + if (unlikely(pfm_sysctl.debug > 0 && pfm_sysctl.debug_ovfl >0)) { printk("%s.%d: CPU%d ", __func__, __LINE__, smp_processor_id()); printk a; } \ } while (0)#else
arch/ia64/kernel/ptrace.c +2 -2
@@ -826,14 +826,14 @@ convert_to_non_syscall (struct task_struct *child, struct pt_regs *pt,if ((long )((unsigned long )child +IA64_STK_OFFSET - sp) <IA64_PT_REGS_SIZE ) {dprintk ("ptrace.%s: ran off the top of the kernel " -"stack\n" , __FUNCTION__); +"stack\n" , __func__);return ; }if (unw_get_pr (&prev_info, &pr) <0 ) {unw_get_rp (&prev_info, &ip);dprintk ("ptrace.%s: failed to read " "predicate register (ip=0x%lx)\n" , - __FUNCTION__, ip); + __func__, ip);return ; } if (unw_is_intr_frame(&info)
arch/ia64/kernel/setup.c +4 -4
@@ -690,7 +690,7 @@ get_model_name(__u8 family, __u8 model)if (overflow++ ==0 )printk (KERN_ERR "%s: Table overflow. Some processor model information will be missing\n" , - __FUNCTION__); + __func__);return "Unknown" ; }
@@ -785,7 +785,7 @@ get_max_cacheline_size (void) status =ia64_pal_cache_summary (&levels, &unique_caches);if (status !=0 ) {printk (KERN_ERR "%s: ia64_pal_cache_summary() failed (status=%ld)\n" , - __FUNCTION__, status); + __func__, status); max =SMP_CACHE_BYTES ;/* Safest setup for "flush_icache_range()" */ ia64_i_cache_stride_shift =I_CACHE_STRIDE_SHIFT ;
@@ -798,7 +798,7 @@ get_max_cacheline_size (void)if (status !=0 ) {printk (KERN_ERR "%s: ia64_pal_cache_config_info(l=%lu, 2) failed (status=%ld)\n" , - __FUNCTION__, l, status); + __func__, l, status); max =SMP_CACHE_BYTES ;/* The safest setup for "flush_icache_range()" */ cci.pcci_stride =I_CACHE_STRIDE_SHIFT ;
@@ -814,7 +814,7 @@ get_max_cacheline_size (void)if (status !=0 ) {printk (KERN_ERR "%s: ia64_pal_cache_config_info(l=%lu, 1) failed (status=%ld)\n" , - __FUNCTION__, l, status); + __func__, l, status);/* The safest setup for "flush_icache_range()" */ cci.pcci_stride =I_CACHE_STRIDE_SHIFT ; }
arch/ia64/kernel/unaligned.c +3 -3
@@ -28,7 +28,7 @@ extern int die_if_kernel(char *str, struct pt_regs *regs, long err);#undef DEBUG_UNALIGNED_TRAP#ifdef DEBUG_UNALIGNED_TRAP -# define DPRINT(a...) do { printk("%s %u: ", __FUNCTION__, __LINE__); printk (a); } while (0) +# define DPRINT(a...) do { printk("%s %u: ", __func__, __LINE__); printk (a); } while (0)# define DDUMP (str,vp,len) dump(str, vp, len) static void
@@ -674,7 +674,7 @@ emulate_load_updates (update_t type, load_store_t ld, struct pt_regs *regs, unsi* just in case. */ if (ld.x6_op ==1 || ld.x6_op ==3 ) { -printk (KERN_ERR "%s: register update on speculative load, error\n" , __FUNCTION__); +printk (KERN_ERR "%s: register update on speculative load, error\n" , __func__);if (die_if_kernel ("unaligned reference on speculative load with register update\n" , regs,30 ))return ;
@@ -1104,7 +1104,7 @@ emulate_load_floatpair (unsigned long ifa, load_store_t ld, struct pt_regs *regs*/ if (ld.x6_op ==1 || ld.x6_op ==3 )printk (KERN_ERR "%s: register update on speculative load pair, error\n" , - __FUNCTION__); + __func__);setreg (ld.r3, ifa,0 , regs); }
arch/ia64/kernel/unwind.c +51 -51
396 lines not on this page · raw message
arch/ia64/mm/init.c +1 -1
@@ -714,7 +714,7 @@ int arch_add_memory(int nid, u64 start, u64 size)if (ret)printk ("%s: Problem encountered in __add_pages() as ret=%d\n" , - __FUNCTION__, ret); + __func__, ret);return ret; }
arch/ia64/pci/pci.c +2 -2
@@ -765,7 +765,7 @@ static void __init set_pci_cacheline_size(void) status =ia64_pal_cache_summary (&levels, &unique_caches);if (status !=0 ) {printk (KERN_ERR "%s: ia64_pal_cache_summary() failed " -"(status=%ld)\n" , __FUNCTION__, status); +"(status=%ld)\n" , __func__, status);return ; }
@@ -773,7 +773,7 @@ static void __init set_pci_cacheline_size(void) /* cache_type (data_or_unified)= */ 2, &cci);if (status !=0 ) {printk (KERN_ERR "%s: ia64_pal_cache_config_info() failed " -"(status=%ld)\n" , __FUNCTION__, status); +"(status=%ld)\n" , __func__, status);return ; } pci_cache_line_size = (1 << cci.pcci_line_size) /4 ;
arch/ia64/sn/kernel/huberror.c +2 -2
@@ -37,7 +37,7 @@ static irqreturn_t hub_eint_handler(int irq, void *arg) (u64) nasid, 0, 0, 0, 0, 0, 0);if ((int )ret_stuff.v0) -panic ("%s: Fatal %s Error" , __FUNCTION__, +panic ("%s: Fatal %s Error" , __func__, ((nasid &1 ) ?"TIO" :"HUBII" ));if (!(nasid &1 ))/* Not a TIO, handle CRB errors */
@@ -48,7 +48,7 @@ static irqreturn_t hub_eint_handler(int irq, void *arg) (u64) nasid, 0, 0, 0, 0, 0, 0);if ((int )ret_stuff.v0) -panic ("%s: Fatal TIO Error" , __FUNCTION__); +panic ("%s: Fatal TIO Error" , __func__); }else bte_error_handler ((unsigned long )NODEPDA (nasid_to_cnodeid (nasid)));
arch/ia64/sn/kernel/io_acpi_init.c +18 -18
@@ -133,7 +133,7 @@ sn_get_bussoft_ptr(struct pci_bus *bus)if (ACPI_FAILURE (status)) {printk (KERN_ERR "%s: " "acpi_get_vendor_resource() failed (0x%x) for: " , - __FUNCTION__, status); + __func__, status);acpi_ns_print_node_pathname (handle,NULL );printk ("\n" );return NULL ;
@@ -145,7 +145,7 @@ sn_get_bussoft_ptr(struct pci_bus *bus) sizeof(struct pcibus_bussoft *)) {printk (KERN_ERR "%s: Invalid vendor data length %d\n" , - __FUNCTION__, vendor->byte_length); + __func__, vendor->byte_length);kfree (buffer.pointer);return NULL ; }
@@ -184,7 +184,7 @@ sn_extract_device_info(acpi_handle handle, struct pcidev_info **pcidev_info,if (ACPI_FAILURE (status)) {printk (KERN_ERR "%s: acpi_get_vendor_resource() failed (0x%x) for: " , - __FUNCTION__, status); + __func__, status);acpi_ns_print_node_pathname (handle,NULL );printk ("\n" );return 1 ;
@@ -196,7 +196,7 @@ sn_extract_device_info(acpi_handle handle, struct pcidev_info **pcidev_info, sizeof(struct pci_devdev_info *)) {printk (KERN_ERR "%s: Invalid vendor data length: %d for: " , - __FUNCTION__, vendor->byte_length); + __func__, vendor->byte_length);acpi_ns_print_node_pathname (handle,NULL );printk ("\n" ); ret =1 ;
@@ -205,7 +205,7 @@ sn_extract_device_info(acpi_handle handle, struct pcidev_info **pcidev_info, pcidev_ptr =kzalloc (sizeof (struct pcidev_info ),GFP_KERNEL );if (!pcidev_ptr) -panic ("%s: Unable to alloc memory for pcidev_info" , __FUNCTION__); +panic ("%s: Unable to alloc memory for pcidev_info" , __func__);memcpy (&addr, vendor->byte_data,sizeof (struct pcidev_info *)); pcidev_prom_ptr =__va (addr);
@@ -214,7 +214,7 @@ sn_extract_device_info(acpi_handle handle, struct pcidev_info **pcidev_info,/* Get the IRQ info */ irq_info =kzalloc (sizeof (struct sn_irq_info ),GFP_KERNEL );if (!irq_info) -panic ("%s: Unable to alloc memory for sn_irq_info" , __FUNCTION__); +panic ("%s: Unable to alloc memory for sn_irq_info" , __func__);if (pcidev_ptr->pdi_sn_irq_info) { irq_info_prom =__va (pcidev_ptr->pdi_sn_irq_info);
@@ -249,10 +249,10 @@ get_host_devfn(acpi_handle device_handle, acpi_handle rootbus_handle) status =acpi_get_parent (child, &parent);if (ACPI_FAILURE (status)) {printk (KERN_ERR "%s: acpi_get_parent() failed " -"(0x%x) for: " , __FUNCTION__, status); +"(0x%x) for: " , __func__, status);acpi_ns_print_node_pathname (child,NULL );printk ("\n" ); -panic ("%s: Unable to find host devfn\n" , __FUNCTION__); +panic ("%s: Unable to find host devfn\n" , __func__); }if (parent == rootbus_handle)break ;
@@ -260,7 +260,7 @@ get_host_devfn(acpi_handle device_handle, acpi_handle rootbus_handle) }if (!child) {printk (KERN_ERR "%s: Unable to find root bus for: " , - __FUNCTION__); + __func__);acpi_ns_print_node_pathname (device_handle,NULL );printk ("\n" );BUG ();
@@ -269,10 +269,10 @@ get_host_devfn(acpi_handle device_handle, acpi_handle rootbus_handle) status =acpi_evaluate_integer (child,METHOD_NAME__ADR ,NULL , &adr);if (ACPI_FAILURE (status)) {printk (KERN_ERR "%s: Unable to get _ADR (0x%x) for: " , - __FUNCTION__, status); + __func__, status);acpi_ns_print_node_pathname (child,NULL );printk ("\n" ); -panic ("%s: Unable to find host devfn\n" , __FUNCTION__); +panic ("%s: Unable to find host devfn\n" , __func__); } slot = (adr >>16 ) &0xffff ;
@@ -308,7 +308,7 @@ find_matching_device(acpi_handle handle, u32 lvl, void *context, void **rv)if (ACPI_FAILURE (status)) {printk (KERN_ERR "%s: acpi_get_parent() failed (0x%x) for: " , - __FUNCTION__, status); + __func__, status);acpi_ns_print_node_pathname (handle,NULL );printk ("\n" );return AE_OK ;
@@ -318,7 +318,7 @@ find_matching_device(acpi_handle handle, u32 lvl, void *context, void **rv)if (ACPI_FAILURE (status)) {printk (KERN_ERR "%s: Failed to find _BBN in parent of: " , - __FUNCTION__); + __func__);acpi_ns_print_node_pathname (handle,NULL );printk ("\n" );return AE_OK ;
@@ -358,14 +358,14 @@ sn_acpi_get_pcidev_info(struct pci_dev *dev, struct pcidev_info **pcidev_info,if (segment !=pci_domain_nr (dev)) {printk (KERN_ERR "%s: Segment number mismatch, 0x%lx vs 0x%x for: " , - __FUNCTION__, segment,pci_domain_nr (dev)); + __func__, segment,pci_domain_nr (dev));acpi_ns_print_node_pathname (rootbus_handle,NULL );printk ("\n" );return 1 ; } }else {printk (KERN_ERR "%s: Unable to get __SEG from: " , - __FUNCTION__); + __func__);acpi_ns_print_node_pathname (rootbus_handle,NULL );printk ("\n" );return 1 ;
@@ -386,7 +386,7 @@ sn_acpi_get_pcidev_info(struct pci_dev *dev, struct pcidev_info **pcidev_info,if (!pcidev_match.handle) {printk (KERN_ERR "%s: Could not find matching ACPI device for %s.\n" , - __FUNCTION__,pci_name (dev)); + __func__,pci_name (dev));return 1 ; }
@@ -422,7 +422,7 @@ sn_acpi_slot_fixup(struct pci_dev *dev)if (sn_acpi_get_pcidev_info (dev, &pcidev_info, &sn_irq_info)) {panic ("%s: Failure obtaining pcidev_info for %s\n" , - __FUNCTION__,pci_name (dev)); + __func__,pci_name (dev)); }if (pcidev_info->pdi_pio_mapped_addr[PCI_ROM_RESOURCE ]) {
@@ -463,7 +463,7 @@ sn_acpi_bus_fixup(struct pci_bus *bus)printk (KERN_ERR "%s: 0x%04x:0x%02x Unable to " "obtain prom_bussoft_ptr\n" , - __FUNCTION__,pci_domain_nr (bus), bus->number); + __func__,pci_domain_nr (bus), bus->number);return ; }sn_common_bus_fixup (bus, prom_bussoft_ptr);
arch/ia64/sn/kernel/io_common.c +1 -1
@@ -364,7 +364,7 @@ void sn_bus_store_sysdata(struct pci_dev *dev) element =kzalloc (sizeof (struct sysdata_el ),GFP_KERNEL );if (!element) { -dev_dbg (&dev->dev,"%s: out of memory!\n" , __FUNCTION__); +dev_dbg (&dev->dev,"%s: out of memory!\n" , __func__);return ; } element->sysdata =SN_PCIDEV_INFO (dev);
arch/ia64/sn/kernel/io_init.c +2 -2
@@ -209,11 +209,11 @@ sn_io_slot_fixup(struct pci_dev *dev) pcidev_info =kzalloc (sizeof (struct pcidev_info ),GFP_KERNEL );if (!pcidev_info) -panic ("%s: Unable to alloc memory for pcidev_info" , __FUNCTION__); +panic ("%s: Unable to alloc memory for pcidev_info" , __func__); sn_irq_info =kzalloc (sizeof (struct sn_irq_info ),GFP_KERNEL );if (!sn_irq_info) -panic ("%s: Unable to alloc memory for sn_irq_info" , __FUNCTION__); +panic ("%s: Unable to alloc memory for sn_irq_info" , __func__);/* Call to retrieve pci device information needed by kernel. */ status = sal_get_pcidev_info((u64) pci_domain_nr(dev),
arch/ia64/sn/kernel/mca.c +1 -1
@@ -100,7 +100,7 @@ sn_platform_plat_specific_err_print(const u8 * sect_header, u8 ** oemdata,if (!newbuf) {mutex_unlock (&sn_oemdata_mutex);printk (KERN_ERR "%s: unable to extend sn_oemdata\n" , - __FUNCTION__); + __func__);return 1 ; }vfree (*sn_oemdata);
arch/ia64/sn/pci/pci_dma.c +3 -3
@@ -116,7 +116,7 @@ void *sn_dma_alloc_coherent(struct device *dev, size_t size, *dma_handle = provider->dma_map_consistent (pdev, phys_addr, size,SN_DMA_ADDR_PHYS );if (!*dma_handle) { -printk (KERN_ERR "%s: out of ATEs\n" , __FUNCTION__); +printk (KERN_ERR "%s: out of ATEs\n" , __func__);free_pages ((unsigned long )cpuaddr,get_order (size));return NULL ; }
@@ -179,7 +179,7 @@ dma_addr_t sn_dma_map_single(struct device *dev, void *cpu_addr, size_t size, phys_addr =__pa (cpu_addr); dma_addr = provider->dma_map (pdev, phys_addr, size,SN_DMA_ADDR_PHYS );if (!dma_addr) { -printk (KERN_ERR "%s: out of ATEs\n" , __FUNCTION__); +printk (KERN_ERR "%s: out of ATEs\n" , __func__);return 0 ; }return dma_addr;
@@ -266,7 +266,7 @@ int sn_dma_map_sg(struct device *dev, struct scatterlist *sgl, int nhwentries, SN_DMA_ADDR_PHYS);if (!sg->dma_address) { -printk (KERN_ERR "%s: out of ATEs\n" , __FUNCTION__); +printk (KERN_ERR "%s: out of ATEs\n" , __func__);/* * Free any successfully allocated entries.
arch/ia64/sn/pci/tioca_provider.c +6 -6
@@ -88,7 +88,7 @@ tioca_gart_init(struct tioca_kernel *tioca_kern)break ;default :printk (KERN_ERR "%s: Invalid CA_APERATURE_SIZE " -"0x%lx\n" , __FUNCTION__, (ulong )CA_APERATURE_SIZE ); +"0x%lx\n" , __func__, (ulong )CA_APERATURE_SIZE );return -1 ; }
@@ -124,7 +124,7 @@ tioca_gart_init(struct tioca_kernel *tioca_kern)if (!tmp) {printk (KERN_ERR "%s: Could not allocate " "%lu bytes (order %d) for GART\n" , - __FUNCTION__, + __func__, tioca_kern->ca_gart_size,get_order (tioca_kern->ca_gart_size));return -ENOMEM ;
@@ -341,7 +341,7 @@ tioca_dma_d48(struct pci_dev *pdev, u64 paddr)if (node_upper >64 ) {printk (KERN_ERR "%s: coretalk addr 0x%p node id out " -"of range\n" , __FUNCTION__, (void *)ct_addr); +"of range\n" , __func__, (void *)ct_addr);return 0 ; }
@@ -349,7 +349,7 @@ tioca_dma_d48(struct pci_dev *pdev, u64 paddr)if (node_upper != (agp_dma_extn >>CA_AGP_DMA_NODE_ID_SHFT )) {printk (KERN_ERR "%s: coretalk upper node (%u) " "mismatch with ca_agp_dma_addr_extn (%lu)\n" , - __FUNCTION__, + __func__, node_upper, (agp_dma_extn >>CA_AGP_DMA_NODE_ID_SHFT ));return 0 ; }
@@ -597,7 +597,7 @@ tioca_bus_fixup(struct pcibus_bussoft *prom_bussoft, struct pci_controller *contif (is_shub1 () &&sn_sal_rev () <0x0406 ) {printk (KERN_ERR "%s: SGI prom rev 4.06 or greater required " -"for tioca support\n" , __FUNCTION__); +"for tioca support\n" , __func__);return NULL ; }
@@ -651,7 +651,7 @@ tioca_bus_fixup(struct pcibus_bussoft *prom_bussoft, struct pci_controller *contprintk (KERN_WARNING "%s: Unable to get irq %d. " "Error interrupts won't be routed for TIOCA bus %d\n" , - __FUNCTION__,SGI_TIOCA_ERROR , + __func__,SGI_TIOCA_ERROR , (int )tioca_common->ca_common.bs_persist_busnum);sn_set_err_irq_affinity (SGI_TIOCA_ERROR );
arch/ia64/sn/pci/tioce_provider.c +2 -2
@@ -494,7 +494,7 @@ tioce_dma_unmap(struct pci_dev *pdev, dma_addr_t bus_addr, int dir)if (&map->ce_dmamap_list == &ce_kern->ce_dmamap_list) {printk (KERN_WARNING "%s: %s - no map found for bus_addr 0x%lx\n" , - __FUNCTION__,pci_name (pdev), bus_addr); + __func__,pci_name (pdev), bus_addr); }else if (--map->refcnt ==0 ) {for (i =0 ; i < map->ate_count; i++) { map->ate_shadow[i] =0 ;
@@ -1030,7 +1030,7 @@ tioce_bus_fixup(struct pcibus_bussoft *prom_bussoft, struct pci_controller *cont"%s: Unable to get irq %d. " "Error interrupts won't be routed for " "TIOCE bus %04x:%02x\n" , - __FUNCTION__,SGI_PCIASIC_ERROR , + __func__,SGI_PCIASIC_ERROR , tioce_common->ce_pcibus.bs_persist_segment, tioce_common->ce_pcibus.bs_persist_busnum);
Signature · 1 line
1.5.4.3.500.g83a2c