All of lore.kernel.org
 help / color / mirror / Atom feed
* ibmveth inlining failure.
@ 2005-02-03  5:26 Dave Jones
  0 siblings, 0 replies; only message in thread
From: Dave Jones @ 2005-02-03  5:26 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel

Yet another ppc64 build failure..
Move the function before its first usage, and the failure goes away.

Signed-off-by: Dave Jones <davej@redhat.com>

--- linux-2.6.10/drivers/net/ibmveth.c~	2005-01-12 16:03:14.000000000 -0500
+++ linux-2.6.10/drivers/net/ibmveth.c	2005-01-12 16:03:37.000000000 -0500
@@ -260,6 +260,15 @@ static inline int ibmveth_is_replenishin
 		(atomic_read(&adapter->rx_buff_pool[2].available) < adapter->rx_buff_pool[2].threshold));
 }
 
+/* kick the replenish tasklet if we need replenishing and it isn't already running */
+static inline void ibmveth_schedule_replenishing(struct ibmveth_adapter *adapter)
+{
+	if(ibmveth_is_replenishing_needed(adapter) && 
+	   (atomic_dec_if_positive(&adapter->not_replenishing) == 0)) {	
+		schedule_work(&adapter->replenish_task);
+	}
+}
+
 /* replenish tasklet routine */
 static void ibmveth_replenish_task(struct ibmveth_adapter *adapter) 
 {
@@ -276,15 +285,6 @@ static void ibmveth_replenish_task(struc
 	ibmveth_schedule_replenishing(adapter);
 }
 
-/* kick the replenish tasklet if we need replenishing and it isn't already running */
-static inline void ibmveth_schedule_replenishing(struct ibmveth_adapter *adapter)
-{
-	if(ibmveth_is_replenishing_needed(adapter) && 
-	   (atomic_dec_if_positive(&adapter->not_replenishing) == 0)) {	
-		schedule_work(&adapter->replenish_task);
-	}
-}
-
 /* empty and free ana buffer pool - also used to do cleanup in error paths */
 static void ibmveth_free_buffer_pool(struct ibmveth_adapter *adapter, struct ibmveth_buff_pool *pool)
 {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-02-03  5:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-03  5:26 ibmveth inlining failure Dave Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.