btrfs-progs: build: drop kernel-lib from -I and update paths
Include the files by full path to avoid any confusion in case of potentially duplicate names. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
c07960c8be
commit
94fced6353
1
Makefile
1
Makefile
|
@ -82,7 +82,6 @@ CFLAGS = $(SUBST_CFLAGS) \
|
|||
-fno-strict-aliasing \
|
||||
-fPIC \
|
||||
-I$(TOPDIR) \
|
||||
-I$(TOPDIR)/kernel-lib \
|
||||
-I$(TOPDIR)/libbtrfsutil \
|
||||
$(DISABLE_WARNING_FLAGS) \
|
||||
$(EXTRAWARN_CFLAGS) \
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#include "disk-io.h"
|
||||
#include "print-tree.h"
|
||||
#include "transaction.h"
|
||||
#include "list.h"
|
||||
#include "kernel-lib/list.h"
|
||||
#include "common/utils.h"
|
||||
#include "common/help.h"
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include "crc32c.h"
|
||||
#include "kernel-lib/crc32c.h"
|
||||
#include "common/utils.h"
|
||||
|
||||
void print_usage(int status)
|
||||
|
|
|
@ -29,10 +29,10 @@
|
|||
#include "disk-io.h"
|
||||
#include "print-tree.h"
|
||||
#include "transaction.h"
|
||||
#include "list.h"
|
||||
#include "kernel-lib/list.h"
|
||||
#include "volumes.h"
|
||||
#include "common/utils.h"
|
||||
#include "crc32c.h"
|
||||
#include "kernel-lib/crc32c.h"
|
||||
#include "extent-cache.h"
|
||||
#include "find-root.h"
|
||||
#include "common/help.h"
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#if BTRFS_FLAT_INCLUDES
|
||||
#include "kerncompat.h"
|
||||
#include "rbtree.h"
|
||||
#include "kernel-lib/rbtree.h"
|
||||
#include "ioctl.h"
|
||||
#else
|
||||
#include <btrfs/kerncompat.h>
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include "disk-io.h"
|
||||
#include "print-tree.h"
|
||||
#include "transaction.h"
|
||||
#include "list.h"
|
||||
#include "kernel-lib/list.h"
|
||||
#include "common/utils.h"
|
||||
#include "common/help.h"
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#include <string.h>
|
||||
#include <limits.h>
|
||||
#include <byteswap.h>
|
||||
#include <kernel-lib/crc32c.h>
|
||||
#include "kernel-lib/crc32c.h"
|
||||
#include "disk-io.h"
|
||||
|
||||
#define BLOCKSIZE (4096)
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include "disk-io.h"
|
||||
#include "print-tree.h"
|
||||
#include "transaction.h"
|
||||
#include "list.h"
|
||||
#include "kernel-lib/list.h"
|
||||
#include "common/utils.h"
|
||||
#include "common/help.h"
|
||||
|
||||
|
|
2
btrfs.c
2
btrfs.c
|
@ -20,7 +20,7 @@
|
|||
#include <getopt.h>
|
||||
|
||||
#include "volumes.h"
|
||||
#include "crc32c.h"
|
||||
#include "kernel-lib/crc32c.h"
|
||||
#include "cmds/commands.h"
|
||||
#include "common/utils.h"
|
||||
#include "common/help.h"
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#include "kerncompat.h"
|
||||
#include "ctree.h"
|
||||
#include "extent-cache.h"
|
||||
#include "list.h"
|
||||
#include "kernel-lib/list.h"
|
||||
#else
|
||||
#include <btrfs/kerncompat.h>
|
||||
#include <btrfs/ctree.h>
|
||||
|
|
|
@ -37,9 +37,9 @@
|
|||
#include "common/utils.h"
|
||||
#include "cmds/commands.h"
|
||||
#include "kerncompat.h"
|
||||
#include "rbtree.h"
|
||||
#include "kernel-lib/rbtree.h"
|
||||
|
||||
#include "interval_tree_generic.h"
|
||||
#include "kernel-lib/interval_tree_generic.h"
|
||||
#include "common/help.h"
|
||||
#include "common/fsfeatures.h"
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
#include "volumes.h"
|
||||
#include "cmds/commands.h"
|
||||
#include "cmds/filesystem-usage.h"
|
||||
#include "list_sort.h"
|
||||
#include "kernel-lib/list_sort.h"
|
||||
#include "disk-io.h"
|
||||
#include "common/help.h"
|
||||
#include "common/fsfeatures.h"
|
||||
|
|
|
@ -29,10 +29,10 @@
|
|||
#include "disk-io.h"
|
||||
#include "print-tree.h"
|
||||
#include "transaction.h"
|
||||
#include "list.h"
|
||||
#include "kernel-lib/list.h"
|
||||
#include "common/utils.h"
|
||||
#include "cmds/commands.h"
|
||||
#include "crc32c.h"
|
||||
#include "kernel-lib/crc32c.h"
|
||||
#include "common/help.h"
|
||||
|
||||
static int check_csum_sblock(void *sb, int csum_size)
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#include <getopt.h>
|
||||
|
||||
#include "kerncompat.h"
|
||||
#include "radix-tree.h"
|
||||
#include "kernel-lib/radix-tree.h"
|
||||
#include "ctree.h"
|
||||
#include "disk-io.h"
|
||||
#include "print-tree.h"
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#include "disk-io.h"
|
||||
#include "print-tree.h"
|
||||
#include "transaction.h"
|
||||
#include "list.h"
|
||||
#include "kernel-lib/list.h"
|
||||
#include "volumes.h"
|
||||
#include "common/utils.h"
|
||||
#include "cmds/commands.h"
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
#include "ioctl.h"
|
||||
#include "cmds/commands.h"
|
||||
#include "common/utils.h"
|
||||
#include "list.h"
|
||||
#include "kernel-lib/list.h"
|
||||
#include "btrfs-list.h"
|
||||
|
||||
#include "send.h"
|
||||
|
|
|
@ -29,14 +29,14 @@
|
|||
#include <uuid/uuid.h>
|
||||
#include <pthread.h>
|
||||
|
||||
#include "list.h"
|
||||
#include "radix-tree.h"
|
||||
#include "kernel-lib/list.h"
|
||||
#include "kernel-lib/radix-tree.h"
|
||||
#include "ctree.h"
|
||||
#include "extent-cache.h"
|
||||
#include "disk-io.h"
|
||||
#include "volumes.h"
|
||||
#include "transaction.h"
|
||||
#include "crc32c.h"
|
||||
#include "kernel-lib/crc32c.h"
|
||||
#include "common/utils.h"
|
||||
#include "btrfsck.h"
|
||||
#include "cmds/commands.h"
|
||||
|
|
|
@ -29,9 +29,9 @@
|
|||
#include "kerncompat.h"
|
||||
#include "ctree.h"
|
||||
#include "disk-io.h"
|
||||
#include "list.h"
|
||||
#include "kernel-lib/list.h"
|
||||
#include "common/utils.h"
|
||||
#include "crc32c.h"
|
||||
#include "kernel-lib/crc32c.h"
|
||||
#include "volumes.h"
|
||||
#include "cmds/commands.h"
|
||||
#include "cmds/rescue.h"
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
#include "disk-io.h"
|
||||
#include "print-tree.h"
|
||||
#include "transaction.h"
|
||||
#include "list.h"
|
||||
#include "kernel-lib/list.h"
|
||||
#include "volumes.h"
|
||||
#include "common/utils.h"
|
||||
#include "cmds/commands.h"
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
#include "ctree.h"
|
||||
#include "ioctl.h"
|
||||
#include "cmds/commands.h"
|
||||
#include "list.h"
|
||||
#include "kernel-lib/list.h"
|
||||
#include "common/utils.h"
|
||||
|
||||
#include "send.h"
|
||||
|
|
|
@ -43,11 +43,11 @@
|
|||
#include <btrfsutil.h>
|
||||
|
||||
#include "kerncompat.h"
|
||||
#include "radix-tree.h"
|
||||
#include "kernel-lib/radix-tree.h"
|
||||
#include "ctree.h"
|
||||
#include "disk-io.h"
|
||||
#include "transaction.h"
|
||||
#include "crc32c.h"
|
||||
#include "kernel-lib/crc32c.h"
|
||||
#include "common/utils.h"
|
||||
#include "volumes.h"
|
||||
#include "ioctl.h"
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#include "common-defs.h"
|
||||
#include "common/internal.h"
|
||||
#include "btrfs-list.h"
|
||||
#include "sizes.h"
|
||||
#include "kernel-lib/sizes.h"
|
||||
#include "common/messages.h"
|
||||
#include "ioctl.h"
|
||||
#include "common/fsfeatures.h"
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include "disk-io.h"
|
||||
#include "transaction.h"
|
||||
#include "common/utils.h"
|
||||
#include "bitops.h"
|
||||
#include "kernel-lib/bitops.h"
|
||||
#include "convert/common.h"
|
||||
#include "convert/source-reiserfs.h"
|
||||
|
||||
|
|
2
ctree.c
2
ctree.c
|
@ -21,7 +21,7 @@
|
|||
#include "print-tree.h"
|
||||
#include "repair.h"
|
||||
#include "common/internal.h"
|
||||
#include "sizes.h"
|
||||
#include "kernel-lib/sizes.h"
|
||||
#include "common/messages.h"
|
||||
#include "volumes.h"
|
||||
|
||||
|
|
6
ctree.h
6
ctree.h
|
@ -22,13 +22,13 @@
|
|||
#include <stdbool.h>
|
||||
|
||||
#if BTRFS_FLAT_INCLUDES
|
||||
#include "list.h"
|
||||
#include "kernel-lib/list.h"
|
||||
#include "kerncompat.h"
|
||||
#include "radix-tree.h"
|
||||
#include "kernel-lib/radix-tree.h"
|
||||
#include "extent-cache.h"
|
||||
#include "extent_io.h"
|
||||
#include "ioctl.h"
|
||||
#include "sizes.h"
|
||||
#include "kernel-lib/sizes.h"
|
||||
#else
|
||||
#include <btrfs/list.h>
|
||||
#include <btrfs/kerncompat.h>
|
||||
|
|
|
@ -24,12 +24,12 @@
|
|||
#include <unistd.h>
|
||||
#include <uuid/uuid.h>
|
||||
#include "kerncompat.h"
|
||||
#include "radix-tree.h"
|
||||
#include "kernel-lib/radix-tree.h"
|
||||
#include "ctree.h"
|
||||
#include "disk-io.h"
|
||||
#include "volumes.h"
|
||||
#include "transaction.h"
|
||||
#include "crc32c.h"
|
||||
#include "kernel-lib/crc32c.h"
|
||||
#include "common/utils.h"
|
||||
#include "print-tree.h"
|
||||
#include "rbtree-utils.h"
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#include "kerncompat.h"
|
||||
#include "ctree.h"
|
||||
#include "sizes.h"
|
||||
#include "kernel-lib/sizes.h"
|
||||
|
||||
#define BTRFS_SUPER_INFO_OFFSET SZ_64K
|
||||
#define BTRFS_SUPER_INFO_SIZE 4096
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#if BTRFS_FLAT_INCLUDES
|
||||
#include "kerncompat.h"
|
||||
#include "rbtree.h"
|
||||
#include "kernel-lib/rbtree.h"
|
||||
#else
|
||||
#include <btrfs/kerncompat.h>
|
||||
#include <btrfs/rbtree.h>
|
||||
|
|
|
@ -21,12 +21,12 @@
|
|||
#include <stdint.h>
|
||||
#include <math.h>
|
||||
#include "kerncompat.h"
|
||||
#include "radix-tree.h"
|
||||
#include "kernel-lib/radix-tree.h"
|
||||
#include "ctree.h"
|
||||
#include "disk-io.h"
|
||||
#include "print-tree.h"
|
||||
#include "transaction.h"
|
||||
#include "crc32c.h"
|
||||
#include "kernel-lib/crc32c.h"
|
||||
#include "volumes.h"
|
||||
#include "free-space-cache.h"
|
||||
#include "free-space-tree.h"
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include <stdbool.h>
|
||||
#include "kerncompat.h"
|
||||
#include "extent_io.h"
|
||||
#include "list.h"
|
||||
#include "kernel-lib/list.h"
|
||||
#include "ctree.h"
|
||||
#include "volumes.h"
|
||||
#include "common/utils.h"
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#if BTRFS_FLAT_INCLUDES
|
||||
#include "kerncompat.h"
|
||||
#include "extent-cache.h"
|
||||
#include "list.h"
|
||||
#include "kernel-lib/list.h"
|
||||
#else
|
||||
#include <btrfs/kerncompat.h>
|
||||
#include <btrfs/extent-cache.h>
|
||||
|
|
|
@ -19,12 +19,12 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "kerncompat.h"
|
||||
#include "radix-tree.h"
|
||||
#include "kernel-lib/radix-tree.h"
|
||||
#include "ctree.h"
|
||||
#include "disk-io.h"
|
||||
#include "transaction.h"
|
||||
#include "print-tree.h"
|
||||
#include "crc32c.h"
|
||||
#include "kernel-lib/crc32c.h"
|
||||
#include "common/internal.h"
|
||||
|
||||
#define MAX_CSUM_ITEMS(r, size) ((((BTRFS_LEAF_DATA_SIZE(r->fs_info) - \
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#include "kerncompat.h"
|
||||
|
||||
#include "ctree.h"
|
||||
#include "list.h"
|
||||
#include "kernel-lib/list.h"
|
||||
#include "extent-cache.h"
|
||||
|
||||
/*
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
#include "transaction.h"
|
||||
#include "disk-io.h"
|
||||
#include "extent_io.h"
|
||||
#include "crc32c.h"
|
||||
#include "bitops.h"
|
||||
#include "kernel-lib/crc32c.h"
|
||||
#include "kernel-lib/bitops.h"
|
||||
#include "common/internal.h"
|
||||
#include "common/utils.h"
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#include "kerncompat.h"
|
||||
#include "ctree.h"
|
||||
#include "rbtree.h"
|
||||
#include "kernel-lib/rbtree.h"
|
||||
|
||||
struct btrfs_free_space {
|
||||
struct rb_node offset_index;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#include "free-space-tree.h"
|
||||
#include "volumes.h"
|
||||
#include "transaction.h"
|
||||
#include "bitops.h"
|
||||
#include "kernel-lib/bitops.h"
|
||||
#include "common/internal.h"
|
||||
|
||||
static struct btrfs_free_space_info *
|
||||
|
|
2
hash.h
2
hash.h
|
@ -19,7 +19,7 @@
|
|||
#ifndef __BTRFS_HASH_H__
|
||||
#define __BTRFS_HASH_H__
|
||||
|
||||
#include "crc32c.h"
|
||||
#include "kernel-lib/crc32c.h"
|
||||
|
||||
static inline u64 btrfs_name_hash(const char *name, int len)
|
||||
{
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include <getopt.h>
|
||||
|
||||
#include "kerncompat.h"
|
||||
#include "crc32c.h"
|
||||
#include "kernel-lib/crc32c.h"
|
||||
#include "ctree.h"
|
||||
#include "disk-io.h"
|
||||
#include "transaction.h"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
*
|
||||
*/
|
||||
#include "kerncompat.h"
|
||||
#include "crc32c.h"
|
||||
#include "kernel-lib/crc32c.h"
|
||||
#include <inttypes.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
|
|
@ -20,8 +20,7 @@
|
|||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "rbtree_augmented.h"
|
||||
#include "kernel-lib/rbtree_augmented.h"
|
||||
|
||||
/*
|
||||
* Template for implementing interval trees
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
*/
|
||||
|
||||
#include "kerncompat.h"
|
||||
#include "list_sort.h"
|
||||
#include "list.h"
|
||||
#include "kernel-lib/list_sort.h"
|
||||
#include "kernel-lib/list.h"
|
||||
|
||||
#define MAX_LIST_LENGTH_BITS 20
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
*/
|
||||
|
||||
#include "kerncompat.h"
|
||||
#include "radix-tree.h"
|
||||
#include "kernel-lib/radix-tree.h"
|
||||
#ifdef __KERNEL__
|
||||
#define RADIX_TREE_MAP_SHIFT (CONFIG_BASE_SMALL ? 4 : 6)
|
||||
#else
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
linux/lib/rbtree.c
|
||||
*/
|
||||
|
||||
#include "rbtree_augmented.h"
|
||||
#include "kernel-lib/rbtree_augmented.h"
|
||||
|
||||
/*
|
||||
* red-black trees properties: http://en.wikipedia.org/wiki/Rbtree
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#ifndef _LINUX_RBTREE_AUGMENTED_H
|
||||
#define _LINUX_RBTREE_AUGMENTED_H
|
||||
|
||||
#include "rbtree.h"
|
||||
#include "kernel-lib/rbtree.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
#define __ULIST_H__
|
||||
|
||||
#include "kerncompat.h"
|
||||
#include "list.h"
|
||||
#include "rbtree.h"
|
||||
#include "kernel-lib/list.h"
|
||||
#include "kernel-lib/rbtree.h"
|
||||
|
||||
/*
|
||||
* ulist is a generic data structure to hold a collection of unique u64
|
||||
|
|
|
@ -19,11 +19,11 @@
|
|||
#if BTRFS_FLAT_INCLUDES
|
||||
#include "kerncompat.h"
|
||||
#include "version.h"
|
||||
#include "rbtree.h"
|
||||
#include "radix-tree.h"
|
||||
#include "crc32c.h"
|
||||
#include "list.h"
|
||||
#include "sizes.h"
|
||||
#include "kernel-lib/rbtree.h"
|
||||
#include "kernel-lib/radix-tree.h"
|
||||
#include "kernel-lib/crc32c.h"
|
||||
#include "kernel-lib/list.h"
|
||||
#include "kernel-lib/sizes.h"
|
||||
#include "ctree.h"
|
||||
#include "extent_io.h"
|
||||
#include "ioctl.h"
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
#include "volumes.h"
|
||||
#include "transaction.h"
|
||||
#include "common/utils.h"
|
||||
#include "list_sort.h"
|
||||
#include "kernel-lib/list_sort.h"
|
||||
#include "common/help.h"
|
||||
#include "rbtree-utils.h"
|
||||
#include "mkfs/common.h"
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <uuid/uuid.h>
|
||||
#include "kerncompat.h"
|
||||
#include "radix-tree.h"
|
||||
#include "kernel-lib/radix-tree.h"
|
||||
#include "ctree.h"
|
||||
#include "disk-io.h"
|
||||
#include "print-tree.h"
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <uuid/uuid.h>
|
||||
#include "kerncompat.h"
|
||||
#include "radix-tree.h"
|
||||
#include "kernel-lib/radix-tree.h"
|
||||
#include "ctree.h"
|
||||
#include "disk-io.h"
|
||||
#include "print-tree.h"
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <fcntl.h>
|
||||
#include "kerncompat.h"
|
||||
#include "radix-tree.h"
|
||||
#include "kernel-lib/radix-tree.h"
|
||||
#include "ctree.h"
|
||||
#include "disk-io.h"
|
||||
#include "print-tree.h"
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <signal.h>
|
||||
#include "kerncompat.h"
|
||||
#include "radix-tree.h"
|
||||
#include "kernel-lib/radix-tree.h"
|
||||
#include "ctree.h"
|
||||
#include "disk-io.h"
|
||||
#include "print-tree.h"
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#ifndef __RBTREE_UTILS__
|
||||
#define __RBTREE_UTILS__
|
||||
|
||||
#include "rbtree.h"
|
||||
#include "kernel-lib/rbtree.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#include "send.h"
|
||||
#include "send-stream.h"
|
||||
#include "crc32c.h"
|
||||
#include "kernel-lib/crc32c.h"
|
||||
#include "common/utils.h"
|
||||
|
||||
struct btrfs_send_stream {
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#if BTRFS_FLAT_INCLUDES
|
||||
#include "kerncompat.h"
|
||||
#include "ctree.h"
|
||||
#include "rbtree.h"
|
||||
#include "kernel-lib/rbtree.h"
|
||||
#else
|
||||
#include <btrfs/kerncompat.h>
|
||||
#include <btrfs/ctree.h>
|
||||
|
|
Loading…
Reference in New Issue