Skip to content

Commit d5c1d68

Browse files
adam900710kdave
authored andcommitted
btrfs: compression: Add linux/sizes.h for compression.h
Since compression.h is using the SZ_* macros, and if some file includes only compression.h without linux/sizes.h, it will cause compile error. One example is lzo.c, if it uses BTRFS_MAX_COMPRESSED. Fix it by adding linux/sizes.h in compression.h Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent b5c40d5 commit d5c1d68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/btrfs/compression.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#ifndef BTRFS_COMPRESSION_H
77
#define BTRFS_COMPRESSION_H
88

9+
#include <linux/sizes.h>
10+
911
/*
1012
* We want to make sure that amount of RAM required to uncompress an extent is
1113
* reasonable, so we limit the total size in ram of a compressed extent to

0 commit comments

Comments
 (0)