btrfs-progs: update include list in standalone tools

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:
David Sterba 2022-09-15 13:10:53 +02:00
parent 384bc17f63
commit 288f8cb78f
6 changed files with 29 additions and 25 deletions

View File

@ -19,19 +19,20 @@
#include "kerncompat.h"
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <getopt.h>
#include <limits.h>
#include <errno.h>
#include <string.h>
#include "kernel-lib/radix-tree.h"
#include "kernel-shared/ctree.h"
#include "kernel-shared/volumes.h"
#include "kernel-shared/disk-io.h"
#include "kernel-shared/print-tree.h"
#include "kernel-shared/transaction.h"
#include "kernel-lib/list.h"
#include "kernel-lib/radix-tree.h"
#include "kernel-shared/extent_io.h"
#include "common/utils.h"
#include "common/help.h"
#include "common/extent-cache.h"
#include "common/messages.h"
#define FIELD_BUF_LEN 80

View File

@ -17,23 +17,18 @@
*/
#include "kerncompat.h"
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <getopt.h>
#include <zlib.h>
#include "kernel-lib/list.h"
#include <errno.h>
#include "kernel-shared/ctree.h"
#include "kernel-shared/disk-io.h"
#include "kernel-shared/print-tree.h"
#include "kernel-shared/transaction.h"
#include "kernel-shared/volumes.h"
#include "crypto/crc32c.h"
#include "kernel-shared/extent_io.h"
#include "common/utils.h"
#include "common/extent-cache.h"
#include "common/help.h"
#include "common/messages.h"
#include "cmds/commands.h"
/*

View File

@ -22,15 +22,18 @@
#include <fcntl.h>
#include <unistd.h>
#include <getopt.h>
#include "kernel-lib/list.h"
#include <errno.h>
#include <string.h>
#include "kernel-lib/sizes.h"
#include "kernel-lib/radix-tree.h"
#include "kernel-shared/ctree.h"
#include "kernel-shared/extent_io.h"
#include "kernel-shared/volumes.h"
#include "kernel-shared/disk-io.h"
#include "kernel-shared/print-tree.h"
#include "kernel-shared/transaction.h"
#include "common/internal.h"
#include "common/utils.h"
#include "common/help.h"
#include "common/extent-cache.h"
#define BUFFER_SIZE SZ_64K

View File

@ -17,21 +17,18 @@
*/
#include "kerncompat.h"
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include "kernel-lib/list.h"
#include <errno.h>
#include <getopt.h>
#include "kernel-lib/radix-tree.h"
#include "kernel-shared/ctree.h"
#include "kernel-shared/volumes.h"
#include "kernel-shared/disk-io.h"
#include "kernel-shared/print-tree.h"
#include "kernel-shared/transaction.h"
#include "common/utils.h"
#include "common/help.h"
#include "common/open-utils.h"
#include "common/messages.h"
static void print_usage(void)
{

View File

@ -14,10 +14,13 @@
* Boston, MA 021110-1307, USA.
*/
#include "kerncompat.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include <stdbool.h>
#include <strings.h>
#include "kernel-shared/volumes.h"
#include "crypto/crc32c.h"
#include "common/utils.h"

View File

@ -17,25 +17,30 @@
*/
#include "kerncompat.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <dirent.h>
#include <getopt.h>
#include <errno.h>
#include <stdbool.h>
#include <string.h>
#include <uuid/uuid.h>
#include "kernel-shared/ctree.h"
#include "kernel-shared/disk-io.h"
#include "kernel-shared/transaction.h"
#include "kernel-shared/volumes.h"
#include "kernel-shared/extent_io.h"
#include "common/defs.h"
#include "common/utils.h"
#include "common/extent-cache.h"
#include "common/open-utils.h"
#include "common/parse-utils.h"
#include "common/device-scan.h"
#include "common/messages.h"
#include "common/help.h"
#include "common/box.h"
#include "ioctl.h"
static char *device;
static int force = 0;