aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/squashfs/decompressor.c8
-rw-r--r--fs/squashfs/decompressor.h4
-rw-r--r--fs/squashfs/squashfs.h3
3 files changed, 6 insertions, 9 deletions
diff --git a/fs/squashfs/decompressor.c b/fs/squashfs/decompressor.c
index 50b22d330cec..a5940e54c4dd 100644
--- a/fs/squashfs/decompressor.c
+++ b/fs/squashfs/decompressor.c
@@ -40,7 +40,7 @@ static const struct squashfs_decompressor squashfs_lzma_unsupported_comp_ops = {
40}; 40};
41 41
42#ifndef CONFIG_SQUASHFS_LZO 42#ifndef CONFIG_SQUASHFS_LZO
43static const struct squashfs_decompressor squashfs_lzo_unsupported_comp_ops = { 43static const struct squashfs_decompressor squashfs_lzo_comp_ops = {
44 NULL, NULL, NULL, LZO_COMPRESSION, "lzo", 0 44 NULL, NULL, NULL, LZO_COMPRESSION, "lzo", 0
45}; 45};
46#endif 46#endif
@@ -57,13 +57,9 @@ static const struct squashfs_decompressor squashfs_unknown_comp_ops = {
57 57
58static const struct squashfs_decompressor *decompressor[] = { 58static const struct squashfs_decompressor *decompressor[] = {
59 &squashfs_zlib_comp_ops, 59 &squashfs_zlib_comp_ops,
60 &squashfs_lzma_unsupported_comp_ops,
61#ifdef CONFIG_SQUASHFS_LZO
62 &squashfs_lzo_comp_ops, 60 &squashfs_lzo_comp_ops,
63#else
64 &squashfs_lzo_unsupported_comp_ops,
65#endif
66 &squashfs_xz_comp_ops, 61 &squashfs_xz_comp_ops,
62 &squashfs_lzma_unsupported_comp_ops,
67 &squashfs_unknown_comp_ops 63 &squashfs_unknown_comp_ops
68}; 64};
69 65
diff --git a/fs/squashfs/decompressor.h b/fs/squashfs/decompressor.h
index 57e1acb4c6a9..3b305a70f7aa 100644
--- a/fs/squashfs/decompressor.h
+++ b/fs/squashfs/decompressor.h
@@ -57,4 +57,8 @@ static inline int squashfs_decompress(struct squashfs_sb_info *msblk,
57extern const struct squashfs_decompressor squashfs_xz_comp_ops; 57extern const struct squashfs_decompressor squashfs_xz_comp_ops;
58#endif 58#endif
59 59
60#ifdef CONFIG_SQUASHFS_LZO
61extern const struct squashfs_decompressor squashfs_lzo_comp_ops;
62#endif
63
60#endif 64#endif
diff --git a/fs/squashfs/squashfs.h b/fs/squashfs/squashfs.h
index 18f187fb486b..ba729d808876 100644
--- a/fs/squashfs/squashfs.h
+++ b/fs/squashfs/squashfs.h
@@ -99,6 +99,3 @@ extern const struct xattr_handler *squashfs_xattr_handlers[];
99 99
100/* zlib_wrapper.c */ 100/* zlib_wrapper.c */
101extern const struct squashfs_decompressor squashfs_zlib_comp_ops; 101extern const struct squashfs_decompressor squashfs_zlib_comp_ops;
102
103/* lzo_wrapper.c */
104extern const struct squashfs_decompressor squashfs_lzo_comp_ops;