diff options
Diffstat (limited to 'include/spl.h')
| -rw-r--r-- | include/spl.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/spl.h b/include/spl.h index a222db9c559..f713363f8cd 100644 --- a/include/spl.h +++ b/include/spl.h @@ -931,4 +931,13 @@ void spl_save_restore_data(void); int spl_load_fit_image(struct spl_image_info *spl_image, const struct legacy_img_hdr *header); +/* + * spl_decompression_enabled() - check decompression support is enabled for SPL build + * + * Returns true if decompression support is enabled, else False + */ +static inline bool spl_decompression_enabled(void) +{ + return IS_ENABLED(CONFIG_SPL_GZIP) || IS_ENABLED(CONFIG_SPL_LZMA); +} #endif |
