Merge tag 'leds-5.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/pavel...
[linux-2.6-microblaze.git] / fs / btrfs / Makefile
1 # SPDX-License-Identifier: GPL-2.0
2
3 # Subset of W=1 warnings
4 subdir-ccflags-y += -Wextra -Wunused -Wno-unused-parameter
5 subdir-ccflags-y += -Wmissing-declarations
6 subdir-ccflags-y += -Wmissing-format-attribute
7 subdir-ccflags-y += -Wmissing-prototypes
8 subdir-ccflags-y += -Wold-style-definition
9 subdir-ccflags-y += -Wmissing-include-dirs
10 subdir-ccflags-y += $(call cc-option, -Wunused-but-set-variable)
11 subdir-ccflags-y += $(call cc-option, -Wunused-const-variable)
12 subdir-ccflags-y += $(call cc-option, -Wpacked-not-aligned)
13 subdir-ccflags-y += $(call cc-option, -Wstringop-truncation)
14 # The following turn off the warnings enabled by -Wextra
15 subdir-ccflags-y += -Wno-missing-field-initializers
16 subdir-ccflags-y += -Wno-sign-compare
17 subdir-ccflags-y += -Wno-type-limits
18
19 obj-$(CONFIG_BTRFS_FS) := btrfs.o
20
21 btrfs-y += super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \
22            file-item.o inode-item.o disk-io.o \
23            transaction.o inode.o file.o tree-defrag.o \
24            extent_map.o sysfs.o struct-funcs.o xattr.o ordered-data.o \
25            extent_io.o volumes.o async-thread.o ioctl.o locking.o orphan.o \
26            export.o tree-log.o free-space-cache.o zlib.o lzo.o zstd.o \
27            compression.o delayed-ref.o relocation.o delayed-inode.o scrub.o \
28            reada.o backref.o ulist.o qgroup.o send.o dev-replace.o raid56.o \
29            uuid-tree.o props.o free-space-tree.o tree-checker.o space-info.o \
30            block-rsv.o delalloc-space.o block-group.o discard.o reflink.o \
31            subpage.o
32
33 btrfs-$(CONFIG_BTRFS_FS_POSIX_ACL) += acl.o
34 btrfs-$(CONFIG_BTRFS_FS_CHECK_INTEGRITY) += check-integrity.o
35 btrfs-$(CONFIG_BTRFS_FS_REF_VERIFY) += ref-verify.o
36 btrfs-$(CONFIG_BLK_DEV_ZONED) += zoned.o
37
38 btrfs-$(CONFIG_BTRFS_FS_RUN_SANITY_TESTS) += tests/free-space-tests.o \
39         tests/extent-buffer-tests.o tests/btrfs-tests.o \
40         tests/extent-io-tests.o tests/inode-tests.o tests/qgroup-tests.o \
41         tests/free-space-tree-tests.o tests/extent-map-tests.o