@@ -722,8 +722,8 @@ void bitmap_fold(unsigned long *dst, const unsigned long *orig,
722
722
* some size '1 << order' (a power of two), aligned to that same
723
723
* '1 << order' power of two.
724
724
*
725
- * Returns 1 if REG_OP_ISFREE succeeds (region is all zero bits).
726
- * Returns 0 in all other cases and reg_ops.
725
+ * Return: 1 if REG_OP_ISFREE succeeds (region is all zero bits).
726
+ * 0 in all other cases and reg_ops.
727
727
*/
728
728
729
729
enum {
@@ -795,14 +795,14 @@ static int __reg_op(unsigned long *bitmap, unsigned int pos, int order, int reg_
795
795
* a power (@order) of two, aligned to that power of two, which
796
796
* makes the search algorithm much faster.
797
797
*
798
- * Return the bit offset in bitmap of the allocated region,
798
+ * Return: the bit offset in bitmap of the allocated region,
799
799
* or -errno on failure.
800
800
*/
801
801
int bitmap_find_free_region (unsigned long * bitmap , unsigned int bits , int order )
802
802
{
803
803
unsigned int pos , end ; /* scans bitmap by regions of size order */
804
804
805
- for (pos = 0 ; (end = pos + ( 1U << order )) <= bits ; pos = end ) {
805
+ for (pos = 0 ; (end = pos + BIT ( order )) <= bits ; pos = end ) {
806
806
if (!__reg_op (bitmap , pos , order , REG_OP_ISFREE ))
807
807
continue ;
808
808
__reg_op (bitmap , pos , order , REG_OP_ALLOC );
@@ -820,8 +820,6 @@ EXPORT_SYMBOL(bitmap_find_free_region);
820
820
*
821
821
* This is the complement to __bitmap_find_free_region() and releases
822
822
* the found region (by clearing it in the bitmap).
823
- *
824
- * No return value.
825
823
*/
826
824
void bitmap_release_region (unsigned long * bitmap , unsigned int pos , int order )
827
825
{
@@ -837,7 +835,7 @@ EXPORT_SYMBOL(bitmap_release_region);
837
835
*
838
836
* Allocate (set bits in) a specified region of a bitmap.
839
837
*
840
- * Return 0 on success, or %-EBUSY if specified region wasn't
838
+ * Return: 0 on success, or %-EBUSY if specified region wasn't
841
839
* free (not all bits were zero).
842
840
*/
843
841
int bitmap_allocate_region (unsigned long * bitmap , unsigned int pos , int order )
0 commit comments