The 'linux/bits.h' was backported to LTS branches but is not available
on non-LTS before v4.19. Use 'asm/byteorder.h' instead to get the
__LITTLE_ENDIAN define which is available on all kernel versions we
support.
Change-Id: Icfe733ab944616b3bd6d0023ad0869eefb830b34
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
#define _LTTNG_WRAPPER_BITOPS_H
#include <linux/bitops.h>
-#include <linux/bits.h>
#include <lttng/kernel-version.h>
#if LTTNG_LINUX_VERSION_CODE < LTTNG_KERNEL_VERSION(5,4,0)
+#include <asm/byteorder.h>
+
/* Set bits in the first 'n' bytes when loaded from memory */
# ifdef __LITTLE_ENDIAN
# define lttng_aligned_byte_mask(n) ((1UL << 8*(n))-1)