mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
synced 2024-11-24 12:44:17 +08:00
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:
parent
384bc17f63
commit
288f8cb78f
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
||||
/*
|
||||
|
@ -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
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
3
btrfs.c
3
btrfs.c
@ -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"
|
||||
|
11
btrfstune.c
11
btrfstune.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user