Skip to contentSkip to conversation

Export symbols for sunvnet and sunvdc to be built modular

SPARC64 Ben Collins 2 participants 3 messages Nov 29, 2007 – Dec 4, 2007

lore
Share & tools
lore
#0 lore raw

Fixes this build failure:

ERROR: "vio_driver_init" [drivers/net/sunvnet.ko] undefined!
ERROR: "vio_driver_init" [drivers/block/sunvdc.ko] undefined!
ERROR: "ldc_map_sg" [drivers/block/sunvdc.ko] undefined!

arch/sparc64/kernel/ldc.c +1 -0
index cbe6fa2..be80948 100644
@@ -2105,6 +2105,7 @@ int ldc_map_sg(struct ldc_channel *lp,
 
 	return state.nc;
 }
+EXPORT_SYMBOL(ldc_map_sg);
 
 int ldc_map_single(struct ldc_channel *lp,
 		   void *buf, unsigned int len,
arch/sparc64/kernel/viohs.c +1 -0
index eeeb5ed..708fa17 100644
@@ -819,3 +819,4 @@ int vio_driver_init(struct vio_driver_state *vio, struct vio_dev *vdev,
 
 	return 0;
 }
+EXPORT_SYMBOL(vio_driver_init);
Signature · 3 lines
Ubuntu   : http://www.ubuntu.com/
Linux1394: http://wiki.linux1394.org/
SwissDisk: http://www.swissdisk.com/
#1 lore raw

From: Ben Collins <[email protected]>
Date: Thu, 29 Nov 2007 17:02:10 -0500

Quoted 7 lines

Fixes this build failure:

ERROR: "vio_driver_init" [drivers/net/sunvnet.ko] undefined!
ERROR: "vio_driver_init" [drivers/block/sunvdc.ko] undefined!
ERROR: "ldc_map_sg" [drivers/block/sunvdc.ko] undefined!

Please check what you are patching against.

Every 2.6.x tree I have access to has these exports in the precise locations you are adding them.

I suspect you have some local change intergration issue in the tree where you encountered this build error.

#2 lore raw
Quoted 11 lines · David Miller

From: Ben Collins <[email protected]>
Date: Thu, 29 Nov 2007 17:02:10 -0500

Quoted 7 lines

Fixes this build failure:

ERROR: "vio_driver_init" [drivers/net/sunvnet.ko] undefined!
ERROR: "vio_driver_init" [drivers/block/sunvdc.ko] undefined!
ERROR: "ldc_map_sg" [drivers/block/sunvdc.ko] undefined!

Quoted 7 lines

Please check what you are patching against.

Every 2.6.x tree I have access to has these exports in the precise locations you are adding them.

I suspect you have some local change intergration issue in the tree where you encountered this build error.

I was pretty sure I diff'd the tree I have against linux-2.6/master, but maybe not.

Thanks

Signature · 3 lines
Ubuntu   : http://www.ubuntu.com/
Linux1394: http://wiki.linux1394.org/
SwissDisk: http://www.swissdisk.com/