diff options
Diffstat (limited to 'arch')
76 files changed, 168 insertions, 168 deletions
diff --git a/arch/powerpc/boot/libfdt-wrapper.c b/arch/powerpc/boot/libfdt-wrapper.c index 59016bef1391..c541fd8a95d4 100644 --- a/arch/powerpc/boot/libfdt-wrapper.c +++ b/arch/powerpc/boot/libfdt-wrapper.c | |||
@@ -35,7 +35,7 @@ | |||
35 | #define check_err(err) \ | 35 | #define check_err(err) \ |
36 | ({ \ | 36 | ({ \ |
37 | if (BAD_ERROR(err) || ((err < 0) && DEBUG)) \ | 37 | if (BAD_ERROR(err) || ((err < 0) && DEBUG)) \ |
38 | printf("%s():%d %s\n\r", __FUNCTION__, __LINE__, \ | 38 | printf("%s():%d %s\n\r", __func__, __LINE__, \ |
39 | fdt_strerror(err)); \ | 39 | fdt_strerror(err)); \ |
40 | if (BAD_ERROR(err)) \ | 40 | if (BAD_ERROR(err)) \ |
41 | exit(); \ | 41 | exit(); \ |
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 | ||
diff --git a/arch/powerpc/math-emu/fabs.c b/arch/powerpc/math-emu/fabs.c index 41f0617f3d3a..549baba5948f 100644 --- a/arch/powerpc/math-emu/fabs.c +++ b/arch/powerpc/math-emu/fabs.c | |||
@@ -9,7 +9,7 @@ fabs(u32 *frD, u32 *frB) | |||
9 | frD[1] = frB[1]; | 9 | frD[1] = frB[1]; |
10 | 10 | ||
11 | #ifdef DEBUG | 11 | #ifdef DEBUG |
12 | printk("%s: D %p, B %p: ", __FUNCTION__, frD, frB); | 12 | printk("%s: D %p, B %p: ", __func__, frD, frB); |
13 | dump_double(frD); | 13 | dump_double(frD); |
14 | printk("\n"); | 14 | printk("\n"); |
15 | #endif | 15 | #endif |
diff --git a/arch/powerpc/math-emu/fadd.c b/arch/powerpc/math-emu/fadd.c index fc8836488b64..7befbbf2c332 100644 --- a/arch/powerpc/math-emu/fadd.c +++ b/arch/powerpc/math-emu/fadd.c | |||
@@ -14,7 +14,7 @@ fadd(void *frD, void *frA, void *frB) | |||
14 | int ret = 0; | 14 | int ret = 0; |
15 | 15 | ||
16 | #ifdef DEBUG | 16 | #ifdef DEBUG |
17 | printk("%s: %p %p %p\n", __FUNCTION__, frD, frA, frB); | 17 | printk("%s: %p %p %p\n", __func__, frD, frA, frB); |
18 | #endif | 18 | #endif |
19 | 19 | ||
20 | __FP_UNPACK_D(A, frA); | 20 | __FP_UNPACK_D(A, frA); |
diff --git a/arch/powerpc/math-emu/fadds.c b/arch/powerpc/math-emu/fadds.c index 93025b6c8f3c..2b346b38b480 100644 --- a/arch/powerpc/math-emu/fadds.c +++ b/arch/powerpc/math-emu/fadds.c | |||
@@ -15,7 +15,7 @@ fadds(void *frD, void *frA, void *frB) | |||
15 | int ret = 0; | 15 | int ret = 0; |
16 | 16 | ||
17 | #ifdef DEBUG | 17 | #ifdef DEBUG |
18 | printk("%s: %p %p %p\n", __FUNCTION__, frD, frA, frB); | 18 | printk("%s: %p %p %p\n", __func__, frD, frA, frB); |
19 | #endif | 19 | #endif |
20 | 20 | ||
21 | __FP_UNPACK_D(A, frA); | 21 | __FP_UNPACK_D(A, frA); |
diff --git a/arch/powerpc/math-emu/fcmpo.c b/arch/powerpc/math-emu/fcmpo.c index 4efac394b4cb..36d689044c63 100644 --- a/arch/powerpc/math-emu/fcmpo.c +++ b/arch/powerpc/math-emu/fcmpo.c | |||
@@ -15,7 +15,7 @@ fcmpo(u32 *ccr, int crfD, void *frA, void *frB) | |||
15 | int ret = 0; | 15 | int ret = 0; |
16 | 16 | ||
17 | #ifdef DEBUG | 17 | #ifdef DEBUG |
18 | printk("%s: %p (%08x) %d %p %p\n", __FUNCTION__, ccr, *ccr, crfD, frA, frB); | 18 | printk("%s: %p (%08x) %d %p %p\n", __func__, ccr, *ccr, crfD, frA, frB); |
19 | #endif | 19 | #endif |
20 | 20 | ||
21 | __FP_UNPACK_D(A, frA); | 21 | __FP_UNPACK_D(A, frA); |
diff --git a/arch/powerpc/math-emu/fcmpu.c b/arch/powerpc/math-emu/fcmpu.c index b7e33176e618..53d93894f2a6 100644 --- a/arch/powerpc/math-emu/fcmpu.c +++ b/arch/powerpc/math-emu/fcmpu.c | |||
@@ -14,7 +14,7 @@ fcmpu(u32 *ccr, int crfD, void *frA, void *frB) | |||
14 | long cmp; | 14 | long cmp; |
15 | 15 | ||
16 | #ifdef DEBUG | 16 | #ifdef DEBUG |
17 | printk("%s: %p (%08x) %d %p %p\n", __FUNCTION__, ccr, *ccr, crfD, frA, frB); | 17 | printk("%s: %p (%08x) %d %p %p\n", __func__, ccr, *ccr, crfD, frA, frB); |
18 | #endif | 18 | #endif |
19 | 19 | ||
20 | __FP_UNPACK_D(A, frA); | 20 | __FP_UNPACK_D(A, frA); |
diff --git a/arch/powerpc/math-emu/fctiw.c b/arch/powerpc/math-emu/fctiw.c index 3b3c98b840cf..fcd7a95e021d 100644 --- a/arch/powerpc/math-emu/fctiw.c +++ b/arch/powerpc/math-emu/fctiw.c | |||
@@ -16,7 +16,7 @@ fctiw(u32 *frD, void *frB) | |||
16 | frD[1] = r; | 16 | frD[1] = r; |
17 | 17 | ||
18 | #ifdef DEBUG | 18 | #ifdef DEBUG |
19 | printk("%s: D %p, B %p: ", __FUNCTION__, frD, frB); | 19 | printk("%s: D %p, B %p: ", __func__, frD, frB); |
20 | dump_double(frD); | 20 | dump_double(frD); |
21 | printk("\n"); | 21 | printk("\n"); |
22 | #endif | 22 | #endif |
diff --git a/arch/powerpc/math-emu/fctiwz.c b/arch/powerpc/math-emu/fctiwz.c index 7717eb6fcfb6..1514d59e146e 100644 --- a/arch/powerpc/math-emu/fctiwz.c +++ b/arch/powerpc/math-emu/fctiwz.c | |||
@@ -23,7 +23,7 @@ fctiwz(u32 *frD, void *frB) | |||
23 | __FPU_FPSCR = fpscr; | 23 | __FPU_FPSCR = fpscr; |
24 | 24 | ||
25 | #ifdef DEBUG | 25 | #ifdef DEBUG |
26 | printk("%s: D %p, B %p: ", __FUNCTION__, frD, frB); | 26 | printk("%s: D %p, B %p: ", __func__, frD, frB); |
27 | dump_double(frD); | 27 | dump_double(frD); |
28 | printk("\n"); | 28 | printk("\n"); |
29 | #endif | 29 | #endif |
diff --git a/arch/powerpc/math-emu/fdiv.c b/arch/powerpc/math-emu/fdiv.c index f2fba825b2d0..18a20fe396b0 100644 --- a/arch/powerpc/math-emu/fdiv.c +++ b/arch/powerpc/math-emu/fdiv.c | |||
@@ -14,7 +14,7 @@ fdiv(void *frD, void *frA, void *frB) | |||
14 | int ret = 0; | 14 | int ret = 0; |
15 | 15 | ||
16 | #ifdef DEBUG | 16 | #ifdef DEBUG |
17 | printk("%s: %p %p %p\n", __FUNCTION__, frD, frA, frB); | 17 | printk("%s: %p %p %p\n", __func__, frD, frA, frB); |
18 | #endif | 18 | #endif |
19 | 19 | ||
20 | __FP_UNPACK_D(A, frA); | 20 | __FP_UNPACK_D(A, frA); |
@@ -28,13 +28,13 @@ fdiv(void *frD, void *frA, void *frB) | |||
28 | if (A_c == FP_CLS_ZERO && B_c == FP_CLS_ZERO) { | 28 | if (A_c == FP_CLS_ZERO && B_c == FP_CLS_ZERO) { |
29 | ret |= EFLAG_VXZDZ; | 29 | ret |= EFLAG_VXZDZ; |
30 | #ifdef DEBUG | 30 | #ifdef DEBUG |
31 | printk("%s: FPSCR_VXZDZ raised\n", __FUNCTION__); | 31 | printk("%s: FPSCR_VXZDZ raised\n", __func__); |
32 | #endif | 32 | #endif |
33 | } | 33 | } |
34 | if (A_c == FP_CLS_INF && B_c == FP_CLS_INF) { | 34 | if (A_c == FP_CLS_INF && B_c == FP_CLS_INF) { |
35 | ret |= EFLAG_VXIDI; | 35 | ret |= EFLAG_VXIDI; |
36 | #ifdef DEBUG | 36 | #ifdef DEBUG |
37 | printk("%s: FPSCR_VXIDI raised\n", __FUNCTION__); | 37 | printk("%s: FPSCR_VXIDI raised\n", __func__); |
38 | #endif | 38 | #endif |
39 | } | 39 | } |
40 | 40 | ||
diff --git a/arch/powerpc/math-emu/fdivs.c b/arch/powerpc/math-emu/fdivs.c index b971196e3175..24feed689c35 100644 --- a/arch/powerpc/math-emu/fdivs.c +++ b/arch/powerpc/math-emu/fdivs.c | |||
@@ -15,7 +15,7 @@ fdivs(void *frD, void *frA, void *frB) | |||
15 | int ret = 0; | 15 | int ret = 0; |
16 | 16 | ||
17 | #ifdef DEBUG | 17 | #ifdef DEBUG |
18 | printk("%s: %p %p %p\n", __FUNCTION__, frD, frA, frB); | 18 | printk("%s: %p %p %p\n", __func__, frD, frA, frB); |
19 | #endif | 19 | #endif |
20 | 20 | ||
21 | __FP_UNPACK_D(A, frA); | 21 | __FP_UNPACK_D(A, frA); |
@@ -29,13 +29,13 @@ fdivs(void *frD, void *frA, void *frB) | |||
29 | if (A_c == FP_CLS_ZERO && B_c == FP_CLS_ZERO) { | 29 | if (A_c == FP_CLS_ZERO && B_c == FP_CLS_ZERO) { |
30 | ret |= EFLAG_VXZDZ; | 30 | ret |= EFLAG_VXZDZ; |
31 | #ifdef DEBUG | 31 | #ifdef DEBUG |
32 | printk("%s: FPSCR_VXZDZ raised\n", __FUNCTION__); | 32 | printk("%s: FPSCR_VXZDZ raised\n", __func__); |
33 | #endif | 33 | #endif |
34 | } | 34 | } |
35 | if (A_c == FP_CLS_INF && B_c == FP_CLS_INF) { | 35 | if (A_c == FP_CLS_INF && B_c == FP_CLS_INF) { |
36 | ret |= EFLAG_VXIDI; | 36 | ret |= EFLAG_VXIDI; |
37 | #ifdef DEBUG | 37 | #ifdef DEBUG |
38 | printk("%s: FPSCR_VXIDI raised\n", __FUNCTION__); | 38 | printk("%s: FPSCR_VXIDI raised\n", __func__); |
39 | #endif | 39 | #endif |
40 | } | 40 | } |
41 | 41 | ||
diff --git a/arch/powerpc/math-emu/fmadd.c b/arch/powerpc/math-emu/fmadd.c index 0a1dbce793e9..dedb465fdc68 100644 --- a/arch/powerpc/math-emu/fmadd.c +++ b/arch/powerpc/math-emu/fmadd.c | |||
@@ -16,7 +16,7 @@ fmadd(void *frD, void *frA, void *frB, void *frC) | |||
16 | int ret = 0; | 16 | int ret = 0; |
17 | 17 | ||
18 | #ifdef DEBUG | 18 | #ifdef DEBUG |
19 | printk("%s: %p %p %p %p\n", __FUNCTION__, frD, frA, frB, frC); | 19 | printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC); |
20 | #endif | 20 | #endif |
21 | 21 | ||
22 | __FP_UNPACK_D(A, frA); | 22 | __FP_UNPACK_D(A, frA); |
diff --git a/arch/powerpc/math-emu/fmadds.c b/arch/powerpc/math-emu/fmadds.c index 0f70bba9445e..6bbb56d5502c 100644 --- a/arch/powerpc/math-emu/fmadds.c +++ b/arch/powerpc/math-emu/fmadds.c | |||
@@ -17,7 +17,7 @@ fmadds(void *frD, void *frA, void *frB, void *frC) | |||
17 | int ret = 0; | 17 | int ret = 0; |
18 | 18 | ||
19 | #ifdef DEBUG | 19 | #ifdef DEBUG |
20 | printk("%s: %p %p %p %p\n", __FUNCTION__, frD, frA, frB, frC); | 20 | printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC); |
21 | #endif | 21 | #endif |
22 | 22 | ||
23 | __FP_UNPACK_D(A, frA); | 23 | __FP_UNPACK_D(A, frA); |
diff --git a/arch/powerpc/math-emu/fmr.c b/arch/powerpc/math-emu/fmr.c index 28df700c0c7e..bd55384b8196 100644 --- a/arch/powerpc/math-emu/fmr.c +++ b/arch/powerpc/math-emu/fmr.c | |||
@@ -9,7 +9,7 @@ fmr(u32 *frD, u32 *frB) | |||
9 | frD[1] = frB[1]; | 9 | frD[1] = frB[1]; |
10 | 10 | ||
11 | #ifdef DEBUG | 11 | #ifdef DEBUG |
12 | printk("%s: D %p, B %p: ", __FUNCTION__, frD, frB); | 12 | printk("%s: D %p, B %p: ", __func__, frD, frB); |
13 | dump_double(frD); | 13 | dump_double(frD); |
14 | printk("\n"); | 14 | printk("\n"); |
15 | #endif | 15 | #endif |
diff --git a/arch/powerpc/math-emu/fmsub.c b/arch/powerpc/math-emu/fmsub.c index 203fd48a6fec..f311e2c7e67e 100644 --- a/arch/powerpc/math-emu/fmsub.c +++ b/arch/powerpc/math-emu/fmsub.c | |||
@@ -16,7 +16,7 @@ fmsub(void *frD, void *frA, void *frB, void *frC) | |||
16 | int ret = 0; | 16 | int ret = 0; |
17 | 17 | ||
18 | #ifdef DEBUG | 18 | #ifdef DEBUG |
19 | printk("%s: %p %p %p %p\n", __FUNCTION__, frD, frA, frB, frC); | 19 | printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC); |
20 | #endif | 20 | #endif |
21 | 21 | ||
22 | __FP_UNPACK_D(A, frA); | 22 | __FP_UNPACK_D(A, frA); |
diff --git a/arch/powerpc/math-emu/fmsubs.c b/arch/powerpc/math-emu/fmsubs.c index 8ce68624c189..81a716d3ee2e 100644 --- a/arch/powerpc/math-emu/fmsubs.c +++ b/arch/powerpc/math-emu/fmsubs.c | |||
@@ -17,7 +17,7 @@ fmsubs(void *frD, void *frA, void *frB, void *frC) | |||
17 | int ret = 0; | 17 | int ret = 0; |
18 | 18 | ||
19 | #ifdef DEBUG | 19 | #ifdef DEBUG |
20 | printk("%s: %p %p %p %p\n", __FUNCTION__, frD, frA, frB, frC); | 20 | printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC); |
21 | #endif | 21 | #endif |
22 | 22 | ||
23 | __FP_UNPACK_D(A, frA); | 23 | __FP_UNPACK_D(A, frA); |
diff --git a/arch/powerpc/math-emu/fmul.c b/arch/powerpc/math-emu/fmul.c index 66c7e79aae2e..2f3d32784a04 100644 --- a/arch/powerpc/math-emu/fmul.c +++ b/arch/powerpc/math-emu/fmul.c | |||
@@ -14,7 +14,7 @@ fmul(void *frD, void *frA, void *frB) | |||
14 | int ret = 0; | 14 | int ret = 0; |
15 | 15 | ||
16 | #ifdef DEBUG | 16 | #ifdef DEBUG |
17 | printk("%s: %p %p %p\n", __FUNCTION__, frD, frA, frB); | 17 | printk("%s: %p %p %p\n", __func__, frD, frA, frB); |
18 | #endif | 18 | #endif |
19 | 19 | ||
20 | __FP_UNPACK_D(A, frA); | 20 | __FP_UNPACK_D(A, frA); |
diff --git a/arch/powerpc/math-emu/fmuls.c b/arch/powerpc/math-emu/fmuls.c index 26bc4278271c..962b5883f784 100644 --- a/arch/powerpc/math-emu/fmuls.c +++ b/arch/powerpc/math-emu/fmuls.c | |||
@@ -15,7 +15,7 @@ fmuls(void *frD, void *frA, void *frB) | |||
15 | int ret = 0; | 15 | int ret = 0; |
16 | 16 | ||
17 | #ifdef DEBUG | 17 | #ifdef DEBUG |
18 | printk("%s: %p %p %p\n", __FUNCTION__, frD, frA, frB); | 18 | printk("%s: %p %p %p\n", __func__, frD, frA, frB); |
19 | #endif | 19 | #endif |
20 | 20 | ||
21 | __FP_UNPACK_D(A, frA); | 21 | __FP_UNPACK_D(A, frA); |
diff --git a/arch/powerpc/math-emu/fnabs.c b/arch/powerpc/math-emu/fnabs.c index c6b913d179e0..a7d34f3d9499 100644 --- a/arch/powerpc/math-emu/fnabs.c +++ b/arch/powerpc/math-emu/fnabs.c | |||
@@ -9,7 +9,7 @@ fnabs(u32 *frD, u32 *frB) | |||
9 | frD[1] = frB[1]; | 9 | frD[1] = frB[1]; |
10 | 10 | ||
11 | #ifdef DEBUG | 11 | #ifdef DEBUG |
12 | printk("%s: D %p, B %p: ", __FUNCTION__, frD, frB); | 12 | printk("%s: D %p, B %p: ", __func__, frD, frB); |
13 | dump_double(frD); | 13 | dump_double(frD); |
14 | printk("\n"); | 14 | printk("\n"); |
15 | #endif | 15 | #endif |
diff --git a/arch/powerpc/math-emu/fneg.c b/arch/powerpc/math-emu/fneg.c index fe9a98deff69..1e988cd9c6cc 100644 --- a/arch/powerpc/math-emu/fneg.c +++ b/arch/powerpc/math-emu/fneg.c | |||
@@ -9,7 +9,7 @@ fneg(u32 *frD, u32 *frB) | |||
9 | frD[1] = frB[1]; | 9 | frD[1] = frB[1]; |
10 | 10 | ||
11 | #ifdef DEBUG | 11 | #ifdef DEBUG |
12 | printk("%s: D %p, B %p: ", __FUNCTION__, frD, frB); | 12 | printk("%s: D %p, B %p: ", __func__, frD, frB); |
13 | dump_double(frD); | 13 | dump_double(frD); |
14 | printk("\n"); | 14 | printk("\n"); |
15 | #endif | 15 | #endif |
diff --git a/arch/powerpc/math-emu/fnmadd.c b/arch/powerpc/math-emu/fnmadd.c index 7f312276d920..8cf7827c4fb5 100644 --- a/arch/powerpc/math-emu/fnmadd.c +++ b/arch/powerpc/math-emu/fnmadd.c | |||
@@ -16,7 +16,7 @@ fnmadd(void *frD, void *frA, void *frB, void *frC) | |||
16 | int ret = 0; | 16 | int ret = 0; |
17 | 17 | ||
18 | #ifdef DEBUG | 18 | #ifdef DEBUG |
19 | printk("%s: %p %p %p %p\n", __FUNCTION__, frD, frA, frB, frC); | 19 | printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC); |
20 | #endif | 20 | #endif |
21 | 21 | ||
22 | __FP_UNPACK_D(A, frA); | 22 | __FP_UNPACK_D(A, frA); |
diff --git a/arch/powerpc/math-emu/fnmadds.c b/arch/powerpc/math-emu/fnmadds.c index 65454c9c70bc..f1c4f0f0d807 100644 --- a/arch/powerpc/math-emu/fnmadds.c +++ b/arch/powerpc/math-emu/fnmadds.c | |||
@@ -17,7 +17,7 @@ fnmadds(void *frD, void *frA, void *frB, void *frC) | |||
17 | int ret = 0; | 17 | int ret = 0; |
18 | 18 | ||
19 | #ifdef DEBUG | 19 | #ifdef DEBUG |
20 | printk("%s: %p %p %p %p\n", __FUNCTION__, frD, frA, frB, frC); | 20 | printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC); |
21 | #endif | 21 | #endif |
22 | 22 | ||
23 | __FP_UNPACK_D(A, frA); | 23 | __FP_UNPACK_D(A, frA); |
diff --git a/arch/powerpc/math-emu/fnmsub.c b/arch/powerpc/math-emu/fnmsub.c index f1ca7482b5f0..98944e6e2601 100644 --- a/arch/powerpc/math-emu/fnmsub.c +++ b/arch/powerpc/math-emu/fnmsub.c | |||
@@ -16,7 +16,7 @@ fnmsub(void *frD, void *frA, void *frB, void *frC) | |||
16 | int ret = 0; | 16 | int ret = 0; |
17 | 17 | ||
18 | #ifdef DEBUG | 18 | #ifdef DEBUG |
19 | printk("%s: %p %p %p %p\n", __FUNCTION__, frD, frA, frB, frC); | 19 | printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC); |
20 | #endif | 20 | #endif |
21 | 21 | ||
22 | __FP_UNPACK_D(A, frA); | 22 | __FP_UNPACK_D(A, frA); |
diff --git a/arch/powerpc/math-emu/fnmsubs.c b/arch/powerpc/math-emu/fnmsubs.c index 5c9a09a87dc7..b20f4eb63fb9 100644 --- a/arch/powerpc/math-emu/fnmsubs.c +++ b/arch/powerpc/math-emu/fnmsubs.c | |||
@@ -17,7 +17,7 @@ fnmsubs(void *frD, void *frA, void *frB, void *frC) | |||
17 | int ret = 0; | 17 | int ret = 0; |
18 | 18 | ||
19 | #ifdef DEBUG | 19 | #ifdef DEBUG |
20 | printk("%s: %p %p %p %p\n", __FUNCTION__, frD, frA, frB, frC); | 20 | printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC); |
21 | #endif | 21 | #endif |
22 | 22 | ||
23 | __FP_UNPACK_D(A, frA); | 23 | __FP_UNPACK_D(A, frA); |
diff --git a/arch/powerpc/math-emu/fres.c b/arch/powerpc/math-emu/fres.c index ec11e46d20af..10ecbd08b79e 100644 --- a/arch/powerpc/math-emu/fres.c +++ b/arch/powerpc/math-emu/fres.c | |||
@@ -6,7 +6,7 @@ int | |||
6 | fres(void *frD, void *frB) | 6 | fres(void *frD, void *frB) |
7 | { | 7 | { |
8 | #ifdef DEBUG | 8 | #ifdef DEBUG |
9 | printk("%s: %p %p\n", __FUNCTION__, frD, frB); | 9 | printk("%s: %p %p\n", __func__, frD, frB); |
10 | #endif | 10 | #endif |
11 | return -ENOSYS; | 11 | return -ENOSYS; |
12 | } | 12 | } |
diff --git a/arch/powerpc/math-emu/frsp.c b/arch/powerpc/math-emu/frsp.c index d879b2a3d0c9..724ccbc0468e 100644 --- a/arch/powerpc/math-emu/frsp.c +++ b/arch/powerpc/math-emu/frsp.c | |||
@@ -12,7 +12,7 @@ frsp(void *frD, void *frB) | |||
12 | FP_DECL_D(B); | 12 | FP_DECL_D(B); |
13 | 13 | ||
14 | #ifdef DEBUG | 14 | #ifdef DEBUG |
15 | printk("%s: D %p, B %p\n", __FUNCTION__, frD, frB); | 15 | printk("%s: D %p, B %p\n", __func__, frD, frB); |
16 | #endif | 16 | #endif |
17 | 17 | ||
18 | __FP_UNPACK_D(B, frB); | 18 | __FP_UNPACK_D(B, frB); |
diff --git a/arch/powerpc/math-emu/frsqrte.c b/arch/powerpc/math-emu/frsqrte.c index a11ae1829850..1d0a3a0fd0e6 100644 --- a/arch/powerpc/math-emu/frsqrte.c +++ b/arch/powerpc/math-emu/frsqrte.c | |||
@@ -6,7 +6,7 @@ int | |||
6 | frsqrte(void *frD, void *frB) | 6 | frsqrte(void *frD, void *frB) |
7 | { | 7 | { |
8 | #ifdef DEBUG | 8 | #ifdef DEBUG |
9 | printk("%s: %p %p\n", __FUNCTION__, frD, frB); | 9 | printk("%s: %p %p\n", __func__, frD, frB); |
10 | #endif | 10 | #endif |
11 | return 0; | 11 | return 0; |
12 | } | 12 | } |
diff --git a/arch/powerpc/math-emu/fsel.c b/arch/powerpc/math-emu/fsel.c index e36e6e72819a..ecb5f28eb1f3 100644 --- a/arch/powerpc/math-emu/fsel.c +++ b/arch/powerpc/math-emu/fsel.c | |||
@@ -11,7 +11,7 @@ fsel(u32 *frD, void *frA, u32 *frB, u32 *frC) | |||
11 | FP_DECL_D(A); | 11 | FP_DECL_D(A); |
12 | 12 | ||
13 | #ifdef DEBUG | 13 | #ifdef DEBUG |
14 | printk("%s: %p %p %p %p\n", __FUNCTION__, frD, frA, frB, frC); | 14 | printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC); |
15 | #endif | 15 | #endif |
16 | 16 | ||
17 | __FP_UNPACK_D(A, frA); | 17 | __FP_UNPACK_D(A, frA); |
diff --git a/arch/powerpc/math-emu/fsqrt.c b/arch/powerpc/math-emu/fsqrt.c index 6f8319f64a8a..38ec2b752e9d 100644 --- a/arch/powerpc/math-emu/fsqrt.c +++ b/arch/powerpc/math-emu/fsqrt.c | |||
@@ -13,7 +13,7 @@ fsqrt(void *frD, void *frB) | |||
13 | int ret = 0; | 13 | int ret = 0; |
14 | 14 | ||
15 | #ifdef DEBUG | 15 | #ifdef DEBUG |
16 | printk("%s: %p %p %p %p\n", __FUNCTION__, frD, frB); | 16 | printk("%s: %p %p %p %p\n", __func__, frD, frB); |
17 | #endif | 17 | #endif |
18 | 18 | ||
19 | __FP_UNPACK_D(B, frB); | 19 | __FP_UNPACK_D(B, frB); |
diff --git a/arch/powerpc/math-emu/fsqrts.c b/arch/powerpc/math-emu/fsqrts.c index 3b2b1cf55c12..335263e06ee5 100644 --- a/arch/powerpc/math-emu/fsqrts.c +++ b/arch/powerpc/math-emu/fsqrts.c | |||
@@ -14,7 +14,7 @@ fsqrts(void *frD, void *frB) | |||
14 | int ret = 0; | 14 | int ret = 0; |
15 | 15 | ||
16 | #ifdef DEBUG | 16 | #ifdef DEBUG |
17 | printk("%s: %p %p %p %p\n", __FUNCTION__, frD, frB); | 17 | printk("%s: %p %p %p %p\n", __func__, frD, frB); |
18 | #endif | 18 | #endif |
19 | 19 | ||
20 | __FP_UNPACK_D(B, frB); | 20 | __FP_UNPACK_D(B, frB); |
diff --git a/arch/powerpc/math-emu/fsub.c b/arch/powerpc/math-emu/fsub.c index 956679042bb2..208d20fc52a5 100644 --- a/arch/powerpc/math-emu/fsub.c +++ b/arch/powerpc/math-emu/fsub.c | |||
@@ -14,7 +14,7 @@ fsub(void *frD, void *frA, void *frB) | |||
14 | int ret = 0; | 14 | int ret = 0; |
15 | 15 | ||
16 | #ifdef DEBUG | 16 | #ifdef DEBUG |
17 | printk("%s: %p %p %p\n", __FUNCTION__, frD, frA, frB); | 17 | printk("%s: %p %p %p\n", __func__, frD, frA, frB); |
18 | #endif | 18 | #endif |
19 | 19 | ||
20 | __FP_UNPACK_D(A, frA); | 20 | __FP_UNPACK_D(A, frA); |
diff --git a/arch/powerpc/math-emu/fsubs.c b/arch/powerpc/math-emu/fsubs.c index 3428117dfe8c..0e61b808c44b 100644 --- a/arch/powerpc/math-emu/fsubs.c +++ b/arch/powerpc/math-emu/fsubs.c | |||
@@ -15,7 +15,7 @@ fsubs(void *frD, void *frA, void *frB) | |||
15 | int ret = 0; | 15 | int ret = 0; |
16 | 16 | ||
17 | #ifdef DEBUG | 17 | #ifdef DEBUG |
18 | printk("%s: %p %p %p\n", __FUNCTION__, frD, frA, frB); | 18 | printk("%s: %p %p %p\n", __func__, frD, frA, frB); |
19 | #endif | 19 | #endif |
20 | 20 | ||
21 | __FP_UNPACK_D(A, frA); | 21 | __FP_UNPACK_D(A, frA); |
diff --git a/arch/powerpc/math-emu/lfd.c b/arch/powerpc/math-emu/lfd.c index 7d38101c329b..6ec90b57c61a 100644 --- a/arch/powerpc/math-emu/lfd.c +++ b/arch/powerpc/math-emu/lfd.c | |||
@@ -11,7 +11,7 @@ lfd(void *frD, void *ea) | |||
11 | if (copy_from_user(frD, ea, sizeof(double))) | 11 | if (copy_from_user(frD, ea, sizeof(double))) |
12 | return -EFAULT; | 12 | return -EFAULT; |
13 | #ifdef DEBUG | 13 | #ifdef DEBUG |
14 | printk("%s: D %p, ea %p: ", __FUNCTION__, frD, ea); | 14 | printk("%s: D %p, ea %p: ", __func__, frD, ea); |
15 | dump_double(frD); | 15 | dump_double(frD); |
16 | printk("\n"); | 16 | printk("\n"); |
17 | #endif | 17 | #endif |
diff --git a/arch/powerpc/math-emu/lfs.c b/arch/powerpc/math-emu/lfs.c index c86dee3d7655..6f18ebe3a7ff 100644 --- a/arch/powerpc/math-emu/lfs.c +++ b/arch/powerpc/math-emu/lfs.c | |||
@@ -14,7 +14,7 @@ lfs(void *frD, void *ea) | |||
14 | float f; | 14 | float f; |
15 | 15 | ||
16 | #ifdef DEBUG | 16 | #ifdef DEBUG |
17 | printk("%s: D %p, ea %p\n", __FUNCTION__, frD, ea); | 17 | printk("%s: D %p, ea %p\n", __func__, frD, ea); |
18 | #endif | 18 | #endif |
19 | 19 | ||
20 | if (copy_from_user(&f, ea, sizeof(float))) | 20 | if (copy_from_user(&f, ea, sizeof(float))) |
diff --git a/arch/powerpc/math-emu/mcrfs.c b/arch/powerpc/math-emu/mcrfs.c index 106dd912914b..41ba247faf89 100644 --- a/arch/powerpc/math-emu/mcrfs.c +++ b/arch/powerpc/math-emu/mcrfs.c | |||
@@ -10,7 +10,7 @@ mcrfs(u32 *ccr, u32 crfD, u32 crfS) | |||
10 | u32 value, clear; | 10 | u32 value, clear; |
11 | 11 | ||
12 | #ifdef DEBUG | 12 | #ifdef DEBUG |
13 | printk("%s: %p (%08x) %d %d\n", __FUNCTION__, ccr, *ccr, crfD, crfS); | 13 | printk("%s: %p (%08x) %d %d\n", __func__, ccr, *ccr, crfD, crfS); |
14 | #endif | 14 | #endif |
15 | 15 | ||
16 | clear = 15 << ((7 - crfS) << 2); | 16 | clear = 15 << ((7 - crfS) << 2); |
@@ -24,7 +24,7 @@ mcrfs(u32 *ccr, u32 crfD, u32 crfS) | |||
24 | *ccr |= (value << ((7 - crfD) << 2)); | 24 | *ccr |= (value << ((7 - crfD) << 2)); |
25 | 25 | ||
26 | #ifdef DEBUG | 26 | #ifdef DEBUG |
27 | printk("CR: %08x\n", __FUNCTION__, *ccr); | 27 | printk("CR: %08x\n", __func__, *ccr); |
28 | #endif | 28 | #endif |
29 | 29 | ||
30 | return 0; | 30 | return 0; |
diff --git a/arch/powerpc/math-emu/mffs.c b/arch/powerpc/math-emu/mffs.c index f477c9170e75..b0e2106e6eb6 100644 --- a/arch/powerpc/math-emu/mffs.c +++ b/arch/powerpc/math-emu/mffs.c | |||
@@ -10,7 +10,7 @@ mffs(u32 *frD) | |||
10 | frD[1] = __FPU_FPSCR; | 10 | frD[1] = __FPU_FPSCR; |
11 | 11 | ||
12 | #ifdef DEBUG | 12 | #ifdef DEBUG |
13 | printk("%s: frD %p: %08x.%08x\n", __FUNCTION__, frD, frD[0], frD[1]); | 13 | printk("%s: frD %p: %08x.%08x\n", __func__, frD, frD[0], frD[1]); |
14 | #endif | 14 | #endif |
15 | 15 | ||
16 | return 0; | 16 | return 0; |
diff --git a/arch/powerpc/math-emu/mtfsb0.c b/arch/powerpc/math-emu/mtfsb0.c index 99bfd80f4af3..d3062350ea21 100644 --- a/arch/powerpc/math-emu/mtfsb0.c +++ b/arch/powerpc/math-emu/mtfsb0.c | |||
@@ -11,7 +11,7 @@ mtfsb0(int crbD) | |||
11 | __FPU_FPSCR &= ~(1 << (31 - crbD)); | 11 | __FPU_FPSCR &= ~(1 << (31 - crbD)); |
12 | 12 | ||
13 | #ifdef DEBUG | 13 | #ifdef DEBUG |
14 | printk("%s: %d %08lx\n", __FUNCTION__, crbD, __FPU_FPSCR); | 14 | printk("%s: %d %08lx\n", __func__, crbD, __FPU_FPSCR); |
15 | #endif | 15 | #endif |
16 | 16 | ||
17 | return 0; | 17 | return 0; |
diff --git a/arch/powerpc/math-emu/mtfsb1.c b/arch/powerpc/math-emu/mtfsb1.c index 3d9e7ed92d2b..2e948704b56e 100644 --- a/arch/powerpc/math-emu/mtfsb1.c +++ b/arch/powerpc/math-emu/mtfsb1.c | |||
@@ -11,7 +11,7 @@ mtfsb1(int crbD) | |||
11 | __FPU_FPSCR |= (1 << (31 - crbD)); | 11 | __FPU_FPSCR |= (1 << (31 - crbD)); |
12 | 12 | ||
13 | #ifdef DEBUG | 13 | #ifdef DEBUG |
14 | printk("%s: %d %08lx\n", __FUNCTION__, crbD, __FPU_FPSCR); | 14 | printk("%s: %d %08lx\n", __func__, crbD, __FPU_FPSCR); |
15 | #endif | 15 | #endif |
16 | 16 | ||
17 | return 0; | 17 | return 0; |
diff --git a/arch/powerpc/math-emu/mtfsf.c b/arch/powerpc/math-emu/mtfsf.c index d70cf714994c..48014d8e3af1 100644 --- a/arch/powerpc/math-emu/mtfsf.c +++ b/arch/powerpc/math-emu/mtfsf.c | |||
@@ -38,7 +38,7 @@ mtfsf(unsigned int FM, u32 *frB) | |||
38 | __FPU_FPSCR |= (frB[1] & mask); | 38 | __FPU_FPSCR |= (frB[1] & mask); |
39 | 39 | ||
40 | #ifdef DEBUG | 40 | #ifdef DEBUG |
41 | printk("%s: %02x %p: %08lx\n", __FUNCTION__, FM, frB, __FPU_FPSCR); | 41 | printk("%s: %02x %p: %08lx\n", __func__, FM, frB, __FPU_FPSCR); |
42 | #endif | 42 | #endif |
43 | 43 | ||
44 | return 0; | 44 | return 0; |
diff --git a/arch/powerpc/math-emu/mtfsfi.c b/arch/powerpc/math-emu/mtfsfi.c index 71df854baa7e..031e20093549 100644 --- a/arch/powerpc/math-emu/mtfsfi.c +++ b/arch/powerpc/math-emu/mtfsfi.c | |||
@@ -16,7 +16,7 @@ mtfsfi(unsigned int crfD, unsigned int IMM) | |||
16 | __FPU_FPSCR |= (IMM & 0xf) << ((7 - crfD) << 2); | 16 | __FPU_FPSCR |= (IMM & 0xf) << ((7 - crfD) << 2); |
17 | 17 | ||
18 | #ifdef DEBUG | 18 | #ifdef DEBUG |
19 | printk("%s: %d %x: %08lx\n", __FUNCTION__, crfD, IMM, __FPU_FPSCR); | 19 | printk("%s: %d %x: %08lx\n", __func__, crfD, IMM, __FPU_FPSCR); |
20 | #endif | 20 | #endif |
21 | 21 | ||
22 | return 0; | 22 | return 0; |
diff --git a/arch/powerpc/math-emu/stfd.c b/arch/powerpc/math-emu/stfd.c index 3f8c2558a9e8..33a165c8df0f 100644 --- a/arch/powerpc/math-emu/stfd.c +++ b/arch/powerpc/math-emu/stfd.c | |||
@@ -7,7 +7,7 @@ stfd(void *frS, void *ea) | |||
7 | { | 7 | { |
8 | #if 0 | 8 | #if 0 |
9 | #ifdef DEBUG | 9 | #ifdef DEBUG |
10 | printk("%s: S %p, ea %p: ", __FUNCTION__, frS, ea); | 10 | printk("%s: S %p, ea %p: ", __func__, frS, ea); |
11 | dump_double(frS); | 11 | dump_double(frS); |
12 | printk("\n"); | 12 | printk("\n"); |
13 | #endif | 13 | #endif |
diff --git a/arch/powerpc/math-emu/stfiwx.c b/arch/powerpc/math-emu/stfiwx.c index 95caaeec6a08..f15a35f67e2c 100644 --- a/arch/powerpc/math-emu/stfiwx.c +++ b/arch/powerpc/math-emu/stfiwx.c | |||
@@ -6,7 +6,7 @@ int | |||
6 | stfiwx(u32 *frS, void *ea) | 6 | stfiwx(u32 *frS, void *ea) |
7 | { | 7 | { |
8 | #ifdef DEBUG | 8 | #ifdef DEBUG |
9 | printk("%s: %p %p\n", __FUNCTION__, frS, ea); | 9 | printk("%s: %p %p\n", __func__, frS, ea); |
10 | #endif | 10 | #endif |
11 | 11 | ||
12 | if (copy_to_user(ea, &frS[1], sizeof(frS[1]))) | 12 | if (copy_to_user(ea, &frS[1], sizeof(frS[1]))) |
diff --git a/arch/powerpc/math-emu/stfs.c b/arch/powerpc/math-emu/stfs.c index e87ca23c6dc3..8689aa48ef69 100644 --- a/arch/powerpc/math-emu/stfs.c +++ b/arch/powerpc/math-emu/stfs.c | |||
@@ -15,7 +15,7 @@ stfs(void *frS, void *ea) | |||
15 | int err; | 15 | int err; |
16 | 16 | ||
17 | #ifdef DEBUG | 17 | #ifdef DEBUG |
18 | printk("%s: S %p, ea %p\n", __FUNCTION__, frS, ea); | 18 | printk("%s: S %p, ea %p\n", __func__, frS, ea); |
19 | #endif | 19 | #endif |
20 | 20 | ||
21 | __FP_UNPACK_D(A, frS); | 21 | __FP_UNPACK_D(A, frS); |
diff --git a/arch/powerpc/mm/init_32.c b/arch/powerpc/mm/init_32.c index 59a725b8ece9..0c66a9fe63f5 100644 --- a/arch/powerpc/mm/init_32.c +++ b/arch/powerpc/mm/init_32.c | |||
@@ -276,7 +276,7 @@ static int __init setup_kcore(void) | |||
276 | 276 | ||
277 | kcore_mem = kmalloc(sizeof(struct kcore_list), GFP_ATOMIC); | 277 | kcore_mem = kmalloc(sizeof(struct kcore_list), GFP_ATOMIC); |
278 | if (!kcore_mem) | 278 | if (!kcore_mem) |
279 | panic("%s: kmalloc failed\n", __FUNCTION__); | 279 | panic("%s: kmalloc failed\n", __func__); |
280 | 280 | ||
281 | /* must stay under 32 bits */ | 281 | /* must stay under 32 bits */ |
282 | if ( 0xfffffffful - (unsigned long)__va(base) < size) { | 282 | if ( 0xfffffffful - (unsigned long)__va(base) < size) { |
diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c index abeb0eb79313..5f553991698b 100644 --- a/arch/powerpc/mm/init_64.c +++ b/arch/powerpc/mm/init_64.c | |||
@@ -122,7 +122,7 @@ static int __init setup_kcore(void) | |||
122 | /* GFP_ATOMIC to avoid might_sleep warnings during boot */ | 122 | /* GFP_ATOMIC to avoid might_sleep warnings during boot */ |
123 | kcore_mem = kmalloc(sizeof(struct kcore_list), GFP_ATOMIC); | 123 | kcore_mem = kmalloc(sizeof(struct kcore_list), GFP_ATOMIC); |
124 | if (!kcore_mem) | 124 | if (!kcore_mem) |
125 | panic("%s: kmalloc failed\n", __FUNCTION__); | 125 | panic("%s: kmalloc failed\n", __func__); |
126 | 126 | ||
127 | kclist_add(kcore_mem, __va(base), size); | 127 | kclist_add(kcore_mem, __va(base), size); |
128 | } | 128 | } |
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 */ |
diff --git a/arch/powerpc/platforms/52xx/lite5200.c b/arch/powerpc/platforms/52xx/lite5200.c index 956f459e175c..6d584f4e3c9a 100644 --- a/arch/powerpc/platforms/52xx/lite5200.c +++ b/arch/powerpc/platforms/52xx/lite5200.c | |||
@@ -63,7 +63,7 @@ lite5200_fix_clock_config(void) | |||
63 | of_node_put(np); | 63 | of_node_put(np); |
64 | if (!cdm) { | 64 | if (!cdm) { |
65 | printk(KERN_ERR "%s() failed; expect abnormal behaviour\n", | 65 | printk(KERN_ERR "%s() failed; expect abnormal behaviour\n", |
66 | __FUNCTION__); | 66 | __func__); |
67 | return; | 67 | return; |
68 | } | 68 | } |
69 | 69 | ||
@@ -98,7 +98,7 @@ lite5200_fix_port_config(void) | |||
98 | of_node_put(np); | 98 | of_node_put(np); |
99 | if (!gpio) { | 99 | if (!gpio) { |
100 | printk(KERN_ERR "%s() failed. expect abnormal behavior\n", | 100 | printk(KERN_ERR "%s() failed. expect abnormal behavior\n", |
101 | __FUNCTION__); | 101 | __func__); |
102 | return; | 102 | return; |
103 | } | 103 | } |
104 | 104 | ||
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_ds.c b/arch/powerpc/platforms/85xx/mpc85xx_ds.c index bdb3d0b38cd2..2865d019afc3 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_ds.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_ds.c | |||
@@ -36,7 +36,7 @@ | |||
36 | #undef DEBUG | 36 | #undef DEBUG |
37 | 37 | ||
38 | #ifdef DEBUG | 38 | #ifdef DEBUG |
39 | #define DBG(fmt, args...) printk(KERN_ERR "%s: " fmt, __FUNCTION__, ## args) | 39 | #define DBG(fmt, args...) printk(KERN_ERR "%s: " fmt, __func__, ## args) |
40 | #else | 40 | #else |
41 | #define DBG(fmt, args...) | 41 | #define DBG(fmt, args...) |
42 | #endif | 42 | #endif |
diff --git a/arch/powerpc/platforms/cell/iommu.c b/arch/powerpc/platforms/cell/iommu.c index 49fe641d4345..45646b2b4af4 100644 --- a/arch/powerpc/platforms/cell/iommu.c +++ b/arch/powerpc/platforms/cell/iommu.c | |||
@@ -316,7 +316,7 @@ static void cell_iommu_setup_stab(struct cbe_iommu *iommu, | |||
316 | segments = max(dbase + dsize, fbase + fsize) >> IO_SEGMENT_SHIFT; | 316 | segments = max(dbase + dsize, fbase + fsize) >> IO_SEGMENT_SHIFT; |
317 | 317 | ||
318 | pr_debug("%s: iommu[%d]: segments: %lu\n", | 318 | pr_debug("%s: iommu[%d]: segments: %lu\n", |
319 | __FUNCTION__, iommu->nid, segments); | 319 | __func__, iommu->nid, segments); |
320 | 320 | ||
321 | /* set up the segment table */ | 321 | /* set up the segment table */ |
322 | stab_size = segments * sizeof(unsigned long); | 322 | stab_size = segments * sizeof(unsigned long); |
@@ -343,7 +343,7 @@ static unsigned long *cell_iommu_alloc_ptab(struct cbe_iommu *iommu, | |||
343 | (1 << 12) / sizeof(unsigned long)); | 343 | (1 << 12) / sizeof(unsigned long)); |
344 | 344 | ||
345 | ptab_size = segments * pages_per_segment * sizeof(unsigned long); | 345 | ptab_size = segments * pages_per_segment * sizeof(unsigned long); |
346 | pr_debug("%s: iommu[%d]: ptab_size: %lu, order: %d\n", __FUNCTION__, | 346 | pr_debug("%s: iommu[%d]: ptab_size: %lu, order: %d\n", __func__, |
347 | iommu->nid, ptab_size, get_order(ptab_size)); | 347 | iommu->nid, ptab_size, get_order(ptab_size)); |
348 | page = alloc_pages_node(iommu->nid, GFP_KERNEL, get_order(ptab_size)); | 348 | page = alloc_pages_node(iommu->nid, GFP_KERNEL, get_order(ptab_size)); |
349 | BUG_ON(!page); | 349 | BUG_ON(!page); |
@@ -355,7 +355,7 @@ static unsigned long *cell_iommu_alloc_ptab(struct cbe_iommu *iommu, | |||
355 | n_pte_pages = (pages_per_segment * sizeof(unsigned long)) >> 12; | 355 | n_pte_pages = (pages_per_segment * sizeof(unsigned long)) >> 12; |
356 | 356 | ||
357 | pr_debug("%s: iommu[%d]: stab at %p, ptab at %p, n_pte_pages: %lu\n", | 357 | pr_debug("%s: iommu[%d]: stab at %p, ptab at %p, n_pte_pages: %lu\n", |
358 | __FUNCTION__, iommu->nid, iommu->stab, ptab, | 358 | __func__, iommu->nid, iommu->stab, ptab, |
359 | n_pte_pages); | 359 | n_pte_pages); |
360 | 360 | ||
361 | /* initialise the STEs */ | 361 | /* initialise the STEs */ |
@@ -394,7 +394,7 @@ static void cell_iommu_enable_hardware(struct cbe_iommu *iommu) | |||
394 | 394 | ||
395 | if (cell_iommu_find_ioc(iommu->nid, &xlate_base)) | 395 | if (cell_iommu_find_ioc(iommu->nid, &xlate_base)) |
396 | panic("%s: missing IOC register mappings for node %d\n", | 396 | panic("%s: missing IOC register mappings for node %d\n", |
397 | __FUNCTION__, iommu->nid); | 397 | __func__, iommu->nid); |
398 | 398 | ||
399 | iommu->xlate_regs = ioremap(xlate_base, IOC_Reg_Size); | 399 | iommu->xlate_regs = ioremap(xlate_base, IOC_Reg_Size); |
400 | iommu->cmd_regs = iommu->xlate_regs + IOC_IOCmd_Offset; | 400 | iommu->cmd_regs = iommu->xlate_regs + IOC_IOCmd_Offset; |
diff --git a/arch/powerpc/platforms/cell/pervasive.c b/arch/powerpc/platforms/cell/pervasive.c index 0304589c0a80..8a3631ce912b 100644 --- a/arch/powerpc/platforms/cell/pervasive.c +++ b/arch/powerpc/platforms/cell/pervasive.c | |||
@@ -65,7 +65,7 @@ static void cbe_power_save(void) | |||
65 | break; | 65 | break; |
66 | default: | 66 | default: |
67 | printk(KERN_WARNING "%s: unknown configuration\n", | 67 | printk(KERN_WARNING "%s: unknown configuration\n", |
68 | __FUNCTION__); | 68 | __func__); |
69 | break; | 69 | break; |
70 | } | 70 | } |
71 | mtspr(SPRN_TSC_CELL, thread_switch_control); | 71 | mtspr(SPRN_TSC_CELL, thread_switch_control); |
diff --git a/arch/powerpc/platforms/cell/ras.c b/arch/powerpc/platforms/cell/ras.c index e43024c0392e..655704ad03cf 100644 --- a/arch/powerpc/platforms/cell/ras.c +++ b/arch/powerpc/platforms/cell/ras.c | |||
@@ -132,7 +132,7 @@ static int __init cbe_ptcal_enable_on_node(int nid, int order) | |||
132 | (unsigned int)(addr >> 32), | 132 | (unsigned int)(addr >> 32), |
133 | (unsigned int)(addr & 0xffffffff))) { | 133 | (unsigned int)(addr & 0xffffffff))) { |
134 | printk(KERN_ERR "%s: error enabling PTCAL on node %d!\n", | 134 | printk(KERN_ERR "%s: error enabling PTCAL on node %d!\n", |
135 | __FUNCTION__, nid); | 135 | __func__, nid); |
136 | goto out_free_pages; | 136 | goto out_free_pages; |
137 | } | 137 | } |
138 | 138 | ||
@@ -162,7 +162,7 @@ static int __init cbe_ptcal_enable(void) | |||
162 | if (!size) | 162 | if (!size) |
163 | return -ENODEV; | 163 | return -ENODEV; |
164 | 164 | ||
165 | pr_debug("%s: enabling PTCAL, size = 0x%x\n", __FUNCTION__, *size); | 165 | pr_debug("%s: enabling PTCAL, size = 0x%x\n", __func__, *size); |
166 | order = get_order(*size); | 166 | order = get_order(*size); |
167 | of_node_put(np); | 167 | of_node_put(np); |
168 | 168 | ||
@@ -180,7 +180,7 @@ static int __init cbe_ptcal_enable(void) | |||
180 | const u32 *nid = of_get_property(np, "node-id", NULL); | 180 | const u32 *nid = of_get_property(np, "node-id", NULL); |
181 | if (!nid) { | 181 | if (!nid) { |
182 | printk(KERN_ERR "%s: node %s is missing node-id?\n", | 182 | printk(KERN_ERR "%s: node %s is missing node-id?\n", |
183 | __FUNCTION__, np->full_name); | 183 | __func__, np->full_name); |
184 | continue; | 184 | continue; |
185 | } | 185 | } |
186 | cbe_ptcal_enable_on_node(*nid, order); | 186 | cbe_ptcal_enable_on_node(*nid, order); |
@@ -195,13 +195,13 @@ static int cbe_ptcal_disable(void) | |||
195 | struct ptcal_area *area, *tmp; | 195 | struct ptcal_area *area, *tmp; |
196 | int ret = 0; | 196 | int ret = 0; |
197 | 197 | ||
198 | pr_debug("%s: disabling PTCAL\n", __FUNCTION__); | 198 | pr_debug("%s: disabling PTCAL\n", __func__); |
199 | 199 | ||
200 | list_for_each_entry_safe(area, tmp, &ptcal_list, list) { | 200 | list_for_each_entry_safe(area, tmp, &ptcal_list, list) { |
201 | /* disable ptcal on this node */ | 201 | /* disable ptcal on this node */ |
202 | if (rtas_call(ptcal_stop_tok, 1, 1, NULL, area->nid)) { | 202 | if (rtas_call(ptcal_stop_tok, 1, 1, NULL, area->nid)) { |
203 | printk(KERN_ERR "%s: error disabling PTCAL " | 203 | printk(KERN_ERR "%s: error disabling PTCAL " |
204 | "on node %d!\n", __FUNCTION__, | 204 | "on node %d!\n", __func__, |
205 | area->nid); | 205 | area->nid); |
206 | ret = -EIO; | 206 | ret = -EIO; |
207 | continue; | 207 | continue; |
diff --git a/arch/powerpc/platforms/cell/spu_base.c b/arch/powerpc/platforms/cell/spu_base.c index 712001f6b7da..6bab44b7716b 100644 --- a/arch/powerpc/platforms/cell/spu_base.c +++ b/arch/powerpc/platforms/cell/spu_base.c | |||
@@ -165,7 +165,7 @@ static int __spu_trap_data_seg(struct spu *spu, unsigned long ea) | |||
165 | struct spu_slb slb; | 165 | struct spu_slb slb; |
166 | int psize; | 166 | int psize; |
167 | 167 | ||
168 | pr_debug("%s\n", __FUNCTION__); | 168 | pr_debug("%s\n", __func__); |
169 | 169 | ||
170 | slb.esid = (ea & ESID_MASK) | SLB_ESID_V; | 170 | slb.esid = (ea & ESID_MASK) | SLB_ESID_V; |
171 | 171 | ||
@@ -215,7 +215,7 @@ static int __spu_trap_data_seg(struct spu *spu, unsigned long ea) | |||
215 | extern int hash_page(unsigned long ea, unsigned long access, unsigned long trap); //XXX | 215 | extern int hash_page(unsigned long ea, unsigned long access, unsigned long trap); //XXX |
216 | static int __spu_trap_data_map(struct spu *spu, unsigned long ea, u64 dsisr) | 216 | static int __spu_trap_data_map(struct spu *spu, unsigned long ea, u64 dsisr) |
217 | { | 217 | { |
218 | pr_debug("%s, %lx, %lx\n", __FUNCTION__, dsisr, ea); | 218 | pr_debug("%s, %lx, %lx\n", __func__, dsisr, ea); |
219 | 219 | ||
220 | /* Handle kernel space hash faults immediately. | 220 | /* Handle kernel space hash faults immediately. |
221 | User hash faults need to be deferred to process context. */ | 221 | User hash faults need to be deferred to process context. */ |
@@ -351,7 +351,7 @@ spu_irq_class_1(int irq, void *data) | |||
351 | __spu_trap_data_seg(spu, dar); | 351 | __spu_trap_data_seg(spu, dar); |
352 | 352 | ||
353 | spin_unlock(&spu->register_lock); | 353 | spin_unlock(&spu->register_lock); |
354 | pr_debug("%s: %lx %lx %lx %lx\n", __FUNCTION__, mask, stat, | 354 | pr_debug("%s: %lx %lx %lx %lx\n", __func__, mask, stat, |
355 | dar, dsisr); | 355 | dar, dsisr); |
356 | 356 | ||
357 | if (stat & CLASS1_STORAGE_FAULT_INTR) | 357 | if (stat & CLASS1_STORAGE_FAULT_INTR) |
@@ -726,7 +726,7 @@ static int __init init_spu_base(void) | |||
726 | 726 | ||
727 | if (ret < 0) { | 727 | if (ret < 0) { |
728 | printk(KERN_WARNING "%s: Error initializing spus\n", | 728 | printk(KERN_WARNING "%s: Error initializing spus\n", |
729 | __FUNCTION__); | 729 | __func__); |
730 | goto out_unregister_sysdev_class; | 730 | goto out_unregister_sysdev_class; |
731 | } | 731 | } |
732 | 732 | ||
diff --git a/arch/powerpc/platforms/cell/spu_callbacks.c b/arch/powerpc/platforms/cell/spu_callbacks.c index dceb8b6a9382..19f6bfdbb933 100644 --- a/arch/powerpc/platforms/cell/spu_callbacks.c +++ b/arch/powerpc/platforms/cell/spu_callbacks.c | |||
@@ -54,7 +54,7 @@ long spu_sys_callback(struct spu_syscall_block *s) | |||
54 | long (*syscall)(u64 a1, u64 a2, u64 a3, u64 a4, u64 a5, u64 a6); | 54 | long (*syscall)(u64 a1, u64 a2, u64 a3, u64 a4, u64 a5, u64 a6); |
55 | 55 | ||
56 | if (s->nr_ret >= ARRAY_SIZE(spu_syscall_table)) { | 56 | if (s->nr_ret >= ARRAY_SIZE(spu_syscall_table)) { |
57 | pr_debug("%s: invalid syscall #%ld", __FUNCTION__, s->nr_ret); | 57 | pr_debug("%s: invalid syscall #%ld", __func__, s->nr_ret); |
58 | return -ENOSYS; | 58 | return -ENOSYS; |
59 | } | 59 | } |
60 | 60 | ||
diff --git a/arch/powerpc/platforms/cell/spu_manage.c b/arch/powerpc/platforms/cell/spu_manage.c index d351bdebf5f1..4c506c1463cd 100644 --- a/arch/powerpc/platforms/cell/spu_manage.c +++ b/arch/powerpc/platforms/cell/spu_manage.c | |||
@@ -92,7 +92,7 @@ static int __init spu_map_interrupts_old(struct spu *spu, | |||
92 | 92 | ||
93 | tmp = of_get_property(np->parent->parent, "node-id", NULL); | 93 | tmp = of_get_property(np->parent->parent, "node-id", NULL); |
94 | if (!tmp) { | 94 | if (!tmp) { |
95 | printk(KERN_WARNING "%s: can't find node-id\n", __FUNCTION__); | 95 | printk(KERN_WARNING "%s: can't find node-id\n", __func__); |
96 | nid = spu->node; | 96 | nid = spu->node; |
97 | } else | 97 | } else |
98 | nid = tmp[0]; | 98 | nid = tmp[0]; |
@@ -296,7 +296,7 @@ static int __init of_enumerate_spus(int (*fn)(void *data)) | |||
296 | ret = fn(node); | 296 | ret = fn(node); |
297 | if (ret) { | 297 | if (ret) { |
298 | printk(KERN_WARNING "%s: Error initializing %s\n", | 298 | printk(KERN_WARNING "%s: Error initializing %s\n", |
299 | __FUNCTION__, node->name); | 299 | __func__, node->name); |
300 | break; | 300 | break; |
301 | } | 301 | } |
302 | n++; | 302 | n++; |
@@ -327,7 +327,7 @@ static int __init of_create_spu(struct spu *spu, void *data) | |||
327 | if (!legacy_map) { | 327 | if (!legacy_map) { |
328 | legacy_map = 1; | 328 | legacy_map = 1; |
329 | printk(KERN_WARNING "%s: Legacy device tree found, " | 329 | printk(KERN_WARNING "%s: Legacy device tree found, " |
330 | "trying to map old style\n", __FUNCTION__); | 330 | "trying to map old style\n", __func__); |
331 | } | 331 | } |
332 | ret = spu_map_device_old(spu); | 332 | ret = spu_map_device_old(spu); |
333 | if (ret) { | 333 | if (ret) { |
@@ -342,7 +342,7 @@ static int __init of_create_spu(struct spu *spu, void *data) | |||
342 | if (!legacy_irq) { | 342 | if (!legacy_irq) { |
343 | legacy_irq = 1; | 343 | legacy_irq = 1; |
344 | printk(KERN_WARNING "%s: Legacy device tree found, " | 344 | printk(KERN_WARNING "%s: Legacy device tree found, " |
345 | "trying old style irq\n", __FUNCTION__); | 345 | "trying old style irq\n", __func__); |
346 | } | 346 | } |
347 | ret = spu_map_interrupts_old(spu, spe); | 347 | ret = spu_map_interrupts_old(spu, spe); |
348 | if (ret) { | 348 | if (ret) { |
diff --git a/arch/powerpc/platforms/cell/spufs/file.c b/arch/powerpc/platforms/cell/spufs/file.c index f7a7e8635fb6..f14d3a0a8615 100644 --- a/arch/powerpc/platforms/cell/spufs/file.c +++ b/arch/powerpc/platforms/cell/spufs/file.c | |||
@@ -1556,7 +1556,7 @@ void spufs_mfc_callback(struct spu *spu) | |||
1556 | 1556 | ||
1557 | wake_up_all(&ctx->mfc_wq); | 1557 | wake_up_all(&ctx->mfc_wq); |
1558 | 1558 | ||
1559 | pr_debug("%s %s\n", __FUNCTION__, spu->name); | 1559 | pr_debug("%s %s\n", __func__, spu->name); |
1560 | if (ctx->mfc_fasync) { | 1560 | if (ctx->mfc_fasync) { |
1561 | u32 free_elements, tagstatus; | 1561 | u32 free_elements, tagstatus; |
1562 | unsigned int mask; | 1562 | unsigned int mask; |
@@ -1790,7 +1790,7 @@ static unsigned int spufs_mfc_poll(struct file *file,poll_table *wait) | |||
1790 | if (tagstatus & ctx->tagwait) | 1790 | if (tagstatus & ctx->tagwait) |
1791 | mask |= POLLIN | POLLRDNORM; | 1791 | mask |= POLLIN | POLLRDNORM; |
1792 | 1792 | ||
1793 | pr_debug("%s: free %d tagstatus %d tagwait %d\n", __FUNCTION__, | 1793 | pr_debug("%s: free %d tagstatus %d tagwait %d\n", __func__, |
1794 | free_elements, tagstatus, ctx->tagwait); | 1794 | free_elements, tagstatus, ctx->tagwait); |
1795 | 1795 | ||
1796 | return mask; | 1796 | return mask; |
diff --git a/arch/powerpc/platforms/cell/spufs/run.c b/arch/powerpc/platforms/cell/spufs/run.c index cac69e116776..5986d08115af 100644 --- a/arch/powerpc/platforms/cell/spufs/run.c +++ b/arch/powerpc/platforms/cell/spufs/run.c | |||
@@ -98,7 +98,7 @@ static int spu_setup_isolated(struct spu_context *ctx) | |||
98 | != MFC_CNTL_PURGE_DMA_COMPLETE) { | 98 | != MFC_CNTL_PURGE_DMA_COMPLETE) { |
99 | if (time_after(jiffies, timeout)) { | 99 | if (time_after(jiffies, timeout)) { |
100 | printk(KERN_ERR "%s: timeout flushing MFC DMA queue\n", | 100 | printk(KERN_ERR "%s: timeout flushing MFC DMA queue\n", |
101 | __FUNCTION__); | 101 | __func__); |
102 | ret = -EIO; | 102 | ret = -EIO; |
103 | goto out; | 103 | goto out; |
104 | } | 104 | } |
@@ -124,7 +124,7 @@ static int spu_setup_isolated(struct spu_context *ctx) | |||
124 | status_loading) { | 124 | status_loading) { |
125 | if (time_after(jiffies, timeout)) { | 125 | if (time_after(jiffies, timeout)) { |
126 | printk(KERN_ERR "%s: timeout waiting for loader\n", | 126 | printk(KERN_ERR "%s: timeout waiting for loader\n", |
127 | __FUNCTION__); | 127 | __func__); |
128 | ret = -EIO; | 128 | ret = -EIO; |
129 | goto out_drop_priv; | 129 | goto out_drop_priv; |
130 | } | 130 | } |
@@ -134,7 +134,7 @@ static int spu_setup_isolated(struct spu_context *ctx) | |||
134 | if (!(status & SPU_STATUS_RUNNING)) { | 134 | if (!(status & SPU_STATUS_RUNNING)) { |
135 | /* If isolated LOAD has failed: run SPU, we will get a stop-and | 135 | /* If isolated LOAD has failed: run SPU, we will get a stop-and |
136 | * signal later. */ | 136 | * signal later. */ |
137 | pr_debug("%s: isolated LOAD failed\n", __FUNCTION__); | 137 | pr_debug("%s: isolated LOAD failed\n", __func__); |
138 | ctx->ops->runcntl_write(ctx, SPU_RUNCNTL_RUNNABLE); | 138 | ctx->ops->runcntl_write(ctx, SPU_RUNCNTL_RUNNABLE); |
139 | ret = -EACCES; | 139 | ret = -EACCES; |
140 | goto out_drop_priv; | 140 | goto out_drop_priv; |
@@ -142,7 +142,7 @@ static int spu_setup_isolated(struct spu_context *ctx) | |||
142 | 142 | ||
143 | if (!(status & SPU_STATUS_ISOLATED_STATE)) { | 143 | if (!(status & SPU_STATUS_ISOLATED_STATE)) { |
144 | /* This isn't allowed by the CBEA, but check anyway */ | 144 | /* This isn't allowed by the CBEA, but check anyway */ |
145 | pr_debug("%s: SPU fell out of isolated mode?\n", __FUNCTION__); | 145 | pr_debug("%s: SPU fell out of isolated mode?\n", __func__); |
146 | ctx->ops->runcntl_write(ctx, SPU_RUNCNTL_STOP); | 146 | ctx->ops->runcntl_write(ctx, SPU_RUNCNTL_STOP); |
147 | ret = -EINVAL; | 147 | ret = -EINVAL; |
148 | goto out_drop_priv; | 148 | goto out_drop_priv; |
@@ -282,7 +282,7 @@ static int spu_handle_restartsys(struct spu_context *ctx, long *spu_ret, | |||
282 | break; | 282 | break; |
283 | default: | 283 | default: |
284 | printk(KERN_WARNING "%s: unexpected return code %ld\n", | 284 | printk(KERN_WARNING "%s: unexpected return code %ld\n", |
285 | __FUNCTION__, *spu_ret); | 285 | __func__, *spu_ret); |
286 | ret = 0; | 286 | ret = 0; |
287 | } | 287 | } |
288 | return ret; | 288 | return ret; |
diff --git a/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c b/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c index d4f8bf581e3a..84e2d78b9a62 100644 --- a/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c +++ b/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c | |||
@@ -117,11 +117,11 @@ static void __init mpc7448_hpc2_init_IRQ(void) | |||
117 | } | 117 | } |
118 | 118 | ||
119 | if (mpic_paddr == 0) { | 119 | if (mpic_paddr == 0) { |
120 | printk("%s: No tsi108 PIC found !\n", __FUNCTION__); | 120 | printk("%s: No tsi108 PIC found !\n", __func__); |
121 | return; | 121 | return; |
122 | } | 122 | } |
123 | 123 | ||
124 | DBG("%s: tsi108 pic phys_addr = 0x%x\n", __FUNCTION__, | 124 | DBG("%s: tsi108 pic phys_addr = 0x%x\n", __func__, |
125 | (u32) mpic_paddr); | 125 | (u32) mpic_paddr); |
126 | 126 | ||
127 | mpic = mpic_alloc(tsi_pic, mpic_paddr, | 127 | mpic = mpic_alloc(tsi_pic, mpic_paddr, |
@@ -140,17 +140,17 @@ static void __init mpc7448_hpc2_init_IRQ(void) | |||
140 | #ifdef CONFIG_PCI | 140 | #ifdef CONFIG_PCI |
141 | tsi_pci = of_find_node_by_type(NULL, "pci"); | 141 | tsi_pci = of_find_node_by_type(NULL, "pci"); |
142 | if (tsi_pci == NULL) { | 142 | if (tsi_pci == NULL) { |
143 | printk("%s: No tsi108 pci node found !\n", __FUNCTION__); | 143 | printk("%s: No tsi108 pci node found !\n", __func__); |
144 | return; | 144 | return; |
145 | } | 145 | } |
146 | cascade_node = of_find_node_by_type(NULL, "pic-router"); | 146 | cascade_node = of_find_node_by_type(NULL, "pic-router"); |
147 | if (cascade_node == NULL) { | 147 | if (cascade_node == NULL) { |
148 | printk("%s: No tsi108 pci cascade node found !\n", __FUNCTION__); | 148 | printk("%s: No tsi108 pci cascade node found !\n", __func__); |
149 | return; | 149 | return; |
150 | } | 150 | } |
151 | 151 | ||
152 | cascade_pci_irq = irq_of_parse_and_map(tsi_pci, 0); | 152 | cascade_pci_irq = irq_of_parse_and_map(tsi_pci, 0); |
153 | DBG("%s: tsi108 cascade_pci_irq = 0x%x\n", __FUNCTION__, | 153 | DBG("%s: tsi108 cascade_pci_irq = 0x%x\n", __func__, |
154 | (u32) cascade_pci_irq); | 154 | (u32) cascade_pci_irq); |
155 | tsi108_pci_int_init(cascade_node); | 155 | tsi108_pci_int_init(cascade_node); |
156 | set_irq_data(cascade_pci_irq, mpic); | 156 | set_irq_data(cascade_pci_irq, mpic); |
diff --git a/arch/powerpc/platforms/ps3/setup.c b/arch/powerpc/platforms/ps3/setup.c index c144669a0d3f..a413abbd4123 100644 --- a/arch/powerpc/platforms/ps3/setup.c +++ b/arch/powerpc/platforms/ps3/setup.c | |||
@@ -126,7 +126,7 @@ static void __init prealloc(struct ps3_prealloc *p) | |||
126 | 126 | ||
127 | p->address = __alloc_bootmem(p->size, p->align, __pa(MAX_DMA_ADDRESS)); | 127 | p->address = __alloc_bootmem(p->size, p->align, __pa(MAX_DMA_ADDRESS)); |
128 | if (!p->address) { | 128 | if (!p->address) { |
129 | printk(KERN_ERR "%s: Cannot allocate %s\n", __FUNCTION__, | 129 | printk(KERN_ERR "%s: Cannot allocate %s\n", __func__, |
130 | p->name); | 130 | p->name); |
131 | return; | 131 | return; |
132 | } | 132 | } |
diff --git a/arch/powerpc/platforms/pseries/pci_dlpar.c b/arch/powerpc/platforms/pseries/pci_dlpar.c index 5a5a19e40bb4..0d7229cde0e9 100644 --- a/arch/powerpc/platforms/pseries/pci_dlpar.c +++ b/arch/powerpc/platforms/pseries/pci_dlpar.c | |||
@@ -123,7 +123,7 @@ pcibios_pci_config_bridge(struct pci_dev *dev) | |||
123 | /* Add to children of PCI bridge dev->bus */ | 123 | /* Add to children of PCI bridge dev->bus */ |
124 | child_bus = pci_add_new_bus(dev->bus, dev, sec_busno); | 124 | child_bus = pci_add_new_bus(dev->bus, dev, sec_busno); |
125 | if (!child_bus) { | 125 | if (!child_bus) { |
126 | printk (KERN_ERR "%s: could not add second bus\n", __FUNCTION__); | 126 | printk (KERN_ERR "%s: could not add second bus\n", __func__); |
127 | return -EIO; | 127 | return -EIO; |
128 | } | 128 | } |
129 | sprintf(child_bus->name, "PCI Bus #%02x", child_bus->number); | 129 | sprintf(child_bus->name, "PCI Bus #%02x", child_bus->number); |
diff --git a/arch/powerpc/platforms/pseries/reconfig.c b/arch/powerpc/platforms/pseries/reconfig.c index 2800fced8c7c..ac75c10de278 100644 --- a/arch/powerpc/platforms/pseries/reconfig.c +++ b/arch/powerpc/platforms/pseries/reconfig.c | |||
@@ -222,14 +222,14 @@ static char * parse_next_property(char *buf, char *end, char **name, int *length | |||
222 | tmp = strchr(buf, ' '); | 222 | tmp = strchr(buf, ' '); |
223 | if (!tmp) { | 223 | if (!tmp) { |
224 | printk(KERN_ERR "property parse failed in %s at line %d\n", | 224 | printk(KERN_ERR "property parse failed in %s at line %d\n", |
225 | __FUNCTION__, __LINE__); | 225 | __func__, __LINE__); |
226 | return NULL; | 226 | return NULL; |
227 | } | 227 | } |
228 | *tmp = '\0'; | 228 | *tmp = '\0'; |
229 | 229 | ||
230 | if (++tmp >= end) { | 230 | if (++tmp >= end) { |
231 | printk(KERN_ERR "property parse failed in %s at line %d\n", | 231 | printk(KERN_ERR "property parse failed in %s at line %d\n", |
232 | __FUNCTION__, __LINE__); | 232 | __func__, __LINE__); |
233 | return NULL; | 233 | return NULL; |
234 | } | 234 | } |
235 | 235 | ||
@@ -238,12 +238,12 @@ static char * parse_next_property(char *buf, char *end, char **name, int *length | |||
238 | *length = simple_strtoul(tmp, &tmp, 10); | 238 | *length = simple_strtoul(tmp, &tmp, 10); |
239 | if (*length == -1) { | 239 | if (*length == -1) { |
240 | printk(KERN_ERR "property parse failed in %s at line %d\n", | 240 | printk(KERN_ERR "property parse failed in %s at line %d\n", |
241 | __FUNCTION__, __LINE__); | 241 | __func__, __LINE__); |
242 | return NULL; | 242 | return NULL; |
243 | } | 243 | } |
244 | if (*tmp != ' ' || ++tmp >= end) { | 244 | if (*tmp != ' ' || ++tmp >= end) { |
245 | printk(KERN_ERR "property parse failed in %s at line %d\n", | 245 | printk(KERN_ERR "property parse failed in %s at line %d\n", |
246 | __FUNCTION__, __LINE__); | 246 | __func__, __LINE__); |
247 | return NULL; | 247 | return NULL; |
248 | } | 248 | } |
249 | 249 | ||
@@ -252,12 +252,12 @@ static char * parse_next_property(char *buf, char *end, char **name, int *length | |||
252 | tmp += *length; | 252 | tmp += *length; |
253 | if (tmp > end) { | 253 | if (tmp > end) { |
254 | printk(KERN_ERR "property parse failed in %s at line %d\n", | 254 | printk(KERN_ERR "property parse failed in %s at line %d\n", |
255 | __FUNCTION__, __LINE__); | 255 | __func__, __LINE__); |
256 | return NULL; | 256 | return NULL; |
257 | } | 257 | } |
258 | else if (tmp < end && *tmp != ' ' && *tmp != '\0') { | 258 | else if (tmp < end && *tmp != ' ' && *tmp != '\0') { |
259 | printk(KERN_ERR "property parse failed in %s at line %d\n", | 259 | printk(KERN_ERR "property parse failed in %s at line %d\n", |
260 | __FUNCTION__, __LINE__); | 260 | __func__, __LINE__); |
261 | return NULL; | 261 | return NULL; |
262 | } | 262 | } |
263 | tmp++; | 263 | tmp++; |
diff --git a/arch/powerpc/sysdev/cpm1.c b/arch/powerpc/sysdev/cpm1.c index df8bd2b64796..3eceeb5f3ee7 100644 --- a/arch/powerpc/sysdev/cpm1.c +++ b/arch/powerpc/sysdev/cpm1.c | |||
@@ -257,7 +257,7 @@ int cpm_command(u32 command, u8 opcode) | |||
257 | if ((in_be16(&cpmp->cp_cpcr) & CPM_CR_FLG) == 0) | 257 | if ((in_be16(&cpmp->cp_cpcr) & CPM_CR_FLG) == 0) |
258 | goto out; | 258 | goto out; |
259 | 259 | ||
260 | printk(KERN_ERR "%s(): Not able to issue CPM command\n", __FUNCTION__); | 260 | printk(KERN_ERR "%s(): Not able to issue CPM command\n", __func__); |
261 | ret = -EIO; | 261 | ret = -EIO; |
262 | out: | 262 | out: |
263 | spin_unlock_irqrestore(&cmd_lock, flags); | 263 | spin_unlock_irqrestore(&cmd_lock, flags); |
diff --git a/arch/powerpc/sysdev/cpm2.c b/arch/powerpc/sysdev/cpm2.c index 7be711232124..803b59cc047b 100644 --- a/arch/powerpc/sysdev/cpm2.c +++ b/arch/powerpc/sysdev/cpm2.c | |||
@@ -99,7 +99,7 @@ int cpm_command(u32 command, u8 opcode) | |||
99 | if ((in_be32(&cpmp->cp_cpcr) & CPM_CR_FLG) == 0) | 99 | if ((in_be32(&cpmp->cp_cpcr) & CPM_CR_FLG) == 0) |
100 | goto out; | 100 | goto out; |
101 | 101 | ||
102 | printk(KERN_ERR "%s(): Not able to issue CPM command\n", __FUNCTION__); | 102 | printk(KERN_ERR "%s(): Not able to issue CPM command\n", __func__); |
103 | ret = -EIO; | 103 | ret = -EIO; |
104 | out: | 104 | out: |
105 | spin_unlock_irqrestore(&cmd_lock, flags); | 105 | spin_unlock_irqrestore(&cmd_lock, flags); |
diff --git a/arch/powerpc/sysdev/qe_lib/qe_io.c b/arch/powerpc/sysdev/qe_lib/qe_io.c index e53ea4d374a0..736c1fcc9503 100644 --- a/arch/powerpc/sysdev/qe_lib/qe_io.c +++ b/arch/powerpc/sysdev/qe_lib/qe_io.c | |||
@@ -200,7 +200,7 @@ static void dump_par_io(void) | |||
200 | { | 200 | { |
201 | unsigned int i; | 201 | unsigned int i; |
202 | 202 | ||
203 | printk(KERN_INFO "%s: par_io=%p\n", __FUNCTION__, par_io); | 203 | printk(KERN_INFO "%s: par_io=%p\n", __func__, par_io); |
204 | for (i = 0; i < num_par_io_ports; i++) { | 204 | for (i = 0; i < num_par_io_ports; i++) { |
205 | printk(KERN_INFO " cpodr[%u]=%08x\n", i, | 205 | printk(KERN_INFO " cpodr[%u]=%08x\n", i, |
206 | in_be32(&par_io[i].cpodr)); | 206 | in_be32(&par_io[i].cpodr)); |
diff --git a/arch/powerpc/sysdev/qe_lib/ucc_fast.c b/arch/powerpc/sysdev/qe_lib/ucc_fast.c index 3223acbc39e5..bcf88e6ce962 100644 --- a/arch/powerpc/sysdev/qe_lib/ucc_fast.c +++ b/arch/powerpc/sysdev/qe_lib/ucc_fast.c | |||
@@ -148,57 +148,57 @@ int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** ucc | |||
148 | 148 | ||
149 | /* check if the UCC port number is in range. */ | 149 | /* check if the UCC port number is in range. */ |
150 | if ((uf_info->ucc_num < 0) || (uf_info->ucc_num > UCC_MAX_NUM - 1)) { | 150 | if ((uf_info->ucc_num < 0) || (uf_info->ucc_num > UCC_MAX_NUM - 1)) { |
151 | printk(KERN_ERR "%s: illegal UCC number\n", __FUNCTION__); | 151 | printk(KERN_ERR "%s: illegal UCC number\n", __func__); |
152 | return -EINVAL; | 152 | return -EINVAL; |
153 | } | 153 | } |
154 | 154 | ||
155 | /* Check that 'max_rx_buf_length' is properly aligned (4). */ | 155 | /* Check that 'max_rx_buf_length' is properly aligned (4). */ |
156 | if (uf_info->max_rx_buf_length & (UCC_FAST_MRBLR_ALIGNMENT - 1)) { | 156 | if (uf_info->max_rx_buf_length & (UCC_FAST_MRBLR_ALIGNMENT - 1)) { |
157 | printk(KERN_ERR "%s: max_rx_buf_length not aligned\n", | 157 | printk(KERN_ERR "%s: max_rx_buf_length not aligned\n", |
158 | __FUNCTION__); | 158 | __func__); |
159 | return -EINVAL; | 159 | return -EINVAL; |
160 | } | 160 | } |
161 | 161 | ||
162 | /* Validate Virtual Fifo register values */ | 162 | /* Validate Virtual Fifo register values */ |
163 | if (uf_info->urfs < UCC_FAST_URFS_MIN_VAL) { | 163 | if (uf_info->urfs < UCC_FAST_URFS_MIN_VAL) { |
164 | printk(KERN_ERR "%s: urfs is too small\n", __FUNCTION__); | 164 | printk(KERN_ERR "%s: urfs is too small\n", __func__); |
165 | return -EINVAL; | 165 | return -EINVAL; |
166 | } | 166 | } |
167 | 167 | ||
168 | if (uf_info->urfs & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) { | 168 | if (uf_info->urfs & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) { |
169 | printk(KERN_ERR "%s: urfs is not aligned\n", __FUNCTION__); | 169 | printk(KERN_ERR "%s: urfs is not aligned\n", __func__); |
170 | return -EINVAL; | 170 | return -EINVAL; |
171 | } | 171 | } |
172 | 172 | ||
173 | if (uf_info->urfet & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) { | 173 | if (uf_info->urfet & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) { |
174 | printk(KERN_ERR "%s: urfet is not aligned.\n", __FUNCTION__); | 174 | printk(KERN_ERR "%s: urfet is not aligned.\n", __func__); |
175 | return -EINVAL; | 175 | return -EINVAL; |
176 | } | 176 | } |
177 | 177 | ||
178 | if (uf_info->urfset & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) { | 178 | if (uf_info->urfset & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) { |
179 | printk(KERN_ERR "%s: urfset is not aligned\n", __FUNCTION__); | 179 | printk(KERN_ERR "%s: urfset is not aligned\n", __func__); |
180 | return -EINVAL; | 180 | return -EINVAL; |
181 | } | 181 | } |
182 | 182 | ||
183 | if (uf_info->utfs & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) { | 183 | if (uf_info->utfs & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) { |
184 | printk(KERN_ERR "%s: utfs is not aligned\n", __FUNCTION__); | 184 | printk(KERN_ERR "%s: utfs is not aligned\n", __func__); |
185 | return -EINVAL; | 185 | return -EINVAL; |
186 | } | 186 | } |
187 | 187 | ||
188 | if (uf_info->utfet & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) { | 188 | if (uf_info->utfet & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) { |
189 | printk(KERN_ERR "%s: utfet is not aligned\n", __FUNCTION__); | 189 | printk(KERN_ERR "%s: utfet is not aligned\n", __func__); |
190 | return -EINVAL; | 190 | return -EINVAL; |
191 | } | 191 | } |
192 | 192 | ||
193 | if (uf_info->utftt & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) { | 193 | if (uf_info->utftt & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) { |
194 | printk(KERN_ERR "%s: utftt is not aligned\n", __FUNCTION__); | 194 | printk(KERN_ERR "%s: utftt is not aligned\n", __func__); |
195 | return -EINVAL; | 195 | return -EINVAL; |
196 | } | 196 | } |
197 | 197 | ||
198 | uccf = kzalloc(sizeof(struct ucc_fast_private), GFP_KERNEL); | 198 | uccf = kzalloc(sizeof(struct ucc_fast_private), GFP_KERNEL); |
199 | if (!uccf) { | 199 | if (!uccf) { |
200 | printk(KERN_ERR "%s: Cannot allocate private data\n", | 200 | printk(KERN_ERR "%s: Cannot allocate private data\n", |
201 | __FUNCTION__); | 201 | __func__); |
202 | return -ENOMEM; | 202 | return -ENOMEM; |
203 | } | 203 | } |
204 | 204 | ||
@@ -207,7 +207,7 @@ int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** ucc | |||
207 | /* Set the PHY base address */ | 207 | /* Set the PHY base address */ |
208 | uccf->uf_regs = ioremap(uf_info->regs, sizeof(struct ucc_fast)); | 208 | uccf->uf_regs = ioremap(uf_info->regs, sizeof(struct ucc_fast)); |
209 | if (uccf->uf_regs == NULL) { | 209 | if (uccf->uf_regs == NULL) { |
210 | printk(KERN_ERR "%s: Cannot map UCC registers\n", __FUNCTION__); | 210 | printk(KERN_ERR "%s: Cannot map UCC registers\n", __func__); |
211 | return -ENOMEM; | 211 | return -ENOMEM; |
212 | } | 212 | } |
213 | 213 | ||
@@ -230,7 +230,7 @@ int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** ucc | |||
230 | /* Set UCC to fast type */ | 230 | /* Set UCC to fast type */ |
231 | ret = ucc_set_type(uf_info->ucc_num, UCC_SPEED_TYPE_FAST); | 231 | ret = ucc_set_type(uf_info->ucc_num, UCC_SPEED_TYPE_FAST); |
232 | if (ret) { | 232 | if (ret) { |
233 | printk(KERN_ERR "%s: cannot set UCC type\n", __FUNCTION__); | 233 | printk(KERN_ERR "%s: cannot set UCC type\n", __func__); |
234 | ucc_fast_free(uccf); | 234 | ucc_fast_free(uccf); |
235 | return ret; | 235 | return ret; |
236 | } | 236 | } |
@@ -270,7 +270,7 @@ int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** ucc | |||
270 | qe_muram_alloc(uf_info->utfs, UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT); | 270 | qe_muram_alloc(uf_info->utfs, UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT); |
271 | if (IS_ERR_VALUE(uccf->ucc_fast_tx_virtual_fifo_base_offset)) { | 271 | if (IS_ERR_VALUE(uccf->ucc_fast_tx_virtual_fifo_base_offset)) { |
272 | printk(KERN_ERR "%s: cannot allocate MURAM for TX FIFO\n", | 272 | printk(KERN_ERR "%s: cannot allocate MURAM for TX FIFO\n", |
273 | __FUNCTION__); | 273 | __func__); |
274 | uccf->ucc_fast_tx_virtual_fifo_base_offset = 0; | 274 | uccf->ucc_fast_tx_virtual_fifo_base_offset = 0; |
275 | ucc_fast_free(uccf); | 275 | ucc_fast_free(uccf); |
276 | return -ENOMEM; | 276 | return -ENOMEM; |
@@ -283,7 +283,7 @@ int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** ucc | |||
283 | UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT); | 283 | UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT); |
284 | if (IS_ERR_VALUE(uccf->ucc_fast_rx_virtual_fifo_base_offset)) { | 284 | if (IS_ERR_VALUE(uccf->ucc_fast_rx_virtual_fifo_base_offset)) { |
285 | printk(KERN_ERR "%s: cannot allocate MURAM for RX FIFO\n", | 285 | printk(KERN_ERR "%s: cannot allocate MURAM for RX FIFO\n", |
286 | __FUNCTION__); | 286 | __func__); |
287 | uccf->ucc_fast_rx_virtual_fifo_base_offset = 0; | 287 | uccf->ucc_fast_rx_virtual_fifo_base_offset = 0; |
288 | ucc_fast_free(uccf); | 288 | ucc_fast_free(uccf); |
289 | return -ENOMEM; | 289 | return -ENOMEM; |
@@ -314,7 +314,7 @@ int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** ucc | |||
314 | ucc_set_qe_mux_rxtx(uf_info->ucc_num, uf_info->rx_clock, | 314 | ucc_set_qe_mux_rxtx(uf_info->ucc_num, uf_info->rx_clock, |
315 | COMM_DIR_RX)) { | 315 | COMM_DIR_RX)) { |
316 | printk(KERN_ERR "%s: illegal value for RX clock\n", | 316 | printk(KERN_ERR "%s: illegal value for RX clock\n", |
317 | __FUNCTION__); | 317 | __func__); |
318 | ucc_fast_free(uccf); | 318 | ucc_fast_free(uccf); |
319 | return -EINVAL; | 319 | return -EINVAL; |
320 | } | 320 | } |
@@ -323,7 +323,7 @@ int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** ucc | |||
323 | ucc_set_qe_mux_rxtx(uf_info->ucc_num, uf_info->tx_clock, | 323 | ucc_set_qe_mux_rxtx(uf_info->ucc_num, uf_info->tx_clock, |
324 | COMM_DIR_TX)) { | 324 | COMM_DIR_TX)) { |
325 | printk(KERN_ERR "%s: illegal value for TX clock\n", | 325 | printk(KERN_ERR "%s: illegal value for TX clock\n", |
326 | __FUNCTION__); | 326 | __func__); |
327 | ucc_fast_free(uccf); | 327 | ucc_fast_free(uccf); |
328 | return -EINVAL; | 328 | return -EINVAL; |
329 | } | 329 | } |
diff --git a/arch/powerpc/sysdev/qe_lib/ucc_slow.c b/arch/powerpc/sysdev/qe_lib/ucc_slow.c index b2870b208ddb..a578bc77b9d5 100644 --- a/arch/powerpc/sysdev/qe_lib/ucc_slow.c +++ b/arch/powerpc/sysdev/qe_lib/ucc_slow.c | |||
@@ -142,7 +142,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc | |||
142 | 142 | ||
143 | /* check if the UCC port number is in range. */ | 143 | /* check if the UCC port number is in range. */ |
144 | if ((us_info->ucc_num < 0) || (us_info->ucc_num > UCC_MAX_NUM - 1)) { | 144 | if ((us_info->ucc_num < 0) || (us_info->ucc_num > UCC_MAX_NUM - 1)) { |
145 | printk(KERN_ERR "%s: illegal UCC number\n", __FUNCTION__); | 145 | printk(KERN_ERR "%s: illegal UCC number\n", __func__); |
146 | return -EINVAL; | 146 | return -EINVAL; |
147 | } | 147 | } |
148 | 148 | ||
@@ -161,7 +161,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc | |||
161 | uccs = kzalloc(sizeof(struct ucc_slow_private), GFP_KERNEL); | 161 | uccs = kzalloc(sizeof(struct ucc_slow_private), GFP_KERNEL); |
162 | if (!uccs) { | 162 | if (!uccs) { |
163 | printk(KERN_ERR "%s: Cannot allocate private data\n", | 163 | printk(KERN_ERR "%s: Cannot allocate private data\n", |
164 | __FUNCTION__); | 164 | __func__); |
165 | return -ENOMEM; | 165 | return -ENOMEM; |
166 | } | 166 | } |
167 | 167 | ||
@@ -170,7 +170,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc | |||
170 | /* Set the PHY base address */ | 170 | /* Set the PHY base address */ |
171 | uccs->us_regs = ioremap(us_info->regs, sizeof(struct ucc_slow)); | 171 | uccs->us_regs = ioremap(us_info->regs, sizeof(struct ucc_slow)); |
172 | if (uccs->us_regs == NULL) { | 172 | if (uccs->us_regs == NULL) { |
173 | printk(KERN_ERR "%s: Cannot map UCC registers\n", __FUNCTION__); | 173 | printk(KERN_ERR "%s: Cannot map UCC registers\n", __func__); |
174 | return -ENOMEM; | 174 | return -ENOMEM; |
175 | } | 175 | } |
176 | 176 | ||
@@ -189,7 +189,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc | |||
189 | uccs->us_pram_offset = | 189 | uccs->us_pram_offset = |
190 | qe_muram_alloc(UCC_SLOW_PRAM_SIZE, ALIGNMENT_OF_UCC_SLOW_PRAM); | 190 | qe_muram_alloc(UCC_SLOW_PRAM_SIZE, ALIGNMENT_OF_UCC_SLOW_PRAM); |
191 | if (IS_ERR_VALUE(uccs->us_pram_offset)) { | 191 | if (IS_ERR_VALUE(uccs->us_pram_offset)) { |
192 | printk(KERN_ERR "%s: cannot allocate MURAM for PRAM", __FUNCTION__); | 192 | printk(KERN_ERR "%s: cannot allocate MURAM for PRAM", __func__); |
193 | ucc_slow_free(uccs); | 193 | ucc_slow_free(uccs); |
194 | return -ENOMEM; | 194 | return -ENOMEM; |
195 | } | 195 | } |
@@ -202,7 +202,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc | |||
202 | /* Set UCC to slow type */ | 202 | /* Set UCC to slow type */ |
203 | ret = ucc_set_type(us_info->ucc_num, UCC_SPEED_TYPE_SLOW); | 203 | ret = ucc_set_type(us_info->ucc_num, UCC_SPEED_TYPE_SLOW); |
204 | if (ret) { | 204 | if (ret) { |
205 | printk(KERN_ERR "%s: cannot set UCC type", __FUNCTION__); | 205 | printk(KERN_ERR "%s: cannot set UCC type", __func__); |
206 | ucc_slow_free(uccs); | 206 | ucc_slow_free(uccs); |
207 | return ret; | 207 | return ret; |
208 | } | 208 | } |
@@ -216,7 +216,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc | |||
216 | qe_muram_alloc(us_info->rx_bd_ring_len * sizeof(struct qe_bd), | 216 | qe_muram_alloc(us_info->rx_bd_ring_len * sizeof(struct qe_bd), |
217 | QE_ALIGNMENT_OF_BD); | 217 | QE_ALIGNMENT_OF_BD); |
218 | if (IS_ERR_VALUE(uccs->rx_base_offset)) { | 218 | if (IS_ERR_VALUE(uccs->rx_base_offset)) { |
219 | printk(KERN_ERR "%s: cannot allocate %u RX BDs\n", __FUNCTION__, | 219 | printk(KERN_ERR "%s: cannot allocate %u RX BDs\n", __func__, |
220 | us_info->rx_bd_ring_len); | 220 | us_info->rx_bd_ring_len); |
221 | uccs->rx_base_offset = 0; | 221 | uccs->rx_base_offset = 0; |
222 | ucc_slow_free(uccs); | 222 | ucc_slow_free(uccs); |
@@ -227,7 +227,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc | |||
227 | qe_muram_alloc(us_info->tx_bd_ring_len * sizeof(struct qe_bd), | 227 | qe_muram_alloc(us_info->tx_bd_ring_len * sizeof(struct qe_bd), |
228 | QE_ALIGNMENT_OF_BD); | 228 | QE_ALIGNMENT_OF_BD); |
229 | if (IS_ERR_VALUE(uccs->tx_base_offset)) { | 229 | if (IS_ERR_VALUE(uccs->tx_base_offset)) { |
230 | printk(KERN_ERR "%s: cannot allocate TX BDs", __FUNCTION__); | 230 | printk(KERN_ERR "%s: cannot allocate TX BDs", __func__); |
231 | uccs->tx_base_offset = 0; | 231 | uccs->tx_base_offset = 0; |
232 | ucc_slow_free(uccs); | 232 | ucc_slow_free(uccs); |
233 | return -ENOMEM; | 233 | return -ENOMEM; |
@@ -317,7 +317,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc | |||
317 | if (ucc_set_qe_mux_rxtx(us_info->ucc_num, us_info->rx_clock, | 317 | if (ucc_set_qe_mux_rxtx(us_info->ucc_num, us_info->rx_clock, |
318 | COMM_DIR_RX)) { | 318 | COMM_DIR_RX)) { |
319 | printk(KERN_ERR "%s: illegal value for RX clock\n", | 319 | printk(KERN_ERR "%s: illegal value for RX clock\n", |
320 | __FUNCTION__); | 320 | __func__); |
321 | ucc_slow_free(uccs); | 321 | ucc_slow_free(uccs); |
322 | return -EINVAL; | 322 | return -EINVAL; |
323 | } | 323 | } |
@@ -325,7 +325,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc | |||
325 | if (ucc_set_qe_mux_rxtx(us_info->ucc_num, us_info->tx_clock, | 325 | if (ucc_set_qe_mux_rxtx(us_info->ucc_num, us_info->tx_clock, |
326 | COMM_DIR_TX)) { | 326 | COMM_DIR_TX)) { |
327 | printk(KERN_ERR "%s: illegal value for TX clock\n", | 327 | printk(KERN_ERR "%s: illegal value for TX clock\n", |
328 | __FUNCTION__); | 328 | __func__); |
329 | ucc_slow_free(uccs); | 329 | ucc_slow_free(uccs); |
330 | return -EINVAL; | 330 | return -EINVAL; |
331 | } | 331 | } |
diff --git a/arch/powerpc/sysdev/tsi108_dev.c b/arch/powerpc/sysdev/tsi108_dev.c index be2808a292f7..d4d15aaf18fa 100644 --- a/arch/powerpc/sysdev/tsi108_dev.c +++ b/arch/powerpc/sysdev/tsi108_dev.c | |||
@@ -84,7 +84,7 @@ static int __init tsi108_eth_of_init(void) | |||
84 | 84 | ||
85 | ret = of_address_to_resource(np, 0, &r[0]); | 85 | ret = of_address_to_resource(np, 0, &r[0]); |
86 | DBG("%s: name:start->end = %s:0x%lx-> 0x%lx\n", | 86 | DBG("%s: name:start->end = %s:0x%lx-> 0x%lx\n", |
87 | __FUNCTION__,r[0].name, r[0].start, r[0].end); | 87 | __func__,r[0].name, r[0].start, r[0].end); |
88 | if (ret) | 88 | if (ret) |
89 | goto err; | 89 | goto err; |
90 | 90 | ||
@@ -93,7 +93,7 @@ static int __init tsi108_eth_of_init(void) | |||
93 | r[1].end = irq_of_parse_and_map(np, 0); | 93 | r[1].end = irq_of_parse_and_map(np, 0); |
94 | r[1].flags = IORESOURCE_IRQ; | 94 | r[1].flags = IORESOURCE_IRQ; |
95 | DBG("%s: name:start->end = %s:0x%lx-> 0x%lx\n", | 95 | DBG("%s: name:start->end = %s:0x%lx-> 0x%lx\n", |
96 | __FUNCTION__,r[1].name, r[1].start, r[1].end); | 96 | __func__,r[1].name, r[1].start, r[1].end); |
97 | 97 | ||
98 | tsi_eth_dev = | 98 | tsi_eth_dev = |
99 | platform_device_register_simple("tsi-ethernet", i++, &r[0], | 99 | platform_device_register_simple("tsi-ethernet", i++, &r[0], |
diff --git a/arch/powerpc/sysdev/tsi108_pci.c b/arch/powerpc/sysdev/tsi108_pci.c index 31d3d33d91fc..ac1a72dc21e5 100644 --- a/arch/powerpc/sysdev/tsi108_pci.c +++ b/arch/powerpc/sysdev/tsi108_pci.c | |||
@@ -207,7 +207,7 @@ int __init tsi108_setup_pci(struct device_node *dev, u32 cfg_phys, int primary) | |||
207 | /* PCI Config mapping */ | 207 | /* PCI Config mapping */ |
208 | tsi108_pci_cfg_base = (u32)ioremap(cfg_phys, TSI108_PCI_CFG_SIZE); | 208 | tsi108_pci_cfg_base = (u32)ioremap(cfg_phys, TSI108_PCI_CFG_SIZE); |
209 | tsi108_pci_cfg_phys = cfg_phys; | 209 | tsi108_pci_cfg_phys = cfg_phys; |
210 | DBG("TSI_PCI: %s tsi108_pci_cfg_base=0x%x\n", __FUNCTION__, | 210 | DBG("TSI_PCI: %s tsi108_pci_cfg_base=0x%x\n", __func__, |
211 | tsi108_pci_cfg_base); | 211 | tsi108_pci_cfg_base); |
212 | 212 | ||
213 | /* Fetch host bridge registers address */ | 213 | /* Fetch host bridge registers address */ |
@@ -395,7 +395,7 @@ static int pci_irq_host_xlate(struct irq_host *h, struct device_node *ct, | |||
395 | static int pci_irq_host_map(struct irq_host *h, unsigned int virq, | 395 | static int pci_irq_host_map(struct irq_host *h, unsigned int virq, |
396 | irq_hw_number_t hw) | 396 | irq_hw_number_t hw) |
397 | { unsigned int irq; | 397 | { unsigned int irq; |
398 | DBG("%s(%d, 0x%lx)\n", __FUNCTION__, virq, hw); | 398 | DBG("%s(%d, 0x%lx)\n", __func__, virq, hw); |
399 | if ((virq >= 1) && (virq <= 4)){ | 399 | if ((virq >= 1) && (virq <= 4)){ |
400 | irq = virq + IRQ_PCI_INTAD_BASE - 1; | 400 | irq = virq + IRQ_PCI_INTAD_BASE - 1; |
401 | get_irq_desc(irq)->status |= IRQ_LEVEL; | 401 | get_irq_desc(irq)->status |= IRQ_LEVEL; |