[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CALnjE+o1SNmsDHACayosU8AwEekdcc-6WNdvtgSun01FTvdn6g@mail.gmail.com>
Date: Fri, 23 Aug 2013 10:05:52 -0700
From: Pravin Shelar <pshelar@...ira.com>
To: Johannes Berg <johannes@...solutions.net>
Cc: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Jesse Gross <jesse@...ira.com>
Subject: Re: [PATCH 2/2] genl: Hold reference on correct module while netlink-dump.
On Fri, Aug 23, 2013 at 12:23 AM, Johannes Berg
<johannes@...solutions.net> wrote:
>
>> +extern int __genl_register_family(struct genl_family *family, struct module *module);
>
> Why add an extra argument instead of just assigning family->module in
> the inline wrapper(s):
>
> static inline int genl_register_family(struct genl_family *family)
> {
> family->module = THIS_MODULE;
> return __genl_register_family(family);
> }
>
This is better, I will send updated patch.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists