Skip to contentSkip to conversation

net/hamachi.c: remove bogus inline at function prototype

PATCH New Adrian Bunk 1 participant 1 message Jul 14, 2004 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/hamachi.c: remove bogus inline at function prototype

Trying to compile drivers/net/hamachi.c in 2.6.8-rc1-mm1 using gcc 3.4 results in the folloeing compile error:

<-- snip -->

...
CC drivers/net/hamachi.o
drivers/net/hamachi.c: In function `hamachi_interrupt':
drivers/net/hamachi.c:562: sorry, unimplemented: inlining failed in call to 'hamachi_rx': function body not available drivers/net/hamachi.c:1402: sorry, unimplemented: called from here make[2]: *** [drivers/net/hamachi.o] Error 1

<-- snip -->

The inline at the prototype is bogus since the function itself is not marked as inline.

drivers/net/hamachi.c renamed from drivers/net/hamachi.c.old +1 -1
@@ -559,7 +559,7 @@
 static void hamachi_init_ring(struct net_device *dev);
 static int hamachi_start_xmit(struct sk_buff *skb, struct net_device *dev);
 static irqreturn_t hamachi_interrupt(int irq, void *dev_instance, struct pt_regs *regs);
-static inline int hamachi_rx(struct net_device *dev);
+static int hamachi_rx(struct net_device *dev);
 static inline int hamachi_tx(struct net_device *dev);
 static void hamachi_error(struct net_device *dev, int intr_status);
 static int hamachi_close(struct net_device *dev);