From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264701AbUG2OGz (ORCPT ); Thu, 29 Jul 2004 10:06:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264726AbUG2OGF (ORCPT ); Thu, 29 Jul 2004 10:06:05 -0400 Received: from hermes.fachschaften.tu-muenchen.de ([129.187.202.12]:33532 "HELO hermes.fachschaften.tu-muenchen.de") by vger.kernel.org with SMTP id S264701AbUG2OFp (ORCPT ); Thu, 29 Jul 2004 10:05:45 -0400 Date: Thu, 29 Jul 2004 16:05:36 +0200 From: Adrian Bunk To: jgarzik@pobox.com, Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-net@vger.kernel.org Subject: [2.6 patch] net/hamachi.c: remove bogus inline at function prototype (fwd) Message-ID: <20040729140535.GU2349@fs.tum.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org FYI: The patch forwarded below is still required in 2.6.8-rc2-mm1. ----- Forwarded message from Adrian Bunk ----- Date: Wed, 14 Jul 2004 23:52:56 +0200 From: Adrian Bunk To: jgarzik@pobox.com Cc: linux-kernel@vger.kernel.org, linux-net@vger.kernel.org Subject: [2.6 patch] 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. Signed-off-by: Adrian Bunk --- linux-2.6.7-mm6-full-gcc3.4/drivers/net/hamachi.c.old 2004-07-09 00:28:31.000000000 +0200 +++ linux-2.6.7-mm6-full-gcc3.4/drivers/net/hamachi.c 2004-07-09 00:30:18.000000000 +0200 @@ -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); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ----- End forwarded message -----