Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Chris Mason | eb60cea | 2007-02-02 09:18:22 -0500 | [diff] [blame] | 2 | |
Nikolay Borisov | e9aa7c2 | 2021-01-22 11:58:05 +0200 | [diff] [blame] | 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 |
David Sterba | ebd99a6 | 2021-03-17 11:43:13 +0100 | [diff] [blame] | 10 | condflags := \ |
| 11 | $(call cc-option, -Wunused-but-set-variable) \ |
| 12 | $(call cc-option, -Wunused-const-variable) \ |
| 13 | $(call cc-option, -Wpacked-not-aligned) \ |
| 14 | $(call cc-option, -Wstringop-truncation) |
| 15 | subdir-ccflags-y += $(condflags) |
Nikolay Borisov | e9aa7c2 | 2021-01-22 11:58:05 +0200 | [diff] [blame] | 16 | # The following turn off the warnings enabled by -Wextra |
| 17 | subdir-ccflags-y += -Wno-missing-field-initializers |
| 18 | subdir-ccflags-y += -Wno-sign-compare |
| 19 | subdir-ccflags-y += -Wno-type-limits |
| 20 | |
Sage Weil | 61f8c86 | 2008-10-09 11:52:35 -0400 | [diff] [blame] | 21 | obj-$(CONFIG_BTRFS_FS) := btrfs.o |
Christoph Hellwig | 2ea2544 | 2009-04-13 15:32:28 +0200 | [diff] [blame] | 22 | |
| 23 | btrfs-y += super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \ |
Nikolay Borisov | 5297199 | 2020-11-26 15:10:39 +0200 | [diff] [blame] | 24 | file-item.o inode-item.o disk-io.o \ |
Chris Mason | d352ac6 | 2008-09-29 15:18:18 -0400 | [diff] [blame] | 25 | transaction.o inode.o file.o tree-defrag.o \ |
Chris Mason | d1310b2 | 2008-01-24 16:13:08 -0500 | [diff] [blame] | 26 | extent_map.o sysfs.o struct-funcs.o xattr.o ordered-data.o \ |
Yan Zheng | 31153d8 | 2008-07-28 15:32:19 -0400 | [diff] [blame] | 27 | extent_io.o volumes.o async-thread.o ioctl.o locking.o orphan.o \ |
Nick Terrell | 5c1aab1 | 2017-08-09 19:39:02 -0700 | [diff] [blame] | 28 | export.o tree-log.o free-space-cache.o zlib.o lzo.o zstd.o \ |
Arne Jansen | 7414a03 | 2011-05-23 14:33:49 +0200 | [diff] [blame] | 29 | compression.o delayed-ref.o relocation.o delayed-inode.o scrub.o \ |
Stefan Behrens | 07b30a4 | 2013-08-15 17:11:17 +0200 | [diff] [blame] | 30 | reada.o backref.o ulist.o qgroup.o send.o dev-replace.o raid56.o \ |
Josef Bacik | 550fa22 | 2019-06-19 13:47:22 -0400 | [diff] [blame] | 31 | uuid-tree.o props.o free-space-tree.o tree-checker.o space-info.o \ |
Qu Wenruo | cac06d8 | 2021-01-26 16:33:47 +0800 | [diff] [blame] | 32 | block-rsv.o delalloc-space.o block-group.o discard.o reflink.o \ |
Filipe Manana | f3a84cc | 2021-03-11 14:31:07 +0000 | [diff] [blame] | 33 | subpage.o tree-mod-log.o |
Li Zefan | 9b89d95 | 2011-07-14 03:17:39 +0000 | [diff] [blame] | 34 | |
| 35 | btrfs-$(CONFIG_BTRFS_FS_POSIX_ACL) += acl.o |
Stefan Behrens | f11e4d7 | 2011-11-01 17:06:39 +0100 | [diff] [blame] | 36 | btrfs-$(CONFIG_BTRFS_FS_CHECK_INTEGRITY) += check-integrity.o |
Josef Bacik | fd708b8 | 2017-09-29 15:43:50 -0400 | [diff] [blame] | 37 | btrfs-$(CONFIG_BTRFS_FS_REF_VERIFY) += ref-verify.o |
Naohiro Aota | 5b31646 | 2020-11-10 20:26:07 +0900 | [diff] [blame] | 38 | btrfs-$(CONFIG_BLK_DEV_ZONED) += zoned.o |
Boris Burkov | 1460540 | 2021-06-30 13:01:49 -0700 | [diff] [blame] | 39 | btrfs-$(CONFIG_FS_VERITY) += verity.o |
Josef Bacik | dc11dd5 | 2013-08-14 15:05:12 -0400 | [diff] [blame] | 40 | |
Josef Bacik | 06ea65a | 2013-09-19 16:07:01 -0400 | [diff] [blame] | 41 | btrfs-$(CONFIG_BTRFS_FS_RUN_SANITY_TESTS) += tests/free-space-tests.o \ |
Josef Bacik | aaedb55 | 2013-10-11 14:44:09 -0400 | [diff] [blame] | 42 | tests/extent-buffer-tests.o tests/btrfs-tests.o \ |
Omar Sandoval | 7c55ee0 | 2015-09-29 20:50:36 -0700 | [diff] [blame] | 43 | tests/extent-io-tests.o tests/inode-tests.o tests/qgroup-tests.o \ |
Liu Bo | 72b2807 | 2018-01-05 12:51:12 -0700 | [diff] [blame] | 44 | tests/free-space-tree-tests.o tests/extent-map-tests.o |