diff options
author | David Sterba <dsterba@suse.com> | 2024-01-27 03:19:56 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-03-04 16:24:49 +0100 |
commit | 602035d7fecf4d00c75c2ca5b956fa44136c3b86 (patch) | |
tree | 4206fa20eb1021496765430edab2b207ec8d39df /fs/btrfs/send.h | |
parent | 22b46bdc5f11c0d3502fbc180cd83a1b5ab3d23d (diff) | |
download | linux-stable-602035d7fecf4d00c75c2ca5b956fa44136c3b86.tar.gz linux-stable-602035d7fecf4d00c75c2ca5b956fa44136c3b86.tar.bz2 linux-stable-602035d7fecf4d00c75c2ca5b956fa44136c3b86.zip |
btrfs: add forward declarations and headers, part 2
Do a cleanup in more headers:
- add forward declarations for types referenced by pointers
- add includes when types need them
This fixes potential compilation problems if the headers are reordered
or the missing includes are not provided indirectly.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/send.h')
-rw-r--r-- | fs/btrfs/send.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/btrfs/send.h b/fs/btrfs/send.h index 4f5509cb1803..dd1c9f02b011 100644 --- a/fs/btrfs/send.h +++ b/fs/btrfs/send.h @@ -8,6 +8,11 @@ #define BTRFS_SEND_H #include <linux/types.h> +#include <linux/sizes.h> +#include <linux/align.h> + +struct inode; +struct btrfs_ioctl_send_args; #define BTRFS_SEND_STREAM_MAGIC "btrfs-stream" /* Conditional support for the upcoming protocol version. */ @@ -25,9 +30,6 @@ #define BTRFS_SEND_BUF_SIZE_V1 SZ_64K #define BTRFS_SEND_BUF_SIZE_V2 ALIGN(SZ_16K + BTRFS_MAX_COMPRESSED, PAGE_SIZE) -struct inode; -struct btrfs_ioctl_send_args; - enum btrfs_tlv_type { BTRFS_TLV_U8, BTRFS_TLV_U16, |