* [2.6 patch] eth1394: remove an inline
@ 2004-07-13 0:27 Adrian Bunk
2004-07-13 3:41 ` Steve Kinneberg
0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2004-07-13 0:27 UTC (permalink / raw)
To: bcollins; +Cc: linux1394-devel, linux-kernel
Trying to compile drivers/ieee1394/eth1394.c with gcc 3.4 and
# define inline __inline__ __attribute__((always_inline))
results in the following compile error:
<-- snip -->
...
CC drivers/ieee1394/eth1394.o
drivers/ieee1394/eth1394.c: In function `eth1394_remove':
drivers/ieee1394/eth1394.c:189: sorry, unimplemented: inlining failed in
call to 'purge_partial_datagram': function body not available
drivers/ieee1394/eth1394.c:403: sorry, unimplemented: called from here
make[2]: *** [drivers/ieee1394/eth1394.o] Error 1
<-- snip -->
The patch below removes the purge_partial_datagram inline from eth1394.c .
An alternative approach to removing the inline would be to move the
function above the first function calling it.
diffstat output:
drivers/ieee1394/eth1394.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
--- linux-2.6.7-mm7-full-gcc3.4/drivers/ieee1394/eth1394.c.old 2004-07-13 02:21:05.000000000 +0200
+++ linux-2.6.7-mm7-full-gcc3.4/drivers/ieee1394/eth1394.c 2004-07-13 02:23:35.000000000 +0200
@@ -186,7 +186,7 @@
unsigned char * haddr);
static int ether1394_mac_addr(struct net_device *dev, void *p);
-static inline void purge_partial_datagram(struct list_head *old);
+static void purge_partial_datagram(struct list_head *old);
static int ether1394_tx(struct sk_buff *skb, struct net_device *dev);
static void ether1394_iso(struct hpsb_iso *iso);
@@ -1081,7 +1081,7 @@
return 0;
}
-static inline void purge_partial_datagram(struct list_head *old)
+static void purge_partial_datagram(struct list_head *old)
{
struct partial_datagram *pd = list_entry(old, struct partial_datagram, list);
struct list_head *lh, *n;
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [2.6 patch] eth1394: remove an inline
2004-07-13 0:27 [2.6 patch] eth1394: remove an inline Adrian Bunk
@ 2004-07-13 3:41 ` Steve Kinneberg
0 siblings, 0 replies; 2+ messages in thread
From: Steve Kinneberg @ 2004-07-13 3:41 UTC (permalink / raw)
To: Adrian Bunk; +Cc: Ben Collins, linux1394-devel, linux-kernel
On Mon, 2004-07-12 at 17:27, Adrian Bunk wrote:
> Trying to compile drivers/ieee1394/eth1394.c with gcc 3.4 and
> # define inline __inline__ __attribute__((always_inline))
> results in the following compile error:
>
> <-- snip -->
>
> ...
> CC drivers/ieee1394/eth1394.o
> drivers/ieee1394/eth1394.c: In function `eth1394_remove':
> drivers/ieee1394/eth1394.c:189: sorry, unimplemented: inlining failed in
> call to 'purge_partial_datagram': function body not available
> drivers/ieee1394/eth1394.c:403: sorry, unimplemented: called from here
> make[2]: *** [drivers/ieee1394/eth1394.o] Error 1
>
> <-- snip -->
Thanks. Patch committed.
--
Steve Kinneberg
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-07-13 3:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-13 0:27 [2.6 patch] eth1394: remove an inline Adrian Bunk
2004-07-13 3:41 ` Steve Kinneberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox