netdev
[Top] [All Lists]

[2.6 patch] net/core/pktgen.c: make a function static

To: Robert Olsson <robert.olsson@xxxxxxxxx>
Subject: [2.6 patch] net/core/pktgen.c: make a function static
From: Adrian Bunk <bunk@xxxxxxxxx>
Date: Tue, 15 Mar 2005 15:49:07 +0100
Cc: "David S. Miller" <davem@xxxxxxxxxxxxx>, netdev@xxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.6+20040907i
pktgen_xmit is already inline but not static.

This doesn't make much sense - especially since there's no external user 
of this function.

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

--- linux-2.6.11-mm3-full/net/core/pktgen.c.old 2005-03-15 13:25:04.000000000 
+0100
+++ linux-2.6.11-mm3-full/net/core/pktgen.c     2005-03-15 13:25:20.000000000 
+0100
@@ -2587,7 +2587,7 @@
         thread_unlock();
 }
 
-__inline__ void pktgen_xmit(struct pktgen_dev *pkt_dev)
+static inline void pktgen_xmit(struct pktgen_dev *pkt_dev)
 {
        struct net_device *odev = NULL;
        __u64 idle_start = 0;


<Prev in Thread] Current Thread [Next in Thread>
  • [2.6 patch] net/core/pktgen.c: make a function static, Adrian Bunk <=