Re: [PATCH 1/1] bitops.h: move out get_count_order[_long]() from __KERNEL__ scope

From: zijun_hu
Date: Tue Aug 16 2016 - 03:25:25 EST


On 08/16/2016 02:50 PM, Stephen Rothwell wrote:
> Hi,
>
> On Tue, 16 Aug 2016 14:27:04 +0800 zijun_hu <zijun_hu@xxxxxxxx> wrote:
>>
>> From: zijun_hu <zijun_hu@xxxxxxx>
>>
>> move out get_count_order[_long]() definitions from scope limited
>> by macro __KERNEL__
>
> Why do you need to do this? You say why in the commit message.
>
1, it make both functions available in wider region regardless of
whether macro __KERNEL__ is defined
2, get_count_order() locates out off region limited by macro __KERNEL__
before the recent commit c513b4cd2fe9
("mm-vmalloc-fix-align-value-calculation-error-v2-fix-fix")
it maybe more perfect to keep its original region and place its counterpart
get_count_order_long() nearly

thanks for your reply