]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | # SPDX-License-Identifier: GPL-2.0 |
eb60ceac | 2 | |
e9aa7c28 NB |
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 | |
ebd99a6b DS |
10 | condflags := \ |
11 | $(call cc-option, -Wunused-but-set-variable) \ | |
12 | $(call cc-option, -Wunused-const-variable) \ | |
13 | $(call cc-option, -Wpacked-not-aligned) \ | |
1ec49744 JB |
14 | $(call cc-option, -Wstringop-truncation) \ |
15 | $(call cc-option, -Wmaybe-uninitialized) | |
ebd99a6b | 16 | subdir-ccflags-y += $(condflags) |
e9aa7c28 NB |
17 | # The following turn off the warnings enabled by -Wextra |
18 | subdir-ccflags-y += -Wno-missing-field-initializers | |
19 | subdir-ccflags-y += -Wno-sign-compare | |
20 | subdir-ccflags-y += -Wno-type-limits | |
1344794a | 21 | subdir-ccflags-y += -Wno-shift-negative-value |
e9aa7c28 | 22 | |
61f8c86e | 23 | obj-$(CONFIG_BTRFS_FS) := btrfs.o |
2ea2544e CH |
24 | |
25 | btrfs-y += super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \ | |
5297199a | 26 | file-item.o inode-item.o disk-io.o \ |
778dd695 | 27 | transaction.o inode.o file.o defrag.o \ |
818fe33a | 28 | extent_map.o sysfs.o accessors.o xattr.o ordered-data.o \ |
31153d81 | 29 | extent_io.o volumes.o async-thread.o ioctl.o locking.o orphan.o \ |
5c1aab1d | 30 | export.o tree-log.o free-space-cache.o zlib.o lzo.o zstd.o \ |
7414a03f | 31 | compression.o delayed-ref.o relocation.o delayed-inode.o scrub.o \ |
f26c9238 | 32 | backref.o ulist.o qgroup.o send.o dev-replace.o raid56.o \ |
550fa228 | 33 | uuid-tree.o props.o free-space-tree.o tree-checker.o space-info.o \ |
cac06d84 | 34 | block-rsv.o delalloc-space.o block-group.o discard.o reflink.o \ |
90b90d4a | 35 | subpage.o tree-mod-log.o extent-io-tree.o fs.o messages.o bio.o \ |
02c372e1 | 36 | lru_cache.o raid-stripe-tree.o |
9b89d95a LZ |
37 | |
38 | btrfs-$(CONFIG_BTRFS_FS_POSIX_ACL) += acl.o | |
fd708b81 | 39 | btrfs-$(CONFIG_BTRFS_FS_REF_VERIFY) += ref-verify.o |
5b316468 | 40 | btrfs-$(CONFIG_BLK_DEV_ZONED) += zoned.o |
14605409 | 41 | btrfs-$(CONFIG_FS_VERITY) += verity.o |
dc11dd5d | 42 | |
06ea65a3 | 43 | btrfs-$(CONFIG_BTRFS_FS_RUN_SANITY_TESTS) += tests/free-space-tests.o \ |
aaedb55b | 44 | tests/extent-buffer-tests.o tests/btrfs-tests.o \ |
7c55ee0c | 45 | tests/extent-io-tests.o tests/inode-tests.o tests/qgroup-tests.o \ |
72b28077 | 46 | tests/free-space-tree-tests.o tests/extent-map-tests.o |