diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-04-28 05:13:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 11:58:27 -0400 |
commit | bbb8d343affd21850849fa4d41bf91c7527a3d04 (patch) | |
tree | 8d958286b21228673677668e09ed185602568eee | |
parent | b901d40c970e6db319fe1f8d84db2b9684b6c9bf (diff) |
alpha: remove remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__
The change in pci-iommu,c should be safe as arena has not been assigned
when we get to this point.
Some were within #if 0 blocks, have changed them and left the blocks
as they appear to be debugging infrastructure.
A #define FN __FUNCTION__ was removed and occurances of FN were replaced
with __func__ as well.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Richard Henderson <rth@twiddle.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | arch/alpha/kernel/core_marvel.c | 6 | ||||
-rw-r--r-- | arch/alpha/kernel/core_t2.c | 24 | ||||
-rw-r--r-- | arch/alpha/kernel/core_titan.c | 34 | ||||
-rw-r--r-- | arch/alpha/kernel/core_tsunami.c | 28 | ||||
-rw-r--r-- | arch/alpha/kernel/pci.c | 2 | ||||
-rw-r--r-- | arch/alpha/kernel/pci_iommu.c | 34 | ||||
-rw-r--r-- | arch/alpha/kernel/smp.c | 4 | ||||
-rw-r--r-- | arch/alpha/kernel/srm_env.c | 2 | ||||
-rw-r--r-- | arch/alpha/kernel/sys_alcor.c | 2 | ||||
-rw-r--r-- | arch/alpha/kernel/sys_marvel.c | 12 | ||||
-rw-r--r-- | arch/alpha/kernel/sys_sable.c | 6 | ||||
-rw-r--r-- | arch/alpha/kernel/sys_sio.c | 2 |
12 files changed, 72 insertions, 84 deletions
diff --git a/arch/alpha/kernel/core_marvel.c b/arch/alpha/kernel/core_marvel.c index f10d2eddd2c3..b04f1feb1dda 100644 --- a/arch/alpha/kernel/core_marvel.c +++ b/arch/alpha/kernel/core_marvel.c | |||
@@ -994,7 +994,7 @@ marvel_agp_configure(alpha_agp_info *agp) | |||
994 | * rate, but warn the user. | 994 | * rate, but warn the user. |
995 | */ | 995 | */ |
996 | printk("%s: unknown PLL setting RNGB=%lx (PLL6_CTL=%016lx)\n", | 996 | printk("%s: unknown PLL setting RNGB=%lx (PLL6_CTL=%016lx)\n", |
997 | __FUNCTION__, IO7_PLL_RNGB(agp_pll), agp_pll); | 997 | __func__, IO7_PLL_RNGB(agp_pll), agp_pll); |
998 | break; | 998 | break; |
999 | } | 999 | } |
1000 | 1000 | ||
@@ -1044,13 +1044,13 @@ marvel_agp_translate(alpha_agp_info *agp, dma_addr_t addr) | |||
1044 | 1044 | ||
1045 | if (addr < agp->aperture.bus_base || | 1045 | if (addr < agp->aperture.bus_base || |
1046 | addr >= agp->aperture.bus_base + agp->aperture.size) { | 1046 | addr >= agp->aperture.bus_base + agp->aperture.size) { |
1047 | printk("%s: addr out of range\n", __FUNCTION__); | 1047 | printk("%s: addr out of range\n", __func__); |
1048 | return -EINVAL; | 1048 | return -EINVAL; |
1049 | } | 1049 | } |
1050 | 1050 | ||
1051 | pte = aper->arena->ptes[baddr >> PAGE_SHIFT]; | 1051 | pte = aper->arena->ptes[baddr >> PAGE_SHIFT]; |
1052 | if (!(pte & 1)) { | 1052 | if (!(pte & 1)) { |
1053 | printk("%s: pte not valid\n", __FUNCTION__); | 1053 | printk("%s: pte not valid\n", __func__); |
1054 | return -EINVAL; | 1054 | return -EINVAL; |
1055 | } | 1055 | } |
1056 | return (pte >> 1) << PAGE_SHIFT; | 1056 | return (pte >> 1) << PAGE_SHIFT; |
diff --git a/arch/alpha/kernel/core_t2.c b/arch/alpha/kernel/core_t2.c index f5ca5255eb06..c0750291b44a 100644 --- a/arch/alpha/kernel/core_t2.c +++ b/arch/alpha/kernel/core_t2.c | |||
@@ -336,10 +336,7 @@ t2_direct_map_window1(unsigned long base, unsigned long length) | |||
336 | 336 | ||
337 | #if DEBUG_PRINT_FINAL_SETTINGS | 337 | #if DEBUG_PRINT_FINAL_SETTINGS |
338 | printk("%s: setting WBASE1=0x%lx WMASK1=0x%lx TBASE1=0x%lx\n", | 338 | printk("%s: setting WBASE1=0x%lx WMASK1=0x%lx TBASE1=0x%lx\n", |
339 | __FUNCTION__, | 339 | __func__, *(vulp)T2_WBASE1, *(vulp)T2_WMASK1, *(vulp)T2_TBASE1); |
340 | *(vulp)T2_WBASE1, | ||
341 | *(vulp)T2_WMASK1, | ||
342 | *(vulp)T2_TBASE1); | ||
343 | #endif | 340 | #endif |
344 | } | 341 | } |
345 | 342 | ||
@@ -366,10 +363,7 @@ t2_sg_map_window2(struct pci_controller *hose, | |||
366 | 363 | ||
367 | #if DEBUG_PRINT_FINAL_SETTINGS | 364 | #if DEBUG_PRINT_FINAL_SETTINGS |
368 | printk("%s: setting WBASE2=0x%lx WMASK2=0x%lx TBASE2=0x%lx\n", | 365 | printk("%s: setting WBASE2=0x%lx WMASK2=0x%lx TBASE2=0x%lx\n", |
369 | __FUNCTION__, | 366 | __func__, *(vulp)T2_WBASE2, *(vulp)T2_WMASK2, *(vulp)T2_TBASE2); |
370 | *(vulp)T2_WBASE2, | ||
371 | *(vulp)T2_WMASK2, | ||
372 | *(vulp)T2_TBASE2); | ||
373 | #endif | 367 | #endif |
374 | } | 368 | } |
375 | 369 | ||
@@ -377,15 +371,15 @@ static void __init | |||
377 | t2_save_configuration(void) | 371 | t2_save_configuration(void) |
378 | { | 372 | { |
379 | #if DEBUG_PRINT_INITIAL_SETTINGS | 373 | #if DEBUG_PRINT_INITIAL_SETTINGS |
380 | printk("%s: HAE_1 was 0x%lx\n", __FUNCTION__, srm_hae); /* HW is 0 */ | 374 | printk("%s: HAE_1 was 0x%lx\n", __func__, srm_hae); /* HW is 0 */ |
381 | printk("%s: HAE_2 was 0x%lx\n", __FUNCTION__, *(vulp)T2_HAE_2); | 375 | printk("%s: HAE_2 was 0x%lx\n", __func__, *(vulp)T2_HAE_2); |
382 | printk("%s: HAE_3 was 0x%lx\n", __FUNCTION__, *(vulp)T2_HAE_3); | 376 | printk("%s: HAE_3 was 0x%lx\n", __func__, *(vulp)T2_HAE_3); |
383 | printk("%s: HAE_4 was 0x%lx\n", __FUNCTION__, *(vulp)T2_HAE_4); | 377 | printk("%s: HAE_4 was 0x%lx\n", __func__, *(vulp)T2_HAE_4); |
384 | printk("%s: HBASE was 0x%lx\n", __FUNCTION__, *(vulp)T2_HBASE); | 378 | printk("%s: HBASE was 0x%lx\n", __func__, *(vulp)T2_HBASE); |
385 | 379 | ||
386 | printk("%s: WBASE1=0x%lx WMASK1=0x%lx TBASE1=0x%lx\n", __FUNCTION__, | 380 | printk("%s: WBASE1=0x%lx WMASK1=0x%lx TBASE1=0x%lx\n", __func__, |
387 | *(vulp)T2_WBASE1, *(vulp)T2_WMASK1, *(vulp)T2_TBASE1); | 381 | *(vulp)T2_WBASE1, *(vulp)T2_WMASK1, *(vulp)T2_TBASE1); |
388 | printk("%s: WBASE2=0x%lx WMASK2=0x%lx TBASE2=0x%lx\n", __FUNCTION__, | 382 | printk("%s: WBASE2=0x%lx WMASK2=0x%lx TBASE2=0x%lx\n", __func__, |
389 | *(vulp)T2_WBASE2, *(vulp)T2_WMASK2, *(vulp)T2_TBASE2); | 383 | *(vulp)T2_WBASE2, *(vulp)T2_WMASK2, *(vulp)T2_TBASE2); |
390 | #endif | 384 | #endif |
391 | 385 | ||
diff --git a/arch/alpha/kernel/core_titan.c b/arch/alpha/kernel/core_titan.c index 819326627b96..319fcb74611e 100644 --- a/arch/alpha/kernel/core_titan.c +++ b/arch/alpha/kernel/core_titan.c | |||
@@ -365,21 +365,21 @@ void __init | |||
365 | titan_init_arch(void) | 365 | titan_init_arch(void) |
366 | { | 366 | { |
367 | #if 0 | 367 | #if 0 |
368 | printk("%s: titan_init_arch()\n", __FUNCTION__); | 368 | printk("%s: titan_init_arch()\n", __func__); |
369 | printk("%s: CChip registers:\n", __FUNCTION__); | 369 | printk("%s: CChip registers:\n", __func__); |
370 | printk("%s: CSR_CSC 0x%lx\n", __FUNCTION__, TITAN_cchip->csc.csr); | 370 | printk("%s: CSR_CSC 0x%lx\n", __func__, TITAN_cchip->csc.csr); |
371 | printk("%s: CSR_MTR 0x%lx\n", __FUNCTION__, TITAN_cchip->mtr.csr); | 371 | printk("%s: CSR_MTR 0x%lx\n", __func__, TITAN_cchip->mtr.csr); |
372 | printk("%s: CSR_MISC 0x%lx\n", __FUNCTION__, TITAN_cchip->misc.csr); | 372 | printk("%s: CSR_MISC 0x%lx\n", __func__, TITAN_cchip->misc.csr); |
373 | printk("%s: CSR_DIM0 0x%lx\n", __FUNCTION__, TITAN_cchip->dim0.csr); | 373 | printk("%s: CSR_DIM0 0x%lx\n", __func__, TITAN_cchip->dim0.csr); |
374 | printk("%s: CSR_DIM1 0x%lx\n", __FUNCTION__, TITAN_cchip->dim1.csr); | 374 | printk("%s: CSR_DIM1 0x%lx\n", __func__, TITAN_cchip->dim1.csr); |
375 | printk("%s: CSR_DIR0 0x%lx\n", __FUNCTION__, TITAN_cchip->dir0.csr); | 375 | printk("%s: CSR_DIR0 0x%lx\n", __func__, TITAN_cchip->dir0.csr); |
376 | printk("%s: CSR_DIR1 0x%lx\n", __FUNCTION__, TITAN_cchip->dir1.csr); | 376 | printk("%s: CSR_DIR1 0x%lx\n", __func__, TITAN_cchip->dir1.csr); |
377 | printk("%s: CSR_DRIR 0x%lx\n", __FUNCTION__, TITAN_cchip->drir.csr); | 377 | printk("%s: CSR_DRIR 0x%lx\n", __func__, TITAN_cchip->drir.csr); |
378 | 378 | ||
379 | printk("%s: DChip registers:\n", __FUNCTION__); | 379 | printk("%s: DChip registers:\n", __func__); |
380 | printk("%s: CSR_DSC 0x%lx\n", __FUNCTION__, TITAN_dchip->dsc.csr); | 380 | printk("%s: CSR_DSC 0x%lx\n", __func__, TITAN_dchip->dsc.csr); |
381 | printk("%s: CSR_STR 0x%lx\n", __FUNCTION__, TITAN_dchip->str.csr); | 381 | printk("%s: CSR_STR 0x%lx\n", __func__, TITAN_dchip->str.csr); |
382 | printk("%s: CSR_DREV 0x%lx\n", __FUNCTION__, TITAN_dchip->drev.csr); | 382 | printk("%s: CSR_DREV 0x%lx\n", __func__, TITAN_dchip->drev.csr); |
383 | #endif | 383 | #endif |
384 | 384 | ||
385 | boot_cpuid = __hard_smp_processor_id(); | 385 | boot_cpuid = __hard_smp_processor_id(); |
@@ -700,13 +700,13 @@ titan_agp_translate(alpha_agp_info *agp, dma_addr_t addr) | |||
700 | 700 | ||
701 | if (addr < agp->aperture.bus_base || | 701 | if (addr < agp->aperture.bus_base || |
702 | addr >= agp->aperture.bus_base + agp->aperture.size) { | 702 | addr >= agp->aperture.bus_base + agp->aperture.size) { |
703 | printk("%s: addr out of range\n", __FUNCTION__); | 703 | printk("%s: addr out of range\n", __func__); |
704 | return -EINVAL; | 704 | return -EINVAL; |
705 | } | 705 | } |
706 | 706 | ||
707 | pte = aper->arena->ptes[baddr >> PAGE_SHIFT]; | 707 | pte = aper->arena->ptes[baddr >> PAGE_SHIFT]; |
708 | if (!(pte & 1)) { | 708 | if (!(pte & 1)) { |
709 | printk("%s: pte not valid\n", __FUNCTION__); | 709 | printk("%s: pte not valid\n", __func__); |
710 | return -EINVAL; | 710 | return -EINVAL; |
711 | } | 711 | } |
712 | 712 | ||
diff --git a/arch/alpha/kernel/core_tsunami.c b/arch/alpha/kernel/core_tsunami.c index ef91e09590d4..5e7c28f92f19 100644 --- a/arch/alpha/kernel/core_tsunami.c +++ b/arch/alpha/kernel/core_tsunami.c | |||
@@ -241,8 +241,6 @@ tsunami_probe_write(volatile unsigned long *vaddr) | |||
241 | #define tsunami_probe_read(ADDR) 1 | 241 | #define tsunami_probe_read(ADDR) 1 |
242 | #endif /* NXM_MACHINE_CHECKS_ON_TSUNAMI */ | 242 | #endif /* NXM_MACHINE_CHECKS_ON_TSUNAMI */ |
243 | 243 | ||
244 | #define FN __FUNCTION__ | ||
245 | |||
246 | static void __init | 244 | static void __init |
247 | tsunami_init_one_pchip(tsunami_pchip *pchip, int index) | 245 | tsunami_init_one_pchip(tsunami_pchip *pchip, int index) |
248 | { | 246 | { |
@@ -383,27 +381,27 @@ tsunami_init_arch(void) | |||
383 | /* NXMs just don't matter to Tsunami--unless they make it | 381 | /* NXMs just don't matter to Tsunami--unless they make it |
384 | choke completely. */ | 382 | choke completely. */ |
385 | tmp = (unsigned long)(TSUNAMI_cchip - 1); | 383 | tmp = (unsigned long)(TSUNAMI_cchip - 1); |
386 | printk("%s: probing bogus address: 0x%016lx\n", FN, bogus_addr); | 384 | printk("%s: probing bogus address: 0x%016lx\n", __func__, bogus_addr); |
387 | printk("\tprobe %s\n", | 385 | printk("\tprobe %s\n", |
388 | tsunami_probe_write((unsigned long *)bogus_addr) | 386 | tsunami_probe_write((unsigned long *)bogus_addr) |
389 | ? "succeeded" : "failed"); | 387 | ? "succeeded" : "failed"); |
390 | #endif /* NXM_MACHINE_CHECKS_ON_TSUNAMI */ | 388 | #endif /* NXM_MACHINE_CHECKS_ON_TSUNAMI */ |
391 | 389 | ||
392 | #if 0 | 390 | #if 0 |
393 | printk("%s: CChip registers:\n", FN); | 391 | printk("%s: CChip registers:\n", __func__); |
394 | printk("%s: CSR_CSC 0x%lx\n", FN, TSUNAMI_cchip->csc.csr); | 392 | printk("%s: CSR_CSC 0x%lx\n", __func__, TSUNAMI_cchip->csc.csr); |
395 | printk("%s: CSR_MTR 0x%lx\n", FN, TSUNAMI_cchip.mtr.csr); | 393 | printk("%s: CSR_MTR 0x%lx\n", __func__, TSUNAMI_cchip.mtr.csr); |
396 | printk("%s: CSR_MISC 0x%lx\n", FN, TSUNAMI_cchip->misc.csr); | 394 | printk("%s: CSR_MISC 0x%lx\n", __func__, TSUNAMI_cchip->misc.csr); |
397 | printk("%s: CSR_DIM0 0x%lx\n", FN, TSUNAMI_cchip->dim0.csr); | 395 | printk("%s: CSR_DIM0 0x%lx\n", __func__, TSUNAMI_cchip->dim0.csr); |
398 | printk("%s: CSR_DIM1 0x%lx\n", FN, TSUNAMI_cchip->dim1.csr); | 396 | printk("%s: CSR_DIM1 0x%lx\n", __func__, TSUNAMI_cchip->dim1.csr); |
399 | printk("%s: CSR_DIR0 0x%lx\n", FN, TSUNAMI_cchip->dir0.csr); | 397 | printk("%s: CSR_DIR0 0x%lx\n", __func__, TSUNAMI_cchip->dir0.csr); |
400 | printk("%s: CSR_DIR1 0x%lx\n", FN, TSUNAMI_cchip->dir1.csr); | 398 | printk("%s: CSR_DIR1 0x%lx\n", __func__, TSUNAMI_cchip->dir1.csr); |
401 | printk("%s: CSR_DRIR 0x%lx\n", FN, TSUNAMI_cchip->drir.csr); | 399 | printk("%s: CSR_DRIR 0x%lx\n", __func__, TSUNAMI_cchip->drir.csr); |
402 | 400 | ||
403 | printk("%s: DChip registers:\n"); | 401 | printk("%s: DChip registers:\n"); |
404 | printk("%s: CSR_DSC 0x%lx\n", FN, TSUNAMI_dchip->dsc.csr); | 402 | printk("%s: CSR_DSC 0x%lx\n", __func__, TSUNAMI_dchip->dsc.csr); |
405 | printk("%s: CSR_STR 0x%lx\n", FN, TSUNAMI_dchip->str.csr); | 403 | printk("%s: CSR_STR 0x%lx\n", __func__, TSUNAMI_dchip->str.csr); |
406 | printk("%s: CSR_DREV 0x%lx\n", FN, TSUNAMI_dchip->drev.csr); | 404 | printk("%s: CSR_DREV 0x%lx\n", __func__, TSUNAMI_dchip->drev.csr); |
407 | #endif | 405 | #endif |
408 | /* With multiple PCI busses, we play with I/O as physical addrs. */ | 406 | /* With multiple PCI busses, we play with I/O as physical addrs. */ |
409 | ioport_resource.end = ~0UL; | 407 | ioport_resource.end = ~0UL; |
diff --git a/arch/alpha/kernel/pci.c b/arch/alpha/kernel/pci.c index 78357798b6fd..baf57563b14c 100644 --- a/arch/alpha/kernel/pci.c +++ b/arch/alpha/kernel/pci.c | |||
@@ -208,7 +208,7 @@ pdev_save_srm_config(struct pci_dev *dev) | |||
208 | 208 | ||
209 | tmp = kmalloc(sizeof(*tmp), GFP_KERNEL); | 209 | tmp = kmalloc(sizeof(*tmp), GFP_KERNEL); |
210 | if (!tmp) { | 210 | if (!tmp) { |
211 | printk(KERN_ERR "%s: kmalloc() failed!\n", __FUNCTION__); | 211 | printk(KERN_ERR "%s: kmalloc() failed!\n", __func__); |
212 | return; | 212 | return; |
213 | } | 213 | } |
214 | tmp->next = srm_saved_configs; | 214 | tmp->next = srm_saved_configs; |
diff --git a/arch/alpha/kernel/pci_iommu.c b/arch/alpha/kernel/pci_iommu.c index dd6e334ab9e1..2179c602032a 100644 --- a/arch/alpha/kernel/pci_iommu.c +++ b/arch/alpha/kernel/pci_iommu.c | |||
@@ -79,25 +79,21 @@ iommu_arena_new_node(int nid, struct pci_controller *hose, dma_addr_t base, | |||
79 | 79 | ||
80 | #ifdef CONFIG_DISCONTIGMEM | 80 | #ifdef CONFIG_DISCONTIGMEM |
81 | 81 | ||
82 | if (!NODE_DATA(nid) || | 82 | arena = alloc_bootmem_node(NODE_DATA(nid), sizeof(*arena)); |
83 | (NULL == (arena = alloc_bootmem_node(NODE_DATA(nid), | 83 | if (!NODE_DATA(nid) || !arena) { |
84 | sizeof(*arena))))) { | 84 | printk("%s: couldn't allocate arena from node %d\n" |
85 | printk("%s: couldn't allocate arena from node %d\n" | 85 | " falling back to system-wide allocation\n", |
86 | " falling back to system-wide allocation\n", | 86 | __func__, nid); |
87 | __FUNCTION__, nid); | 87 | arena = alloc_bootmem(sizeof(*arena)); |
88 | arena = alloc_bootmem(sizeof(*arena)); | 88 | } |
89 | } | 89 | |
90 | 90 | arena->ptes = __alloc_bootmem_node(NODE_DATA(nid), mem_size, align, 0); | |
91 | if (!NODE_DATA(nid) || | 91 | if (!NODE_DATA(nid) || !arena->ptes) { |
92 | (NULL == (arena->ptes = __alloc_bootmem_node(NODE_DATA(nid), | 92 | printk("%s: couldn't allocate arena ptes from node %d\n" |
93 | mem_size, | 93 | " falling back to system-wide allocation\n", |
94 | align, | 94 | __func__, nid); |
95 | 0)))) { | 95 | arena->ptes = __alloc_bootmem(mem_size, align, 0); |
96 | printk("%s: couldn't allocate arena ptes from node %d\n" | 96 | } |
97 | " falling back to system-wide allocation\n", | ||
98 | __FUNCTION__, nid); | ||
99 | arena->ptes = __alloc_bootmem(mem_size, align, 0); | ||
100 | } | ||
101 | 97 | ||
102 | #else /* CONFIG_DISCONTIGMEM */ | 98 | #else /* CONFIG_DISCONTIGMEM */ |
103 | 99 | ||
diff --git a/arch/alpha/kernel/smp.c b/arch/alpha/kernel/smp.c index 63c2073401ee..2525692db0ab 100644 --- a/arch/alpha/kernel/smp.c +++ b/arch/alpha/kernel/smp.c | |||
@@ -755,7 +755,7 @@ smp_call_function_on_cpu (void (*func) (void *info), void *info, int retry, | |||
755 | if (atomic_read(&data.unstarted_count) > 0) { | 755 | if (atomic_read(&data.unstarted_count) > 0) { |
756 | long start_time = jiffies; | 756 | long start_time = jiffies; |
757 | printk(KERN_ERR "%s: initial timeout -- trying long wait\n", | 757 | printk(KERN_ERR "%s: initial timeout -- trying long wait\n", |
758 | __FUNCTION__); | 758 | __func__); |
759 | timeout = jiffies + 30 * HZ; | 759 | timeout = jiffies + 30 * HZ; |
760 | while (atomic_read(&data.unstarted_count) > 0 | 760 | while (atomic_read(&data.unstarted_count) > 0 |
761 | && time_before(jiffies, timeout)) | 761 | && time_before(jiffies, timeout)) |
@@ -764,7 +764,7 @@ smp_call_function_on_cpu (void (*func) (void *info), void *info, int retry, | |||
764 | long delta = jiffies - start_time; | 764 | long delta = jiffies - start_time; |
765 | printk(KERN_ERR | 765 | printk(KERN_ERR |
766 | "%s: response %ld.%ld seconds into long wait\n", | 766 | "%s: response %ld.%ld seconds into long wait\n", |
767 | __FUNCTION__, delta / HZ, | 767 | __func__, delta / HZ, |
768 | (100 * (delta - ((delta / HZ) * HZ))) / HZ); | 768 | (100 * (delta - ((delta / HZ) * HZ))) / HZ); |
769 | } | 769 | } |
770 | } | 770 | } |
diff --git a/arch/alpha/kernel/srm_env.c b/arch/alpha/kernel/srm_env.c index f7dd081d57ff..78ad7cd1bbd6 100644 --- a/arch/alpha/kernel/srm_env.c +++ b/arch/alpha/kernel/srm_env.c | |||
@@ -199,7 +199,7 @@ srm_env_init(void) | |||
199 | printk(KERN_INFO "%s: This Alpha system doesn't " | 199 | printk(KERN_INFO "%s: This Alpha system doesn't " |
200 | "know about SRM (or you've booted " | 200 | "know about SRM (or you've booted " |
201 | "SRM->MILO->Linux, which gets " | 201 | "SRM->MILO->Linux, which gets " |
202 | "misdetected)...\n", __FUNCTION__); | 202 | "misdetected)...\n", __func__); |
203 | return -ENODEV; | 203 | return -ENODEV; |
204 | } | 204 | } |
205 | 205 | ||
diff --git a/arch/alpha/kernel/sys_alcor.c b/arch/alpha/kernel/sys_alcor.c index d187d01d2a17..e53a1e1c2f21 100644 --- a/arch/alpha/kernel/sys_alcor.c +++ b/arch/alpha/kernel/sys_alcor.c | |||
@@ -259,7 +259,7 @@ alcor_init_pci(void) | |||
259 | if (dev && dev->devfn == PCI_DEVFN(6,0)) { | 259 | if (dev && dev->devfn == PCI_DEVFN(6,0)) { |
260 | alpha_mv.sys.cia.gru_int_req_bits = XLT_GRU_INT_REQ_BITS; | 260 | alpha_mv.sys.cia.gru_int_req_bits = XLT_GRU_INT_REQ_BITS; |
261 | printk(KERN_INFO "%s: Detected AS500 or XLT motherboard.\n", | 261 | printk(KERN_INFO "%s: Detected AS500 or XLT motherboard.\n", |
262 | __FUNCTION__); | 262 | __func__); |
263 | } | 263 | } |
264 | pci_dev_put(dev); | 264 | pci_dev_put(dev); |
265 | } | 265 | } |
diff --git a/arch/alpha/kernel/sys_marvel.c b/arch/alpha/kernel/sys_marvel.c index 922143ea1cdb..828449cd2636 100644 --- a/arch/alpha/kernel/sys_marvel.c +++ b/arch/alpha/kernel/sys_marvel.c | |||
@@ -80,7 +80,7 @@ io7_get_irq_ctl(unsigned int irq, struct io7 **pio7) | |||
80 | if (!(io7 = marvel_find_io7(pid))) { | 80 | if (!(io7 = marvel_find_io7(pid))) { |
81 | printk(KERN_ERR | 81 | printk(KERN_ERR |
82 | "%s for nonexistent io7 -- vec %x, pid %d\n", | 82 | "%s for nonexistent io7 -- vec %x, pid %d\n", |
83 | __FUNCTION__, irq, pid); | 83 | __func__, irq, pid); |
84 | return NULL; | 84 | return NULL; |
85 | } | 85 | } |
86 | 86 | ||
@@ -90,7 +90,7 @@ io7_get_irq_ctl(unsigned int irq, struct io7 **pio7) | |||
90 | if (irq >= 0x180) { | 90 | if (irq >= 0x180) { |
91 | printk(KERN_ERR | 91 | printk(KERN_ERR |
92 | "%s for invalid irq -- pid %d adjusted irq %x\n", | 92 | "%s for invalid irq -- pid %d adjusted irq %x\n", |
93 | __FUNCTION__, pid, irq); | 93 | __func__, pid, irq); |
94 | return NULL; | 94 | return NULL; |
95 | } | 95 | } |
96 | 96 | ||
@@ -110,8 +110,8 @@ io7_enable_irq(unsigned int irq) | |||
110 | 110 | ||
111 | ctl = io7_get_irq_ctl(irq, &io7); | 111 | ctl = io7_get_irq_ctl(irq, &io7); |
112 | if (!ctl || !io7) { | 112 | if (!ctl || !io7) { |
113 | printk(KERN_ERR "%s: get_ctl failed for irq %x\n", | 113 | printk(KERN_ERR "%s: get_ctl failed for irq %x\n", |
114 | __FUNCTION__, irq); | 114 | __func__, irq); |
115 | return; | 115 | return; |
116 | } | 116 | } |
117 | 117 | ||
@@ -130,8 +130,8 @@ io7_disable_irq(unsigned int irq) | |||
130 | 130 | ||
131 | ctl = io7_get_irq_ctl(irq, &io7); | 131 | ctl = io7_get_irq_ctl(irq, &io7); |
132 | if (!ctl || !io7) { | 132 | if (!ctl || !io7) { |
133 | printk(KERN_ERR "%s: get_ctl failed for irq %x\n", | 133 | printk(KERN_ERR "%s: get_ctl failed for irq %x\n", |
134 | __FUNCTION__, irq); | 134 | __func__, irq); |
135 | return; | 135 | return; |
136 | } | 136 | } |
137 | 137 | ||
diff --git a/arch/alpha/kernel/sys_sable.c b/arch/alpha/kernel/sys_sable.c index 906019cfa681..99a7f19da13a 100644 --- a/arch/alpha/kernel/sys_sable.c +++ b/arch/alpha/kernel/sys_sable.c | |||
@@ -454,7 +454,7 @@ sable_lynx_enable_irq(unsigned int irq) | |||
454 | spin_unlock(&sable_lynx_irq_lock); | 454 | spin_unlock(&sable_lynx_irq_lock); |
455 | #if 0 | 455 | #if 0 |
456 | printk("%s: mask 0x%lx bit 0x%x irq 0x%x\n", | 456 | printk("%s: mask 0x%lx bit 0x%x irq 0x%x\n", |
457 | __FUNCTION__, mask, bit, irq); | 457 | __func__, mask, bit, irq); |
458 | #endif | 458 | #endif |
459 | } | 459 | } |
460 | 460 | ||
@@ -470,7 +470,7 @@ sable_lynx_disable_irq(unsigned int irq) | |||
470 | spin_unlock(&sable_lynx_irq_lock); | 470 | spin_unlock(&sable_lynx_irq_lock); |
471 | #if 0 | 471 | #if 0 |
472 | printk("%s: mask 0x%lx bit 0x%x irq 0x%x\n", | 472 | printk("%s: mask 0x%lx bit 0x%x irq 0x%x\n", |
473 | __FUNCTION__, mask, bit, irq); | 473 | __func__, mask, bit, irq); |
474 | #endif | 474 | #endif |
475 | } | 475 | } |
476 | 476 | ||
@@ -524,7 +524,7 @@ sable_lynx_srm_device_interrupt(unsigned long vector) | |||
524 | irq = sable_lynx_irq_swizzle->mask_to_irq[bit]; | 524 | irq = sable_lynx_irq_swizzle->mask_to_irq[bit]; |
525 | #if 0 | 525 | #if 0 |
526 | printk("%s: vector 0x%lx bit 0x%x irq 0x%x\n", | 526 | printk("%s: vector 0x%lx bit 0x%x irq 0x%x\n", |
527 | __FUNCTION__, vector, bit, irq); | 527 | __func__, vector, bit, irq); |
528 | #endif | 528 | #endif |
529 | handle_irq(irq); | 529 | handle_irq(irq); |
530 | } | 530 | } |
diff --git a/arch/alpha/kernel/sys_sio.c b/arch/alpha/kernel/sys_sio.c index ee7b9009ebb4..d4327e461c22 100644 --- a/arch/alpha/kernel/sys_sio.c +++ b/arch/alpha/kernel/sys_sio.c | |||
@@ -89,7 +89,7 @@ sio_pci_route(void) | |||
89 | /* First, ALWAYS read and print the original setting. */ | 89 | /* First, ALWAYS read and print the original setting. */ |
90 | pci_bus_read_config_dword(pci_isa_hose->bus, PCI_DEVFN(7, 0), 0x60, | 90 | pci_bus_read_config_dword(pci_isa_hose->bus, PCI_DEVFN(7, 0), 0x60, |
91 | &orig_route_tab); | 91 | &orig_route_tab); |
92 | printk("%s: PIRQ original 0x%x new 0x%x\n", __FUNCTION__, | 92 | printk("%s: PIRQ original 0x%x new 0x%x\n", __func__, |
93 | orig_route_tab, alpha_mv.sys.sio.route_tab); | 93 | orig_route_tab, alpha_mv.sys.sio.route_tab); |
94 | 94 | ||
95 | #if defined(ALPHA_RESTORE_SRM_SETUP) | 95 | #if defined(ALPHA_RESTORE_SRM_SETUP) |