Skip to contentSkip to conversation

can: fix bfin_can build error after alloc_candev() change

PATCH Applied Mike Frysinger 3 participants 4 messages Mar 8, 2010 CAN network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 can: fix bfin_can build error after alloc_candev() change

From: Barry Song <[email protected]>

Looks like commit a6e4bc530403 didn't include updates to drivers so the Blackfin CAN driver fails to build now.

---
 drivers/net/can/bfin_can.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/net/can/bfin_can.c +2 -1
index 680060d..fe10a17 100644
@@ -27,6 +27,7 @@
 
 #define DRV_NAME "bfin_can"
 #define BFIN_CAN_TIMEOUT 100
+#define TX_ECHO_SKB_MAX  1
 
 /*
  * bfin can private data
@@ -507,7 +508,7 @@ struct net_device *alloc_bfin_candev(void)
 	struct net_device *dev;
 	struct bfin_can_priv *priv;
 
-	dev = alloc_candev(sizeof(*priv));
+	dev = alloc_candev(sizeof(*priv), TX_ECHO_SKB_MAX);
 	if (!dev)
 		return NULL;
 
Signature · 1 line
1.7.0
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Mike Frysinger

From: Barry Song <[email protected]>

Looks like commit a6e4bc530403 didn't include updates to drivers so the Blackfin CAN driver fails to build now.

Oops, it did include updates for the drivers but at that time the bfin driver was not yet mainline but somewhere in the patch pipeline.

Applied
#2 lore raw

From: Wolfgang Grandegger <[email protected]>
Date: Mon, 08 Mar 2010 20:47:44 +0100

Quoted 6 lines
Quoted 5 lines · Mike Frysinger

From: Barry Song <[email protected]>

Looks like commit a6e4bc530403 didn't include updates to drivers so the Blackfin CAN driver fails to build now.

Quoted 7 lines
Quoted 2 lines

Oops, it did include updates for the drivers but at that time the bfin driver was not yet mainline but somewhere in the patch pipeline.

Applied.

Wolfgang et al., can we add netdev to the MAINTAINERS entry for CAN stuff so that I don't miss stuff like this?

#3 lore raw
Quoted 14 lines · David Miller

From: Wolfgang Grandegger <[email protected]>
Date: Mon, 08 Mar 2010 20:47:44 +0100

Quoted 11 lines
Quoted 7 lines · Mike Frysinger

From: Barry Song <[email protected]>

Looks like commit a6e4bc530403 didn't include updates to drivers so the Blackfin CAN driver fails to build now.

Oops, it did include updates for the drivers but at that time the bfin driver was not yet mainline but somewhere in the patch pipeline.

Quoted 6 lines
Quoted 1 line

Applied.

Wolfgang et al., can we add netdev to the MAINTAINERS entry for CAN stuff so that I don't miss stuff like this?

I see. Just sent a patch for net-2.6 adding "L: [email protected]".

Wolfgang.