1--- a/utils/common/codec-fwht.h.old 2019-02-23 09:38:59.454065366 -0800 2+++ b/utils/common/codec-fwht.h 2019-02-23 09:40:44.007803414 -0800 3@@ -8,8 +8,28 @@ 4 #define CODEC_FWHT_H 5 6 #include <linux/types.h> 7-#include <linux/bitops.h> 8-#include <asm/byteorder.h> 9+#include <string.h> 10+#include <errno.h> 11+#include <arpa/inet.h> 12+#include <stdbool.h> 13+#include <stdint.h> 14+ 15+#define BIT(x) (1 << (x)) 16+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) 17+#define GENMASK(h, l) \ 18+ (((~0UL) - (1UL << (l)) + 1) & (~0UL >> ((8 * sizeof(long)) - 1 - (h)))) 19+#define pr_err(arg...) 20+#define __round_mask(x, y) ((__typeof__(x))((y)-1)) 21+#define round_up(x, y) ((((x)-1) | __round_mask(x, y))+1) 22+#define noinline_for_stack 23+ 24+ 25+typedef __u64 u64; 26+typedef __u32 u32; 27+typedef __u16 u16; 28+typedef __s16 s16; 29+typedef __s32 s32; 30+typedef __u8 u8; 31 32 /* 33 * The compressed format consists of a fwht_cframe_hdr struct followed by the 34