From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 29 Nov 2011 07:09:24 +0100 From: Andrew Lunn Message-ID: <20111129060924.GF13600@lunn.ch> References: <201111290028.01655.lindner_marek@yahoo.de> <1322497717-21268-2-git-send-email-lindner_marek@yahoo.de> <20111128190245.GE13600@lunn.ch> <201111290345.29771.lindner_marek@yahoo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201111290345.29771.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCH 2/3] batman-adv: convert batman iv algorithm to use dynamic infrastructure Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The list for a Better Approach To Mobile Ad-hoc Networking 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? Andrew