1 exporting a symbol declared as __init is bogus. additonally, suni
2 doesnt need to modify its ref counts, to quote:
4 Q: My code use "MOD_INC_USE_COUNT". Do I still need to adjust my
5 module count when someone calls one of my functions?
7 ... It could be another module using one of your
8 EXPORT_SYMBOL'ed functions, in which case you cannot be removed
9 since they would have to be removed first. ...
11 this is certainly the case for suni which is used by the various
14 Index: linux/drivers/atm/suni.c
15 ===================================================================
16 RCS file: /home/chas/CVSROOT/linux/drivers/atm/suni.c,v
17 retrieving revision 1.1
18 retrieving revision 1.3
20 --- linux/drivers/atm/suni.c 20 Feb 2003 13:45:03 -0000 1.1
21 +++ linux/drivers/atm/suni.c 26 Feb 2003 15:43:30 -0000 1.3
23 if (!(PRIV(dev) = kmalloc(sizeof(struct suni_priv),GFP_KERNEL)))
29 spin_lock_irqsave(&sunis_lock,flags);
32 spin_unlock_irqrestore(&sunis_lock,flags);
43 -int __init suni_init(struct atm_dev *dev)
44 +int suni_init(struct atm_dev *dev)
49 To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
50 the body of a message to majordomo@vger.kernel.org
51 More majordomo info at http://vger.kernel.org/majordomo-info.html
52 Please read the FAQ at http://www.tux.org/lkml/