bitmap: move to/from xenctl_bitmap conversion helpers
authorJan Beulich <jbeulich@suse.com>
Thu, 27 Aug 2020 07:52:01 +0000 (09:52 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 27 Aug 2020 07:52:01 +0000 (09:52 +0200)
commita1568878df7d914853ba8c712aaa2315cd33ed3c
treee4ce4b77c3306ee12863fad607f85e50d9494b41
parentde58ea464fb6db4b78102edc8ac4598d4eebe6c5
bitmap: move to/from xenctl_bitmap conversion helpers

A subsequent change will exclude domctl.c from getting built for a
particular configuration, yet the two functions get used from elsewhere.

While moving the code
- drop unmotivated uses of min_t(),
- fix style violations in the moved code,
- xfree() as early as possible.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/common/bitmap.c
xen/common/domctl.c
xen/include/xen/bitmap.h
xen/include/xen/domain.h