summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-02-17 13:36:55 -0500
committerKent Overstreet <kent.overstreet@gmail.com>2018-02-17 13:36:55 -0500
commit4aefd5f903fe99bb34cbb2922d488e9a29e78ea9 (patch)
treed3a9bd746c1cc082c19f9aae35b3135887a5fa77
parent807abf36c1e119825d42cda6f6b249649ca44eb5 (diff)
add missing include
-rw-r--r--include/linux/zstd.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/zstd.h b/include/linux/zstd.h
new file mode 100644
index 0000000..0dd1b02
--- /dev/null
+++ b/include/linux/zstd.h
@@ -0,0 +1,10 @@
+#include <zstd.h>
+
+#define ZSTD_initDCtx(w, s) ZSTD_initStaticDCtx(w, s)
+#define ZSTD_initCCtx(w, s) ZSTD_initStaticCCtx(w, s)
+
+#define ZSTD_compressCCtx(w, dst, d_len, src, src_len, params) \
+ ZSTD_compressCCtx(w, dst, d_len, src, src_len, 0)
+
+#define ZSTD_CCtxWorkspaceBound(p) ZSTD_estimateCCtxSize(0)
+#define ZSTD_DCtxWorkspaceBound() ZSTD_estimateDCtxSize()