On Tuesday, November 29, 2011 14:09:24 Andrew Lunn wrote:
On Tue, Nov 29, 2011 at 03:45:29AM +0800, Marek Lindner wrote:
On Tuesday, November 29, 2011 03:02:45 Andrew Lunn wrote:
+static struct bat_algo bat_algo_iv __read_mostly = {
.name = "BATMAN IV",
- .bat_ogm_init = bat_ogm_init,
- .bat_ogm_init_primary = bat_ogm_init_primary,
- .bat_ogm_update_mac = bat_ogm_update_mac,
- .bat_ogm_schedule = bat_ogm_schedule,
- .bat_ogm_emit = bat_ogm_emit,
- .bat_ogm_receive = bat_ogm_receive,
};
This needs an .owner = THIS_MODULE,
so you can do reference counting on the module.
It is not a separate module ..
Which leads to the question, why is it not a separate module?
Why should it be ?
Cheers, Marek