Message ID | 20180517062753.25973-2-wqu@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 17.05.2018 09:27, Qu Wenruo wrote: > Since compression.h is using SZ_* macros, and if some user only includes > compression.h without linux/sizes.h, it will cause compile error. > > One example is lzo.c, if it uses BTRFS_MAX_COMPRESSED, it would cause > compile error. > > 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> > --- > fs/btrfs/compression.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/fs/btrfs/compression.h b/fs/btrfs/compression.h > index cc605f7b23fb..317703d9b073 100644 > --- a/fs/btrfs/compression.h > +++ b/fs/btrfs/compression.h > @@ -6,6 +6,7 @@ > #ifndef BTRFS_COMPRESSION_H > #define BTRFS_COMPRESSION_H > > +#include <linux/sizes.h> > /* > * We want to make sure that amount of RAM required to uncompress an extent is > * reasonable, so we limit the total size in ram of a compressed extent to > -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/fs/btrfs/compression.h b/fs/btrfs/compression.h index cc605f7b23fb..317703d9b073 100644 --- a/fs/btrfs/compression.h +++ b/fs/btrfs/compression.h @@ -6,6 +6,7 @@ #ifndef BTRFS_COMPRESSION_H #define BTRFS_COMPRESSION_H +#include <linux/sizes.h> /* * We want to make sure that amount of RAM required to uncompress an extent is * reasonable, so we limit the total size in ram of a compressed extent to
Since compression.h is using SZ_* macros, and if some user only includes compression.h without linux/sizes.h, it will cause compile error. One example is lzo.c, if it uses BTRFS_MAX_COMPRESSED, it would cause compile error. Fix it by adding linux/sizes.h in compression.h Signed-off-by: Qu Wenruo <wqu@suse.com> --- fs/btrfs/compression.h | 1 + 1 file changed, 1 insertion(+)