1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3- 1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause 2 /* 2 /* 3 * Copyright (c) Facebook, Inc. 3 * Copyright (c) Facebook, Inc. 4 * All rights reserved. 4 * All rights reserved. 5 * 5 * 6 * This source code is licensed under both the 6 * This source code is licensed under both the BSD-style license (found in the 7 * LICENSE file in the root directory of this 7 * LICENSE file in the root directory of this source tree) and the GPLv2 (found 8 * in the COPYING file in the root directory o 8 * in the COPYING file in the root directory of this source tree). 9 * You may select, at your option, one of the 9 * You may select, at your option, one of the above-listed licenses. 10 */ 10 */ 11 11 12 #include <linux/module.h> 12 #include <linux/module.h> 13 13 14 #include "common/huf.h" 14 #include "common/huf.h" 15 #include "common/fse.h" 15 #include "common/fse.h" 16 #include "common/zstd_internal.h" 16 #include "common/zstd_internal.h" 17 17 18 // Export symbols shared by compress and decom 18 // Export symbols shared by compress and decompress into a common module 19 19 20 #undef ZSTD_isError /* defined within zstd_i 20 #undef ZSTD_isError /* defined within zstd_internal.h */ 21 EXPORT_SYMBOL_GPL(FSE_readNCount); 21 EXPORT_SYMBOL_GPL(FSE_readNCount); 22 EXPORT_SYMBOL_GPL(HUF_readStats); 22 EXPORT_SYMBOL_GPL(HUF_readStats); 23 EXPORT_SYMBOL_GPL(HUF_readStats_wksp); 23 EXPORT_SYMBOL_GPL(HUF_readStats_wksp); 24 EXPORT_SYMBOL_GPL(ZSTD_isError); 24 EXPORT_SYMBOL_GPL(ZSTD_isError); 25 EXPORT_SYMBOL_GPL(ZSTD_getErrorName); 25 EXPORT_SYMBOL_GPL(ZSTD_getErrorName); 26 EXPORT_SYMBOL_GPL(ZSTD_getErrorCode); 26 EXPORT_SYMBOL_GPL(ZSTD_getErrorCode); 27 EXPORT_SYMBOL_GPL(ZSTD_customMalloc); 27 EXPORT_SYMBOL_GPL(ZSTD_customMalloc); 28 EXPORT_SYMBOL_GPL(ZSTD_customCalloc); 28 EXPORT_SYMBOL_GPL(ZSTD_customCalloc); 29 EXPORT_SYMBOL_GPL(ZSTD_customFree); 29 EXPORT_SYMBOL_GPL(ZSTD_customFree); 30 30 31 MODULE_LICENSE("Dual BSD/GPL"); 31 MODULE_LICENSE("Dual BSD/GPL"); 32 MODULE_DESCRIPTION("Zstd Common"); 32 MODULE_DESCRIPTION("Zstd Common"); 33 33
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.