tools/libxc: Modify bitmap operations to take void pointers
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 21 Jan 2016 14:45:24 +0000 (14:45 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 8 Apr 2016 20:54:52 +0000 (21:54 +0100)
commit11d0044a168994de85b9b328452292852aedc871
tree69cfe2721910fe0269faf5c7c27435fb23676968
parent1ab68ab1eff82988989dd5dc4c2137c7ad7b551f
tools/libxc: Modify bitmap operations to take void pointers

The type of the pointer to a bitmap is not interesting; it does not affect the
representation of the block of bits being pointed to.

Make the libxc functions consistent with those in Xen, so they can work just
as well with 'unsigned int *' based bitmaps.

As part of doing so, change the implementation to be in terms of char rather
than unsigned long.  This fixes alignment concerns with ARM.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
tools/libxc/xc_bitops.h
tools/libxc/xc_misc.c