[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20181228091726.GA22551@hsj-Precision-5520>
Date:   Fri, 28 Dec 2018 17:17:26 +0800
From:   Huang Shijie <sjhuang@...vatar.ai>
To:     Christoph Hellwig <hch@....de>
CC:     <akpm@...ux-foundation.org>, <linux@...linux.org.uk>,
        <arnd@...db.de>, <gregkh@...uxfoundation.org>,
        <m.szyprowski@...sung.com>, <robin.murphy@....com>,
        <sfr@...b.auug.org.au>, <linux-arm-kernel@...ts.infradead.org>,
        <linux-kernel@...r.kernel.org>, <iommu@...ts.linux-foundation.org>,
        <shijie8@...il.com>
Subject: Re: [PATCH] lib/genalloc.c: rename addr_in_gen_pool to
 gen_pool_has_addr
On Fri, Dec 28, 2018 at 09:48:34AM +0100, Christoph Hellwig wrote:
> On Fri, Dec 28, 2018 at 04:39:50PM +0800, Huang Shijie wrote:
> > Follow the kernel conventions, rename addr_in_gen_pool to
> > gen_pool_has_addr.
> 
> Which convention?  The old name certainly looks more sensible to me.
I submitted a patch to export the symbol, addr_in_gen_pool.
But most the exported symbols are named like gen_pool_*.
What about I add a macro in the header genalloc.h, such as:
#define addr_in_gen_pool 	gen_pool_has_addr
> 
> If we really want to change anything about this function I'd suggest
> to drop the size argument, as the address itself should describe the
> region good enough.
Maybe others need the @size argument. I am not sure if it is right to remove
the size argument...
Thanks
Huang Shijie
Powered by blists - more mailing lists
 
