]> xenbits.xensource.com Git - xen.git/commit
xen/bitmap: don't open code DIV_ROUND_UP()
authorJane Malalane <jane.malalane@citrix.com>
Thu, 12 Aug 2021 15:14:25 +0000 (17:14 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 12 Aug 2021 15:14:25 +0000 (17:14 +0200)
commit5a88d524857e5bf78b077d30ea515fcaac061bfc
tree67cd86da4eeb86355db6c6e353e2e1be0c985c15
parentb8848c001f39224340767900ad0365f81aaeeff4
xen/bitmap: don't open code DIV_ROUND_UP()

Also, change bitmap_long_to_byte() and bitmap_byte_to_long() to take
'unsigned int' instead of 'int' number of bits, to match the type of
their callers.

Suggested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jane Malalane <jane.malalane@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/bitmap.c