Skip to contentSkip to conversation

net: sh_eth: fix the compile error

PATCH Applied Yoshihiro Shimoda 2 participants 2 messages Aug 23, 2011 – Aug 26, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: sh_eth: fix the compile error

Fix the following build error:

CC drivers/net/sh_eth.o
drivers/net/sh_eth.c:1115: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sh_eth_interrupt’ drivers/net/sh_eth.c: In function ‘sh_eth_open’:
drivers/net/sh_eth.c:1387: error: implicit declaration of function ‘request_irq’ drivers/net/sh_eth.c:1387: error: ‘sh_eth_interrupt’ undeclared (first use in this function) drivers/net/sh_eth.c:1387: error: (Each undeclared identifier is reported only once drivers/net/sh_eth.c:1387: error: for each function it appears in.) drivers/net/sh_eth.c:1391: error: ‘IRQF_SHARED’ undeclared (first use in this function) drivers/net/sh_eth.c:1424: error: implicit declaration of function ‘free_irq’
make[2]: *** [drivers/net/sh_eth.o] Error 1

---
 drivers/net/sh_eth.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/sh_eth.c +1 -0
index ad35c21..f6de45b 100644
@@ -30,6 +30,7 @@
 #include <linux/phy.h>
 #include <linux/cache.h>
 #include <linux/io.h>
+#include <linux/interrupt.h>
 #include <linux/pm_runtime.h>
 #include <linux/slab.h>
 #include <linux/ethtool.h>
Signature · 1 line
1.7.1
maintainer Applied
#1 lore raw

From: Yoshihiro Shimoda <[email protected]>
Date: Tue, 23 Aug 2011 18:26:33 +0900

Quoted 13 lines

Fix the following build error:

CC drivers/net/sh_eth.o
drivers/net/sh_eth.c:1115: error: expected ¡=¢, ¡,¢, ¡;¢, ¡asm¢ or ¡__attribute__¢ before ¡sh_eth_interrupt¢ drivers/net/sh_eth.c: In function ¡sh_eth_open¢:
drivers/net/sh_eth.c:1387: error: implicit declaration of function ¡request_irq¢ drivers/net/sh_eth.c:1387: error: ¡sh_eth_interrupt¢ undeclared (first use in this function) drivers/net/sh_eth.c:1387: error: (Each undeclared identifier is reported only once drivers/net/sh_eth.c:1387: error: for each function it appears in.) drivers/net/sh_eth.c:1391: error: ¡IRQF_SHARED¢ undeclared (first use in this function) drivers/net/sh_eth.c:1424: error: implicit declaration of function ¡free_irq¢
make[2]: *** [drivers/net/sh_eth.o] Error 1

Quoted 1 line

Applied. ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ¥Šwÿº{.nÇ+‰·¥Š{±şÈÿŠ{ayºʇڙë,j­¢f£¢·hš�ï�êÿ‘êçz_è®(­éš�Šİ¢j"�ú¶m§ÿÿ¾«şG«�éÿ¢¸?™¨è­Ú&£ø§~�á