From: Rasmus Villemoes Date: Wed, 6 Aug 2014 23:10:16 +0000 (-0700) Subject: lib: bitmap: change parameter of bitmap_*_region to unsigned X-Git-Tag: cleanup-for-v3.18~96^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9279d3286e10736766edcaf815ae10e00856e448;p=pandora-kernel.git lib: bitmap: change parameter of bitmap_*_region to unsigned Changing the pos parameter of __reg_op to unsigned allows the compiler to generate slightly smaller and simpler code. Also update its callers bitmap_*_region to receive and pass unsigned int. The return types of bitmap_find_free_region and bitmap_allocate_region are still int to allow a negative error code to be returned. An int is certainly capable of representing any realistic return value. Signed-off-by: Rasmus Villemoes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed