Skip to content

Commit

Permalink
lib: zstd: Add decompress_sources.h for decompress_unzstd
Browse files Browse the repository at this point in the history
Adds decompress_sources.h which includes every .c file necessary for
zstd decompression. This is used in decompress_unzstd.c so the internal
structure of the library isn't exposed.

This allows us to upgrade the zstd library version without modifying any
callers. Instead we just need to update decompress_sources.h.

Signed-off-by: Nick Terrell <terrelln@fb.com>
  • Loading branch information
terrelln authored and xanmod committed Mar 24, 2021
1 parent 743d59c commit 5541d43
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/zstd/decompress_sources.h
@@ -0,0 +1,14 @@
/* SPDX-License-Identifier: GPL-2.0-only */

/*
* This file includes every .c file needed for decompression.
* It is used by lib/decompress_unzstd.c to include the decompression
* source into the translation-unit, so it can be used for kernel
* decompression.
*/

#include "entropy_common.c"
#include "fse_decompress.c"
#include "huf_decompress.c"
#include "zstd_common.c"
#include "decompress.c"

0 comments on commit 5541d43

Please sign in to comment.