Merge https://gitlab.denx.de/u-boot/custodians/u-boot-x86
[oweals/u-boot.git] / lib / lz4_wrapper.c
index 487d39ef0247a9b7f086561e0170719048b72a5c..1e1e8d508530d44d5e1eb8e3f68e6f5d28175877 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <common.h>
 #include <compiler.h>
+#include <image.h>
+#include <lz4.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
 
@@ -23,8 +25,6 @@ typedef uint64_t U64;
 /* Unaltered (except removing unrelated code) from github.com/Cyan4973/lz4. */
 #include "lz4.c"       /* #include for inlining, do not link! */
 
-#define LZ4F_MAGIC 0x184D2204
-
 struct lz4_frame_header {
        u32 magic;
        union {