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/kernel | |
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/kernel')
-rw-r--r-- | arch/powerpc/kernel/ibmebus.c | 12 | ||||
-rw-r--r-- | arch/powerpc/kernel/iommu.c | 4 | ||||
-rw-r--r-- | arch/powerpc/kernel/isa-bridge.c | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/lparcfg.c | 12 | ||||
-rw-r--r-- | arch/powerpc/kernel/rtas.c | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/rtas_flash.c | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/rtas_pci.c | 10 | ||||
-rw-r--r-- | arch/powerpc/kernel/vio.c | 10 |
8 files changed, 27 insertions, 27 deletions
diff --git a/arch/powerpc/kernel/ibmebus.c b/arch/powerpc/kernel/ibmebus.c index 2f50bb5d00f9..9971159c8040 100644 --- a/arch/powerpc/kernel/ibmebus.c +++ b/arch/powerpc/kernel/ibmebus.c | |||
@@ -183,7 +183,7 @@ static int ibmebus_create_devices(const struct of_device_id *matches) | |||
183 | ret = ibmebus_create_device(child); | 183 | ret = ibmebus_create_device(child); |
184 | if (ret) { | 184 | if (ret) { |
185 | printk(KERN_ERR "%s: failed to create device (%i)", | 185 | printk(KERN_ERR "%s: failed to create device (%i)", |
186 | __FUNCTION__, ret); | 186 | __func__, ret); |
187 | of_node_put(child); | 187 | of_node_put(child); |
188 | break; | 188 | break; |
189 | } | 189 | } |
@@ -269,7 +269,7 @@ static ssize_t ibmebus_store_probe(struct bus_type *bus, | |||
269 | if (bus_find_device(&ibmebus_bus_type, NULL, path, | 269 | if (bus_find_device(&ibmebus_bus_type, NULL, path, |
270 | ibmebus_match_path)) { | 270 | ibmebus_match_path)) { |
271 | printk(KERN_WARNING "%s: %s has already been probed\n", | 271 | printk(KERN_WARNING "%s: %s has already been probed\n", |
272 | __FUNCTION__, path); | 272 | __func__, path); |
273 | rc = -EEXIST; | 273 | rc = -EEXIST; |
274 | goto out; | 274 | goto out; |
275 | } | 275 | } |
@@ -279,7 +279,7 @@ static ssize_t ibmebus_store_probe(struct bus_type *bus, | |||
279 | of_node_put(dn); | 279 | of_node_put(dn); |
280 | } else { | 280 | } else { |
281 | printk(KERN_WARNING "%s: no such device node: %s\n", | 281 | printk(KERN_WARNING "%s: no such device node: %s\n", |
282 | __FUNCTION__, path); | 282 | __func__, path); |
283 | rc = -ENODEV; | 283 | rc = -ENODEV; |
284 | } | 284 | } |
285 | 285 | ||
@@ -308,7 +308,7 @@ static ssize_t ibmebus_store_remove(struct bus_type *bus, | |||
308 | return count; | 308 | return count; |
309 | } else { | 309 | } else { |
310 | printk(KERN_WARNING "%s: %s not on the bus\n", | 310 | printk(KERN_WARNING "%s: %s not on the bus\n", |
311 | __FUNCTION__, path); | 311 | __func__, path); |
312 | 312 | ||
313 | kfree(path); | 313 | kfree(path); |
314 | return -ENODEV; | 314 | return -ENODEV; |
@@ -337,14 +337,14 @@ static int __init ibmebus_bus_init(void) | |||
337 | err = of_bus_type_init(&ibmebus_bus_type, "ibmebus"); | 337 | err = of_bus_type_init(&ibmebus_bus_type, "ibmebus"); |
338 | if (err) { | 338 | if (err) { |
339 | printk(KERN_ERR "%s: failed to register IBM eBus.\n", | 339 | printk(KERN_ERR "%s: failed to register IBM eBus.\n", |
340 | __FUNCTION__); | 340 | __func__); |
341 | return err; | 341 | return err; |
342 | } | 342 | } |
343 | 343 | ||
344 | err = device_register(&ibmebus_bus_device); | 344 | err = device_register(&ibmebus_bus_device); |
345 | if (err) { | 345 | if (err) { |
346 | printk(KERN_WARNING "%s: device_register returned %i\n", | 346 | printk(KERN_WARNING "%s: device_register returned %i\n", |
347 | __FUNCTION__, err); | 347 | __func__, err); |
348 | bus_unregister(&ibmebus_bus_type); | 348 | bus_unregister(&ibmebus_bus_type); |
349 | 349 | ||
350 | return err; | 350 | return err; |
diff --git a/arch/powerpc/kernel/iommu.c b/arch/powerpc/kernel/iommu.c index 8f1f4e539c4b..0c663669bc32 100644 --- a/arch/powerpc/kernel/iommu.c +++ b/arch/powerpc/kernel/iommu.c | |||
@@ -520,7 +520,7 @@ void iommu_free_table(struct iommu_table *tbl, const char *node_name) | |||
520 | unsigned int order; | 520 | unsigned int order; |
521 | 521 | ||
522 | if (!tbl || !tbl->it_map) { | 522 | if (!tbl || !tbl->it_map) { |
523 | printk(KERN_ERR "%s: expected TCE map for %s\n", __FUNCTION__, | 523 | printk(KERN_ERR "%s: expected TCE map for %s\n", __func__, |
524 | node_name); | 524 | node_name); |
525 | return; | 525 | return; |
526 | } | 526 | } |
@@ -530,7 +530,7 @@ void iommu_free_table(struct iommu_table *tbl, const char *node_name) | |||
530 | for (i = 0; i < (tbl->it_size/64); i++) { | 530 | for (i = 0; i < (tbl->it_size/64); i++) { |
531 | if (tbl->it_map[i] != 0) { | 531 | if (tbl->it_map[i] != 0) { |
532 | printk(KERN_WARNING "%s: Unexpected TCEs for %s\n", | 532 | printk(KERN_WARNING "%s: Unexpected TCEs for %s\n", |
533 | __FUNCTION__, node_name); | 533 | __func__, node_name); |
534 | break; | 534 | break; |
535 | } | 535 | } |
536 | } | 536 | } |
diff --git a/arch/powerpc/kernel/isa-bridge.c b/arch/powerpc/kernel/isa-bridge.c index ee172aa42aa7..d73551da2ff1 100644 --- a/arch/powerpc/kernel/isa-bridge.c +++ b/arch/powerpc/kernel/isa-bridge.c | |||
@@ -99,7 +99,7 @@ static void __devinit pci_process_ISA_OF_ranges(struct device_node *isa_node, | |||
99 | */ | 99 | */ |
100 | if ((pci_addr != 0) || (isa_addr != 0)) { | 100 | if ((pci_addr != 0) || (isa_addr != 0)) { |
101 | printk(KERN_ERR "unexpected isa to pci mapping: %s\n", | 101 | printk(KERN_ERR "unexpected isa to pci mapping: %s\n", |
102 | __FUNCTION__); | 102 | __func__); |
103 | return; | 103 | return; |
104 | } | 104 | } |
105 | 105 | ||
diff --git a/arch/powerpc/kernel/lparcfg.c b/arch/powerpc/kernel/lparcfg.c index dcb89a88df46..1ffacc698ffb 100644 --- a/arch/powerpc/kernel/lparcfg.c +++ b/arch/powerpc/kernel/lparcfg.c | |||
@@ -226,7 +226,7 @@ static void parse_system_parameter_string(struct seq_file *m) | |||
226 | unsigned char *local_buffer = kmalloc(SPLPAR_MAXLENGTH, GFP_KERNEL); | 226 | unsigned char *local_buffer = kmalloc(SPLPAR_MAXLENGTH, GFP_KERNEL); |
227 | if (!local_buffer) { | 227 | if (!local_buffer) { |
228 | printk(KERN_ERR "%s %s kmalloc failure at line %d \n", | 228 | printk(KERN_ERR "%s %s kmalloc failure at line %d \n", |
229 | __FILE__, __FUNCTION__, __LINE__); | 229 | __FILE__, __func__, __LINE__); |
230 | return; | 230 | return; |
231 | } | 231 | } |
232 | 232 | ||
@@ -243,14 +243,14 @@ static void parse_system_parameter_string(struct seq_file *m) | |||
243 | if (call_status != 0) { | 243 | if (call_status != 0) { |
244 | printk(KERN_INFO | 244 | printk(KERN_INFO |
245 | "%s %s Error calling get-system-parameter (0x%x)\n", | 245 | "%s %s Error calling get-system-parameter (0x%x)\n", |
246 | __FILE__, __FUNCTION__, call_status); | 246 | __FILE__, __func__, call_status); |
247 | } else { | 247 | } else { |
248 | int splpar_strlen; | 248 | int splpar_strlen; |
249 | int idx, w_idx; | 249 | int idx, w_idx; |
250 | char *workbuffer = kzalloc(SPLPAR_MAXLENGTH, GFP_KERNEL); | 250 | char *workbuffer = kzalloc(SPLPAR_MAXLENGTH, GFP_KERNEL); |
251 | if (!workbuffer) { | 251 | if (!workbuffer) { |
252 | printk(KERN_ERR "%s %s kmalloc failure at line %d \n", | 252 | printk(KERN_ERR "%s %s kmalloc failure at line %d \n", |
253 | __FILE__, __FUNCTION__, __LINE__); | 253 | __FILE__, __func__, __LINE__); |
254 | kfree(local_buffer); | 254 | kfree(local_buffer); |
255 | return; | 255 | return; |
256 | } | 256 | } |
@@ -484,10 +484,10 @@ static ssize_t lparcfg_write(struct file *file, const char __user * buf, | |||
484 | current_weight = (resource >> 5 * 8) & 0xFF; | 484 | current_weight = (resource >> 5 * 8) & 0xFF; |
485 | 485 | ||
486 | pr_debug("%s: current_entitled = %lu, current_weight = %u\n", | 486 | pr_debug("%s: current_entitled = %lu, current_weight = %u\n", |
487 | __FUNCTION__, current_entitled, current_weight); | 487 | __func__, current_entitled, current_weight); |
488 | 488 | ||
489 | pr_debug("%s: new_entitled = %lu, new_weight = %u\n", | 489 | pr_debug("%s: new_entitled = %lu, new_weight = %u\n", |
490 | __FUNCTION__, *new_entitled_ptr, *new_weight_ptr); | 490 | __func__, *new_entitled_ptr, *new_weight_ptr); |
491 | 491 | ||
492 | retval = plpar_hcall_norets(H_SET_PPP, *new_entitled_ptr, | 492 | retval = plpar_hcall_norets(H_SET_PPP, *new_entitled_ptr, |
493 | *new_weight_ptr); | 493 | *new_weight_ptr); |
@@ -502,7 +502,7 @@ static ssize_t lparcfg_write(struct file *file, const char __user * buf, | |||
502 | retval = -EINVAL; | 502 | retval = -EINVAL; |
503 | } else { | 503 | } else { |
504 | printk(KERN_WARNING "%s: received unknown hv return code %ld", | 504 | printk(KERN_WARNING "%s: received unknown hv return code %ld", |
505 | __FUNCTION__, retval); | 505 | __func__, retval); |
506 | retval = -EIO; | 506 | retval = -EIO; |
507 | } | 507 | } |
508 | 508 | ||
diff --git a/arch/powerpc/kernel/rtas.c b/arch/powerpc/kernel/rtas.c index e2e78d967f31..eb3beea4536e 100644 --- a/arch/powerpc/kernel/rtas.c +++ b/arch/powerpc/kernel/rtas.c | |||
@@ -507,7 +507,7 @@ int rtas_error_rc(int rtas_rc) | |||
507 | break; | 507 | break; |
508 | default: | 508 | default: |
509 | printk(KERN_ERR "%s: unexpected RTAS error %d\n", | 509 | printk(KERN_ERR "%s: unexpected RTAS error %d\n", |
510 | __FUNCTION__, rtas_rc); | 510 | __func__, rtas_rc); |
511 | rc = -ERANGE; | 511 | rc = -ERANGE; |
512 | break; | 512 | break; |
513 | } | 513 | } |
diff --git a/arch/powerpc/kernel/rtas_flash.c b/arch/powerpc/kernel/rtas_flash.c index f2276593f416..e1756e112344 100644 --- a/arch/powerpc/kernel/rtas_flash.c +++ b/arch/powerpc/kernel/rtas_flash.c | |||
@@ -807,7 +807,7 @@ int __init rtas_flash_init(void) | |||
807 | rtas_block_ctor); | 807 | rtas_block_ctor); |
808 | if (!flash_block_cache) { | 808 | if (!flash_block_cache) { |
809 | printk(KERN_ERR "%s: failed to create block cache\n", | 809 | printk(KERN_ERR "%s: failed to create block cache\n", |
810 | __FUNCTION__); | 810 | __func__); |
811 | rc = -ENOMEM; | 811 | rc = -ENOMEM; |
812 | goto cleanup; | 812 | goto cleanup; |
813 | } | 813 | } |
diff --git a/arch/powerpc/kernel/rtas_pci.c b/arch/powerpc/kernel/rtas_pci.c index 433a0a0949fb..945e8f4db873 100644 --- a/arch/powerpc/kernel/rtas_pci.c +++ b/arch/powerpc/kernel/rtas_pci.c | |||
@@ -326,7 +326,7 @@ int pcibios_remove_root_bus(struct pci_controller *phb) | |||
326 | 326 | ||
327 | res = b->resource[0]; | 327 | res = b->resource[0]; |
328 | if (!res->flags) { | 328 | if (!res->flags) { |
329 | printk(KERN_ERR "%s: no IO resource for PHB %s\n", __FUNCTION__, | 329 | printk(KERN_ERR "%s: no IO resource for PHB %s\n", __func__, |
330 | b->name); | 330 | b->name); |
331 | return 1; | 331 | return 1; |
332 | } | 332 | } |
@@ -334,13 +334,13 @@ int pcibios_remove_root_bus(struct pci_controller *phb) | |||
334 | rc = pcibios_unmap_io_space(b); | 334 | rc = pcibios_unmap_io_space(b); |
335 | if (rc) { | 335 | if (rc) { |
336 | printk(KERN_ERR "%s: failed to unmap IO on bus %s\n", | 336 | printk(KERN_ERR "%s: failed to unmap IO on bus %s\n", |
337 | __FUNCTION__, b->name); | 337 | __func__, b->name); |
338 | return 1; | 338 | return 1; |
339 | } | 339 | } |
340 | 340 | ||
341 | if (release_resource(res)) { | 341 | if (release_resource(res)) { |
342 | printk(KERN_ERR "%s: failed to release IO on bus %s\n", | 342 | printk(KERN_ERR "%s: failed to release IO on bus %s\n", |
343 | __FUNCTION__, b->name); | 343 | __func__, b->name); |
344 | return 1; | 344 | return 1; |
345 | } | 345 | } |
346 | 346 | ||
@@ -348,13 +348,13 @@ int pcibios_remove_root_bus(struct pci_controller *phb) | |||
348 | res = b->resource[i]; | 348 | res = b->resource[i]; |
349 | if (!res->flags && i == 0) { | 349 | if (!res->flags && i == 0) { |
350 | printk(KERN_ERR "%s: no MEM resource for PHB %s\n", | 350 | printk(KERN_ERR "%s: no MEM resource for PHB %s\n", |
351 | __FUNCTION__, b->name); | 351 | __func__, b->name); |
352 | return 1; | 352 | return 1; |
353 | } | 353 | } |
354 | if (res->flags && release_resource(res)) { | 354 | if (res->flags && release_resource(res)) { |
355 | printk(KERN_ERR | 355 | printk(KERN_ERR |
356 | "%s: failed to release IO %d on bus %s\n", | 356 | "%s: failed to release IO %d on bus %s\n", |
357 | __FUNCTION__, i, b->name); | 357 | __func__, i, b->name); |
358 | return 1; | 358 | return 1; |
359 | } | 359 | } |
360 | } | 360 | } |
diff --git a/arch/powerpc/kernel/vio.c b/arch/powerpc/kernel/vio.c index f98867252ee2..b77f8af7ddde 100644 --- a/arch/powerpc/kernel/vio.c +++ b/arch/powerpc/kernel/vio.c | |||
@@ -139,7 +139,7 @@ static int vio_bus_remove(struct device *dev) | |||
139 | */ | 139 | */ |
140 | int vio_register_driver(struct vio_driver *viodrv) | 140 | int vio_register_driver(struct vio_driver *viodrv) |
141 | { | 141 | { |
142 | printk(KERN_DEBUG "%s: driver %s registering\n", __FUNCTION__, | 142 | printk(KERN_DEBUG "%s: driver %s registering\n", __func__, |
143 | viodrv->driver.name); | 143 | viodrv->driver.name); |
144 | 144 | ||
145 | /* fill in 'struct driver' fields */ | 145 | /* fill in 'struct driver' fields */ |
@@ -184,7 +184,7 @@ struct vio_dev *vio_register_device_node(struct device_node *of_node) | |||
184 | /* we need the 'device_type' property, in order to match with drivers */ | 184 | /* we need the 'device_type' property, in order to match with drivers */ |
185 | if (of_node->type == NULL) { | 185 | if (of_node->type == NULL) { |
186 | printk(KERN_WARNING "%s: node %s missing 'device_type'\n", | 186 | printk(KERN_WARNING "%s: node %s missing 'device_type'\n", |
187 | __FUNCTION__, | 187 | __func__, |
188 | of_node->name ? of_node->name : "<unknown>"); | 188 | of_node->name ? of_node->name : "<unknown>"); |
189 | return NULL; | 189 | return NULL; |
190 | } | 190 | } |
@@ -192,7 +192,7 @@ struct vio_dev *vio_register_device_node(struct device_node *of_node) | |||
192 | unit_address = of_get_property(of_node, "reg", NULL); | 192 | unit_address = of_get_property(of_node, "reg", NULL); |
193 | if (unit_address == NULL) { | 193 | if (unit_address == NULL) { |
194 | printk(KERN_WARNING "%s: node %s missing 'reg'\n", | 194 | printk(KERN_WARNING "%s: node %s missing 'reg'\n", |
195 | __FUNCTION__, | 195 | __func__, |
196 | of_node->name ? of_node->name : "<unknown>"); | 196 | of_node->name ? of_node->name : "<unknown>"); |
197 | return NULL; | 197 | return NULL; |
198 | } | 198 | } |
@@ -227,7 +227,7 @@ struct vio_dev *vio_register_device_node(struct device_node *of_node) | |||
227 | /* register with generic device framework */ | 227 | /* register with generic device framework */ |
228 | if (device_register(&viodev->dev)) { | 228 | if (device_register(&viodev->dev)) { |
229 | printk(KERN_ERR "%s: failed to register device %s\n", | 229 | printk(KERN_ERR "%s: failed to register device %s\n", |
230 | __FUNCTION__, viodev->dev.bus_id); | 230 | __func__, viodev->dev.bus_id); |
231 | /* XXX free TCE table */ | 231 | /* XXX free TCE table */ |
232 | kfree(viodev); | 232 | kfree(viodev); |
233 | return NULL; | 233 | return NULL; |
@@ -258,7 +258,7 @@ static int __init vio_bus_init(void) | |||
258 | err = device_register(&vio_bus_device.dev); | 258 | err = device_register(&vio_bus_device.dev); |
259 | if (err) { | 259 | if (err) { |
260 | printk(KERN_WARNING "%s: device_register returned %i\n", | 260 | printk(KERN_WARNING "%s: device_register returned %i\n", |
261 | __FUNCTION__, err); | 261 | __func__, err); |
262 | return err; | 262 | return err; |
263 | } | 263 | } |
264 | 264 | ||