[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20130926223259.GA29433@kroah.com>
Date: Thu, 26 Sep 2013 15:32:59 -0700
From: Greg KH <gregkh@...uxfoundation.org>
To: Tejun Heo <tj@...nel.org>
Cc: "Eric W. Biederman" <ebiederm@...ssion.com>,
linux-kernel@...r.kernel.org, kay@...y.org, netdev@...r.kernel.org,
lizefan@...wei.com
Subject: Re: [PATCH 7/7] sysfs: @name comes before @ns
On Wed, Sep 11, 2013 at 11:49:43PM -0400, Tejun Heo wrote:
> Hello, Eric.
>
> On Wed, Sep 11, 2013 at 08:39:27PM -0700, Eric W. Biederman wrote:
> > @ns is more significant so it should come first.
> >
> > Where do we have the backwards convention of putting @name first?
>
> Because @ns is optional and you end up with stupid stuff like
>
> sysfs_xxx_ns(@param, @ns, @name)
> sysfs_xxx(@param, @name)
>
> You put optional params after the mandatory ones. It may be difficult
> to accept for you but @ns is a *clearly* optional thing for sysfs.
Sorry Eric, but I agree with Tejun here, the optional part is @ns, not
name, so it should go at the end.
thanks,
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists