diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-03-28 17:21:07 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-04-01 05:43:09 -0400 |
commit | e48b1b452ff630288c930fd8e0c2d808bc15f7ad (patch) | |
tree | 7ba5f83964a1d965d8b8b6187b39083e1a99dfd2 /arch/powerpc/oprofile | |
parent | a78bfbfcfaca64e6198f164c43a60afc8a50e2c6 (diff) |
[POWERPC] Replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/oprofile')
-rw-r--r-- | arch/powerpc/oprofile/cell/spu_task_sync.c | 12 | ||||
-rw-r--r-- | arch/powerpc/oprofile/cell/vma_map.c | 10 | ||||
-rw-r--r-- | arch/powerpc/oprofile/op_model_cell.c | 14 |
3 files changed, 18 insertions, 18 deletions
diff --git a/arch/powerpc/oprofile/cell/spu_task_sync.c b/arch/powerpc/oprofile/cell/spu_task_sync.c index 257b13cb18af..2a9b4a049329 100644 --- a/arch/powerpc/oprofile/cell/spu_task_sync.c +++ b/arch/powerpc/oprofile/cell/spu_task_sync.c | |||
@@ -68,7 +68,7 @@ static struct cached_info *get_cached_info(struct spu *the_spu, int spu_num) | |||
68 | if (spu_num >= num_spu_nodes) { | 68 | if (spu_num >= num_spu_nodes) { |
69 | printk(KERN_ERR "SPU_PROF: " | 69 | printk(KERN_ERR "SPU_PROF: " |
70 | "%s, line %d: Invalid index %d into spu info cache\n", | 70 | "%s, line %d: Invalid index %d into spu info cache\n", |
71 | __FUNCTION__, __LINE__, spu_num); | 71 | __func__, __LINE__, spu_num); |
72 | ret_info = NULL; | 72 | ret_info = NULL; |
73 | goto out; | 73 | goto out; |
74 | } | 74 | } |
@@ -115,7 +115,7 @@ prepare_cached_spu_info(struct spu *spu, unsigned long objectId) | |||
115 | if (!info) { | 115 | if (!info) { |
116 | printk(KERN_ERR "SPU_PROF: " | 116 | printk(KERN_ERR "SPU_PROF: " |
117 | "%s, line %d: create vma_map failed\n", | 117 | "%s, line %d: create vma_map failed\n", |
118 | __FUNCTION__, __LINE__); | 118 | __func__, __LINE__); |
119 | retval = -ENOMEM; | 119 | retval = -ENOMEM; |
120 | goto err_alloc; | 120 | goto err_alloc; |
121 | } | 121 | } |
@@ -123,7 +123,7 @@ prepare_cached_spu_info(struct spu *spu, unsigned long objectId) | |||
123 | if (!new_map) { | 123 | if (!new_map) { |
124 | printk(KERN_ERR "SPU_PROF: " | 124 | printk(KERN_ERR "SPU_PROF: " |
125 | "%s, line %d: create vma_map failed\n", | 125 | "%s, line %d: create vma_map failed\n", |
126 | __FUNCTION__, __LINE__); | 126 | __func__, __LINE__); |
127 | retval = -ENOMEM; | 127 | retval = -ENOMEM; |
128 | goto err_alloc; | 128 | goto err_alloc; |
129 | } | 129 | } |
@@ -171,7 +171,7 @@ static int release_cached_info(int spu_index) | |||
171 | printk(KERN_ERR "SPU_PROF: " | 171 | printk(KERN_ERR "SPU_PROF: " |
172 | "%s, line %d: " | 172 | "%s, line %d: " |
173 | "Invalid index %d into spu info cache\n", | 173 | "Invalid index %d into spu info cache\n", |
174 | __FUNCTION__, __LINE__, spu_index); | 174 | __func__, __LINE__, spu_index); |
175 | goto out; | 175 | goto out; |
176 | } | 176 | } |
177 | end = spu_index + 1; | 177 | end = spu_index + 1; |
@@ -273,7 +273,7 @@ fail_no_image_cookie: | |||
273 | 273 | ||
274 | printk(KERN_ERR "SPU_PROF: " | 274 | printk(KERN_ERR "SPU_PROF: " |
275 | "%s, line %d: Cannot find dcookie for SPU binary\n", | 275 | "%s, line %d: Cannot find dcookie for SPU binary\n", |
276 | __FUNCTION__, __LINE__); | 276 | __func__, __LINE__); |
277 | goto out; | 277 | goto out; |
278 | } | 278 | } |
279 | 279 | ||
@@ -467,7 +467,7 @@ int spu_sync_stop(void) | |||
467 | if (ret) { | 467 | if (ret) { |
468 | printk(KERN_ERR "SPU_PROF: " | 468 | printk(KERN_ERR "SPU_PROF: " |
469 | "%s, line %d: spu_switch_event_unregister returned %d\n", | 469 | "%s, line %d: spu_switch_event_unregister returned %d\n", |
470 | __FUNCTION__, __LINE__, ret); | 470 | __func__, __LINE__, ret); |
471 | goto out; | 471 | goto out; |
472 | } | 472 | } |
473 | 473 | ||
diff --git a/arch/powerpc/oprofile/cell/vma_map.c b/arch/powerpc/oprofile/cell/vma_map.c index 76ec1d16aef7..5cf53681430a 100644 --- a/arch/powerpc/oprofile/cell/vma_map.c +++ b/arch/powerpc/oprofile/cell/vma_map.c | |||
@@ -72,7 +72,7 @@ vma_map_add(struct vma_to_fileoffset_map *map, unsigned int vma, | |||
72 | kzalloc(sizeof(struct vma_to_fileoffset_map), GFP_KERNEL); | 72 | kzalloc(sizeof(struct vma_to_fileoffset_map), GFP_KERNEL); |
73 | if (!new) { | 73 | if (!new) { |
74 | printk(KERN_ERR "SPU_PROF: %s, line %d: malloc failed\n", | 74 | printk(KERN_ERR "SPU_PROF: %s, line %d: malloc failed\n", |
75 | __FUNCTION__, __LINE__); | 75 | __func__, __LINE__); |
76 | vma_map_free(map); | 76 | vma_map_free(map); |
77 | return NULL; | 77 | return NULL; |
78 | } | 78 | } |
@@ -132,19 +132,19 @@ struct vma_to_fileoffset_map *create_vma_map(const struct spu *aSpu, | |||
132 | if (memcmp(ehdr.e_ident, expected, EI_PAD) != 0) { | 132 | if (memcmp(ehdr.e_ident, expected, EI_PAD) != 0) { |
133 | printk(KERN_ERR "SPU_PROF: " | 133 | printk(KERN_ERR "SPU_PROF: " |
134 | "%s, line %d: Unexpected e_ident parsing SPU ELF\n", | 134 | "%s, line %d: Unexpected e_ident parsing SPU ELF\n", |
135 | __FUNCTION__, __LINE__); | 135 | __func__, __LINE__); |
136 | goto fail; | 136 | goto fail; |
137 | } | 137 | } |
138 | if (ehdr.e_machine != EM_SPU) { | 138 | if (ehdr.e_machine != EM_SPU) { |
139 | printk(KERN_ERR "SPU_PROF: " | 139 | printk(KERN_ERR "SPU_PROF: " |
140 | "%s, line %d: Unexpected e_machine parsing SPU ELF\n", | 140 | "%s, line %d: Unexpected e_machine parsing SPU ELF\n", |
141 | __FUNCTION__, __LINE__); | 141 | __func__, __LINE__); |
142 | goto fail; | 142 | goto fail; |
143 | } | 143 | } |
144 | if (ehdr.e_type != ET_EXEC) { | 144 | if (ehdr.e_type != ET_EXEC) { |
145 | printk(KERN_ERR "SPU_PROF: " | 145 | printk(KERN_ERR "SPU_PROF: " |
146 | "%s, line %d: Unexpected e_type parsing SPU ELF\n", | 146 | "%s, line %d: Unexpected e_type parsing SPU ELF\n", |
147 | __FUNCTION__, __LINE__); | 147 | __func__, __LINE__); |
148 | goto fail; | 148 | goto fail; |
149 | } | 149 | } |
150 | phdr_start = spu_elf_start + ehdr.e_phoff; | 150 | phdr_start = spu_elf_start + ehdr.e_phoff; |
@@ -235,7 +235,7 @@ struct vma_to_fileoffset_map *create_vma_map(const struct spu *aSpu, | |||
235 | if (overlay_tbl_offset < 0) { | 235 | if (overlay_tbl_offset < 0) { |
236 | printk(KERN_ERR "SPU_PROF: " | 236 | printk(KERN_ERR "SPU_PROF: " |
237 | "%s, line %d: Error finding SPU overlay table\n", | 237 | "%s, line %d: Error finding SPU overlay table\n", |
238 | __FUNCTION__, __LINE__); | 238 | __func__, __LINE__); |
239 | goto fail; | 239 | goto fail; |
240 | } | 240 | } |
241 | ovly_table = spu_elf_start + overlay_tbl_offset; | 241 | ovly_table = spu_elf_start + overlay_tbl_offset; |
diff --git a/arch/powerpc/oprofile/op_model_cell.c b/arch/powerpc/oprofile/op_model_cell.c index 9eed1f68fcab..5ff4de3eb3be 100644 --- a/arch/powerpc/oprofile/op_model_cell.c +++ b/arch/powerpc/oprofile/op_model_cell.c | |||
@@ -216,7 +216,7 @@ static void pm_rtas_reset_signals(u32 node) | |||
216 | * failure to stop OProfile. | 216 | * failure to stop OProfile. |
217 | */ | 217 | */ |
218 | printk(KERN_WARNING "%s: rtas returned: %d\n", | 218 | printk(KERN_WARNING "%s: rtas returned: %d\n", |
219 | __FUNCTION__, ret); | 219 | __func__, ret); |
220 | } | 220 | } |
221 | 221 | ||
222 | static int pm_rtas_activate_signals(u32 node, u32 count) | 222 | static int pm_rtas_activate_signals(u32 node, u32 count) |
@@ -255,7 +255,7 @@ static int pm_rtas_activate_signals(u32 node, u32 count) | |||
255 | 255 | ||
256 | if (unlikely(ret)) { | 256 | if (unlikely(ret)) { |
257 | printk(KERN_WARNING "%s: rtas returned: %d\n", | 257 | printk(KERN_WARNING "%s: rtas returned: %d\n", |
258 | __FUNCTION__, ret); | 258 | __func__, ret); |
259 | return -EIO; | 259 | return -EIO; |
260 | } | 260 | } |
261 | } | 261 | } |
@@ -560,7 +560,7 @@ static int cell_reg_setup(struct op_counter_config *ctr, | |||
560 | if (unlikely(spu_rtas_token == RTAS_UNKNOWN_SERVICE)) { | 560 | if (unlikely(spu_rtas_token == RTAS_UNKNOWN_SERVICE)) { |
561 | printk(KERN_ERR | 561 | printk(KERN_ERR |
562 | "%s: rtas token ibm,cbe-spu-perftools unknown\n", | 562 | "%s: rtas token ibm,cbe-spu-perftools unknown\n", |
563 | __FUNCTION__); | 563 | __func__); |
564 | return -EIO; | 564 | return -EIO; |
565 | } | 565 | } |
566 | } | 566 | } |
@@ -576,7 +576,7 @@ static int cell_reg_setup(struct op_counter_config *ctr, | |||
576 | if (unlikely(pm_rtas_token == RTAS_UNKNOWN_SERVICE)) { | 576 | if (unlikely(pm_rtas_token == RTAS_UNKNOWN_SERVICE)) { |
577 | printk(KERN_ERR | 577 | printk(KERN_ERR |
578 | "%s: rtas token ibm,cbe-perftools unknown\n", | 578 | "%s: rtas token ibm,cbe-perftools unknown\n", |
579 | __FUNCTION__); | 579 | __func__); |
580 | return -EIO; | 580 | return -EIO; |
581 | } | 581 | } |
582 | 582 | ||
@@ -853,7 +853,7 @@ static int pm_rtas_activate_spu_profiling(u32 node) | |||
853 | 853 | ||
854 | if (unlikely(ret)) { | 854 | if (unlikely(ret)) { |
855 | printk(KERN_WARNING "%s: rtas returned: %d\n", | 855 | printk(KERN_WARNING "%s: rtas returned: %d\n", |
856 | __FUNCTION__, ret); | 856 | __func__, ret); |
857 | return -EIO; | 857 | return -EIO; |
858 | } | 858 | } |
859 | 859 | ||
@@ -949,7 +949,7 @@ static int cell_global_start_spu(struct op_counter_config *ctr) | |||
949 | if (unlikely(ret != 0)) { | 949 | if (unlikely(ret != 0)) { |
950 | printk(KERN_ERR | 950 | printk(KERN_ERR |
951 | "%s: rtas call ibm,cbe-spu-perftools failed, return = %d\n", | 951 | "%s: rtas call ibm,cbe-spu-perftools failed, return = %d\n", |
952 | __FUNCTION__, ret); | 952 | __func__, ret); |
953 | rtas_error = -EIO; | 953 | rtas_error = -EIO; |
954 | goto out; | 954 | goto out; |
955 | } | 955 | } |
@@ -1061,7 +1061,7 @@ static void cell_global_stop_spu(void) | |||
1061 | if (unlikely(rtn_value != 0)) { | 1061 | if (unlikely(rtn_value != 0)) { |
1062 | printk(KERN_ERR | 1062 | printk(KERN_ERR |
1063 | "%s: rtas call ibm,cbe-spu-perftools failed, return = %d\n", | 1063 | "%s: rtas call ibm,cbe-spu-perftools failed, return = %d\n", |
1064 | __FUNCTION__, rtn_value); | 1064 | __func__, rtn_value); |
1065 | } | 1065 | } |
1066 | 1066 | ||
1067 | /* Deactivate the signals */ | 1067 | /* Deactivate the signals */ |