btrfs-progs: libbtrfs: update include lists
The tool IWYU (include what you use) suggests to remove and add some includes. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
d04a1fa10e
commit
dda894259f
|
@ -16,9 +16,15 @@
|
|||
* Boston, MA 021110-1307, USA.
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#include "libbtrfs/send.h"
|
||||
#include "libbtrfs/send-stream.h"
|
||||
#include "libbtrfs/ctree.h"
|
||||
#include "crypto/crc32c.h"
|
||||
|
||||
struct btrfs_send_stream {
|
||||
|
|
|
@ -16,12 +16,15 @@
|
|||
* Boston, MA 021110-1307, USA.
|
||||
*/
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <limits.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "kernel-lib/rbtree.h"
|
||||
#include "libbtrfs/ctree.h"
|
||||
#include "libbtrfs/send-utils.h"
|
||||
#include "ioctl.h"
|
||||
|
|
|
@ -21,12 +21,14 @@
|
|||
|
||||
#if BTRFS_FLAT_INCLUDES
|
||||
#include "kerncompat.h"
|
||||
#include <stddef.h>
|
||||
#include "libbtrfs/ctree.h"
|
||||
#include "kernel-lib/rbtree.h"
|
||||
#include "kernel-lib/rbtree_types.h"
|
||||
#else
|
||||
#include <btrfs/kerncompat.h>
|
||||
#include <stddef.h>
|
||||
#include <btrfs/ctree.h>
|
||||
#include <btrfs/rbtree.h>
|
||||
#include <btrfs/rbtree_types.h>
|
||||
#endif /* BTRFS_FLAT_INCLUDES */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
Loading…
Reference in New Issue