xref: /aosp_15_r20/external/zstd/contrib/linux-kernel/zstd_common_module.c (revision 01826a4963a0d8a59bc3812d29bdf0fb76416722)
1*01826a49SYabin Cui // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
2*01826a49SYabin Cui /*
3*01826a49SYabin Cui  * Copyright (c) Meta Platforms, Inc. and affiliates.
4*01826a49SYabin Cui  * All rights reserved.
5*01826a49SYabin Cui  *
6*01826a49SYabin Cui  * This source code is licensed under both the BSD-style license (found in the
7*01826a49SYabin Cui  * LICENSE file in the root directory of this source tree) and the GPLv2 (found
8*01826a49SYabin Cui  * in the COPYING file in the root directory of this source tree).
9*01826a49SYabin Cui  * You may select, at your option, one of the above-listed licenses.
10*01826a49SYabin Cui  */
11*01826a49SYabin Cui 
12*01826a49SYabin Cui #include <linux/module.h>
13*01826a49SYabin Cui 
14*01826a49SYabin Cui #include "common/huf.h"
15*01826a49SYabin Cui #include "common/fse.h"
16*01826a49SYabin Cui #include "common/zstd_internal.h"
17*01826a49SYabin Cui 
18*01826a49SYabin Cui // Export symbols shared by compress and decompress into a common module
19*01826a49SYabin Cui 
20*01826a49SYabin Cui #undef ZSTD_isError   /* defined within zstd_internal.h */
21*01826a49SYabin Cui EXPORT_SYMBOL_GPL(FSE_readNCount);
22*01826a49SYabin Cui EXPORT_SYMBOL_GPL(HUF_readStats);
23*01826a49SYabin Cui EXPORT_SYMBOL_GPL(HUF_readStats_wksp);
24*01826a49SYabin Cui EXPORT_SYMBOL_GPL(ZSTD_isError);
25*01826a49SYabin Cui EXPORT_SYMBOL_GPL(ZSTD_getErrorName);
26*01826a49SYabin Cui EXPORT_SYMBOL_GPL(ZSTD_getErrorCode);
27*01826a49SYabin Cui 
28*01826a49SYabin Cui MODULE_LICENSE("Dual BSD/GPL");
29*01826a49SYabin Cui MODULE_DESCRIPTION("Zstd Common");
30