Re: [PATCH v1] lib/genalloc.c: Export devm_gen_pool_create for modules

From: Michal Simek
Date: Tue Dec 02 2014 - 04:36:48 EST


On 12/02/2014 10:31 AM, Prabhakar Lad wrote:
> Hi Michal,
>
> Thanks for the patch.
>
> On Mon, Dec 1, 2014 at 1:00 PM, Michal Simek <michal.simek@xxxxxxxxxx> wrote:
>> Modules can use this function for creating pool.
>>
>> Signed-off-by: Michal Simek <michal.simek@xxxxxxxxxx>
>> ---
>>
>> I am pushing Zynq OCMC driver which is using this function.
>>
>> ---
>> lib/genalloc.c | 1 +
>> 1 file changed, 1 insertion(+)
>>
> donât you need to add an entry in include/linux/genalloc.h ?

Not sure what exactly you mean. declaration is there.
include/linux/genalloc.h:120:extern struct gen_pool *devm_gen_pool_create(struct device *dev,

And all EXPORT_SYMBOL() are out of headers directly below function
which you want to export.

Can you please clarify what you did mean by that?

Thanks,
Michal
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/