Skip to content

Commit f85e7cd

Browse files
hharrisontorvalds
authored andcommitted
m68k: replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 6feef6e commit f85e7cd

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎arch/m68k/kernel/ints.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ int setup_irq(unsigned int irq, struct irq_node *node)
186186

187187
if (irq >= NR_IRQS || !(contr = irq_controller[irq])) {
188188
printk("%s: Incorrect IRQ %d from %s\n",
189-
__FUNCTION__, irq, node->devname);
189+
__func__, irq, node->devname);
190190
return -ENXIO;
191191
}
192192

@@ -249,7 +249,7 @@ void free_irq(unsigned int irq, void *dev_id)
249249
unsigned long flags;
250250

251251
if (irq >= NR_IRQS || !(contr = irq_controller[irq])) {
252-
printk("%s: Incorrect IRQ %d\n", __FUNCTION__, irq);
252+
printk("%s: Incorrect IRQ %d\n", __func__, irq);
253253
return;
254254
}
255255

@@ -267,7 +267,7 @@ void free_irq(unsigned int irq, void *dev_id)
267267
node->handler = NULL;
268268
} else
269269
printk("%s: Removing probably wrong IRQ %d\n",
270-
__FUNCTION__, irq);
270+
__func__, irq);
271271

272272
if (!irq_list[irq]) {
273273
if (contr->shutdown)
@@ -288,7 +288,7 @@ void enable_irq(unsigned int irq)
288288

289289
if (irq >= NR_IRQS || !(contr = irq_controller[irq])) {
290290
printk("%s: Incorrect IRQ %d\n",
291-
__FUNCTION__, irq);
291+
__func__, irq);
292292
return;
293293
}
294294

@@ -312,7 +312,7 @@ void disable_irq(unsigned int irq)
312312

313313
if (irq >= NR_IRQS || !(contr = irq_controller[irq])) {
314314
printk("%s: Incorrect IRQ %d\n",
315-
__FUNCTION__, irq);
315+
__func__, irq);
316316
return;
317317
}
318318

‎arch/m68k/mac/oss.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ void oss_irq_enable(int irq) {
190190
break;
191191
#ifdef DEBUG_IRQUSE
192192
default:
193-
printk("%s unknown irq %d\n",__FUNCTION__, irq);
193+
printk("%s unknown irq %d\n", __func__, irq);
194194
break;
195195
#endif
196196
}
@@ -230,7 +230,7 @@ void oss_irq_disable(int irq) {
230230
break;
231231
#ifdef DEBUG_IRQUSE
232232
default:
233-
printk("%s unknown irq %d\n", __FUNCTION__, irq);
233+
printk("%s unknown irq %d\n", __func__, irq);
234234
break;
235235
#endif
236236
}

‎arch/m68k/q40/q40ints.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static int q40_irq_startup(unsigned int irq)
4747
switch (irq) {
4848
case 1: case 2: case 8: case 9:
4949
case 11: case 12: case 13:
50-
printk("%s: ISA IRQ %d not implemented by HW\n", __FUNCTION__, irq);
50+
printk("%s: ISA IRQ %d not implemented by HW\n", __func__, irq);
5151
return -ENXIO;
5252
}
5353
return 0;

0 commit comments

Comments
 (0)