Skip to content

Commit eecd585

Browse files
hharrisontorvalds
authored andcommitted
firmware: replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Cc: Doug Warzecha <Douglas_Warzecha@dell.com> Cc: Matt Domsch <Matt_Domsch@dell.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 7d195a5 commit eecd585

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

‎drivers/firmware/dcdbas.c‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static void smi_data_buf_free(void)
6363
return;
6464

6565
dev_dbg(&dcdbas_pdev->dev, "%s: phys: %x size: %lu\n",
66-
__FUNCTION__, smi_data_buf_phys_addr, smi_data_buf_size);
66+
__func__, smi_data_buf_phys_addr, smi_data_buf_size);
6767

6868
dma_free_coherent(&dcdbas_pdev->dev, smi_data_buf_size, smi_data_buf,
6969
smi_data_buf_handle);
@@ -92,7 +92,7 @@ static int smi_data_buf_realloc(unsigned long size)
9292
if (!buf) {
9393
dev_dbg(&dcdbas_pdev->dev,
9494
"%s: failed to allocate memory size %lu\n",
95-
__FUNCTION__, size);
95+
__func__, size);
9696
return -ENOMEM;
9797
}
9898
/* memory zeroed by dma_alloc_coherent */
@@ -110,7 +110,7 @@ static int smi_data_buf_realloc(unsigned long size)
110110
smi_data_buf_size = size;
111111

112112
dev_dbg(&dcdbas_pdev->dev, "%s: phys: %x size: %lu\n",
113-
__FUNCTION__, smi_data_buf_phys_addr, smi_data_buf_size);
113+
__func__, smi_data_buf_phys_addr, smi_data_buf_size);
114114

115115
return 0;
116116
}
@@ -258,7 +258,7 @@ static int smi_request(struct smi_cmd *smi_cmd)
258258

259259
if (smi_cmd->magic != SMI_CMD_MAGIC) {
260260
dev_info(&dcdbas_pdev->dev, "%s: invalid magic value\n",
261-
__FUNCTION__);
261+
__func__);
262262
return -EBADR;
263263
}
264264

@@ -267,7 +267,7 @@ static int smi_request(struct smi_cmd *smi_cmd)
267267
set_cpus_allowed_ptr(current, &cpumask_of_cpu(0));
268268
if (smp_processor_id() != 0) {
269269
dev_dbg(&dcdbas_pdev->dev, "%s: failed to get CPU 0\n",
270-
__FUNCTION__);
270+
__func__);
271271
ret = -EBUSY;
272272
goto out;
273273
}
@@ -428,7 +428,7 @@ static int host_control_smi(void)
428428

429429
default:
430430
dev_dbg(&dcdbas_pdev->dev, "%s: invalid SMI type %u\n",
431-
__FUNCTION__, host_control_smi_type);
431+
__func__, host_control_smi_type);
432432
return -ENOSYS;
433433
}
434434

@@ -456,13 +456,13 @@ static void dcdbas_host_control(void)
456456
host_control_action = HC_ACTION_NONE;
457457

458458
if (!smi_data_buf) {
459-
dev_dbg(&dcdbas_pdev->dev, "%s: no SMI buffer\n", __FUNCTION__);
459+
dev_dbg(&dcdbas_pdev->dev, "%s: no SMI buffer\n", __func__);
460460
return;
461461
}
462462

463463
if (smi_data_buf_size < sizeof(struct apm_cmd)) {
464464
dev_dbg(&dcdbas_pdev->dev, "%s: SMI buffer too small\n",
465-
__FUNCTION__);
465+
__func__);
466466
return;
467467
}
468468

‎drivers/firmware/dell_rbu.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ static int create_packet(void *data, size_t length)
123123
if (!newpacket) {
124124
printk(KERN_WARNING
125125
"dell_rbu:%s: failed to allocate new "
126-
"packet\n", __FUNCTION__);
126+
"packet\n", __func__);
127127
retval = -ENOMEM;
128128
spin_lock(&rbu_data.lock);
129129
goto out_noalloc;
@@ -152,7 +152,7 @@ static int create_packet(void *data, size_t length)
152152
printk(KERN_WARNING
153153
"dell_rbu:%s: failed to allocate "
154154
"invalid_addr_packet_array \n",
155-
__FUNCTION__);
155+
__func__);
156156
retval = -ENOMEM;
157157
spin_lock(&rbu_data.lock);
158158
goto out_alloc_packet;
@@ -164,7 +164,7 @@ static int create_packet(void *data, size_t length)
164164
if (!packet_data_temp_buf) {
165165
printk(KERN_WARNING
166166
"dell_rbu:%s: failed to allocate new "
167-
"packet\n", __FUNCTION__);
167+
"packet\n", __func__);
168168
retval = -ENOMEM;
169169
spin_lock(&rbu_data.lock);
170170
goto out_alloc_packet_array;
@@ -416,7 +416,7 @@ static int img_update_realloc(unsigned long size)
416416
*/
417417
if ((size != 0) && (rbu_data.image_update_buffer == NULL)) {
418418
printk(KERN_ERR "dell_rbu:%s: corruption "
419-
"check failed\n", __FUNCTION__);
419+
"check failed\n", __func__);
420420
return -EINVAL;
421421
}
422422
/*
@@ -642,7 +642,7 @@ static ssize_t write_rbu_image_type(struct kobject *kobj,
642642
if (req_firm_rc) {
643643
printk(KERN_ERR
644644
"dell_rbu:%s request_firmware_nowait"
645-
" failed %d\n", __FUNCTION__, rc);
645+
" failed %d\n", __func__, rc);
646646
rc = -EIO;
647647
} else
648648
rbu_data.entry_created = 1;
@@ -718,7 +718,7 @@ static int __init dcdrbu_init(void)
718718
if (IS_ERR(rbu_device)) {
719719
printk(KERN_ERR
720720
"dell_rbu:%s:platform_device_register_simple "
721-
"failed\n", __FUNCTION__);
721+
"failed\n", __func__);
722722
return PTR_ERR(rbu_device);
723723
}
724724

0 commit comments

Comments
 (0)