On 01/04/2025 11:09 am, Jan Beulich wrote:
> --- a/xen/common/bitmap.c
> +++ b/xen/common/bitmap.c
> @@ -359,12 +343,11 @@ static void bitmap_byte_to_long(unsigned
>
> #elif defined(__LITTLE_ENDIAN)
>
> -static void bitmap_long_to_byte(uint8_t *bp, const unsigned long *lp,
> - unsigned int nbits)
> -{
> - memcpy(bp, lp, DIV_ROUND_UP(nbits, BITS_PER_BYTE));
> - clamp_last_byte(bp, nbits);
> -}
> +#define LITTLE_ENDIAN 1 /* For IS_ENABLED(). */
I guess I can fix this in my bswap series by giving __LITTLE_ENDIAN the
value of 1 when it is defined ?
Otherwise, Reviewed-by: Andrew Cooper <[email protected]>
This is very very long overdue.
~Andrew