[PATCH 1/4] staging: lustre: ldlm_extent.c: replace IS_PO2 by is_power_of_2

Greg KH gregkh at linuxfoundation.org
Sat Oct 17 05:41:09 UTC 2015


On Sat, Oct 17, 2015 at 12:05:44AM +0200, Aya Mahfouz wrote:
> Replaces IS_PO2 by is_power_of_2. IS_PO2 is used with several debug
> macros. In this case, it is LASSERT. Note that the replacement changes
> the types involved, because the parameter of IS_PO2 is of type long
> long and the return type is int, while the parameter of is_power_of_2
> is of type long and the return type is bool. This, however, has no
> impact, because the actual argument is always of type int, and the
> return value is always used as a boolean.

All of this info about the types mean nothing for this patch :(



More information about the devel mailing list