Skip to content

Commit 2a2cf6b

Browse files
hharrisonheicarst
authored andcommitted
[S390] replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
1 parent 1e42f32 commit 2a2cf6b

10 files changed

Lines changed: 236 additions & 237 deletions

File tree

‎drivers/s390/block/dasd.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -980,12 +980,12 @@ void dasd_int_handler(struct ccw_device *cdev, unsigned long intparm,
980980
break;
981981
case -ETIMEDOUT:
982982
printk(KERN_WARNING"%s(%s): request timed out\n",
983-
__FUNCTION__, cdev->dev.bus_id);
983+
__func__, cdev->dev.bus_id);
984984
//FIXME - dasd uses own timeout interface...
985985
break;
986986
default:
987987
printk(KERN_WARNING"%s(%s): unknown error %ld\n",
988-
__FUNCTION__, cdev->dev.bus_id, PTR_ERR(irb));
988+
__func__, cdev->dev.bus_id, PTR_ERR(irb));
989989
}
990990
return;
991991
}

‎drivers/s390/char/tape_34xx.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ tape_34xx_unit_check(struct tape_device *device, struct tape_request *request,
394394
return tape_34xx_erp_failed(request, -ENOSPC);
395395
default:
396396
PRINT_ERR("Invalid op in %s:%i\n",
397-
__FUNCTION__, __LINE__);
397+
__func__, __LINE__);
398398
return tape_34xx_erp_failed(request, 0);
399399
}
400400
}

‎drivers/s390/char/vmwatchdog.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static int vmwdt_keepalive(void)
9696

9797
if (ret) {
9898
printk(KERN_WARNING "%s: problem setting interval %d, "
99-
"cmd %s\n", __FUNCTION__, vmwdt_interval,
99+
"cmd %s\n", __func__, vmwdt_interval,
100100
vmwdt_cmd);
101101
}
102102
return ret;
@@ -107,7 +107,7 @@ static int vmwdt_disable(void)
107107
int ret = __diag288(wdt_cancel, 0, "", 0);
108108
if (ret) {
109109
printk(KERN_WARNING "%s: problem disabling watchdog\n",
110-
__FUNCTION__);
110+
__func__);
111111
}
112112
return ret;
113113
}

‎drivers/s390/char/zcore.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ static int __init init_cpu_info(enum arch_id arch)
224224

225225
sa = kmalloc(sizeof(*sa), GFP_KERNEL);
226226
if (!sa) {
227-
ERROR_MSG("kmalloc failed: %s: %i\n",__FUNCTION__, __LINE__);
227+
ERROR_MSG("kmalloc failed: %s: %i\n",__func__, __LINE__);
228228
return -ENOMEM;
229229
}
230230
if (memcpy_hsa_kernel(sa, sys_info.sa_base, sys_info.sa_size) < 0) {

‎drivers/s390/cio/device_status.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ ccw_device_path_notoper(struct ccw_device *cdev)
6262
stsch (sch->schid, &sch->schib);
6363

6464
CIO_MSG_EVENT(0, "%s(0.%x.%04x) - path(s) %02x are "
65-
"not operational \n", __FUNCTION__,
65+
"not operational \n", __func__,
6666
sch->schid.ssid, sch->schid.sch_no,
6767
sch->schib.pmcw.pnom);
6868

‎drivers/s390/crypto/zcrypt_api.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@
4343
#define DEV_NAME "zcrypt"
4444

4545
#define PRINTK(fmt, args...) \
46-
printk(KERN_DEBUG DEV_NAME ": %s -> " fmt, __FUNCTION__ , ## args)
46+
printk(KERN_DEBUG DEV_NAME ": %s -> " fmt, __func__ , ## args)
4747
#define PRINTKN(fmt, args...) \
4848
printk(KERN_DEBUG DEV_NAME ": " fmt, ## args)
4949
#define PRINTKW(fmt, args...) \
50-
printk(KERN_WARNING DEV_NAME ": %s -> " fmt, __FUNCTION__ , ## args)
50+
printk(KERN_WARNING DEV_NAME ": %s -> " fmt, __func__ , ## args)
5151
#define PRINTKC(fmt, args...) \
52-
printk(KERN_CRIT DEV_NAME ": %s -> " fmt, __FUNCTION__ , ## args)
52+
printk(KERN_CRIT DEV_NAME ": %s -> " fmt, __func__ , ## args)
5353

5454
#ifdef ZCRYPT_DEBUG
5555
#define PDEBUG(fmt, args...) \
56-
printk(KERN_DEBUG DEV_NAME ": %s -> " fmt, __FUNCTION__ , ## args)
56+
printk(KERN_DEBUG DEV_NAME ": %s -> " fmt, __func__ , ## args)
5757
#else
5858
#define PDEBUG(fmt, args...) do {} while (0)
5959
#endif

0 commit comments

Comments
 (0)