Re: [B.A.T.M.A.N.] [PATCH 2/3] batman-adv: convert batman iv algorithm to use dynamic infrastructure

Marek Lindner
2011-11-28T19:45:29Z

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 ..

Cheers,
Marek