blob: 3dcf9bcc232613735690f763ea98daf7ca62a062 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Chris Masoneb60cea2007-02-02 09:18:22 -05002
Nikolay Borisove9aa7c22021-01-22 11:58:05 +02003# Subset of W=1 warnings
4subdir-ccflags-y += -Wextra -Wunused -Wno-unused-parameter
5subdir-ccflags-y += -Wmissing-declarations
6subdir-ccflags-y += -Wmissing-format-attribute
7subdir-ccflags-y += -Wmissing-prototypes
8subdir-ccflags-y += -Wold-style-definition
9subdir-ccflags-y += -Wmissing-include-dirs
David Sterbaebd99a62021-03-17 11:43:13 +010010condflags := \
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)
15subdir-ccflags-y += $(condflags)
Nikolay Borisove9aa7c22021-01-22 11:58:05 +020016# The following turn off the warnings enabled by -Wextra
17subdir-ccflags-y += -Wno-missing-field-initializers
18subdir-ccflags-y += -Wno-sign-compare
19subdir-ccflags-y += -Wno-type-limits
20
Sage Weil61f8c862008-10-09 11:52:35 -040021obj-$(CONFIG_BTRFS_FS) := btrfs.o
Christoph Hellwig2ea25442009-04-13 15:32:28 +020022
23btrfs-y += super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \
Nikolay Borisov52971992020-11-26 15:10:39 +020024 file-item.o inode-item.o disk-io.o \
Chris Masond352ac62008-09-29 15:18:18 -040025 transaction.o inode.o file.o tree-defrag.o \
Chris Masond1310b22008-01-24 16:13:08 -050026 extent_map.o sysfs.o struct-funcs.o xattr.o ordered-data.o \
Yan Zheng31153d82008-07-28 15:32:19 -040027 extent_io.o volumes.o async-thread.o ioctl.o locking.o orphan.o \
Nick Terrell5c1aab12017-08-09 19:39:02 -070028 export.o tree-log.o free-space-cache.o zlib.o lzo.o zstd.o \
Arne Jansen7414a032011-05-23 14:33:49 +020029 compression.o delayed-ref.o relocation.o delayed-inode.o scrub.o \
Stefan Behrens07b30a42013-08-15 17:11:17 +020030 reada.o backref.o ulist.o qgroup.o send.o dev-replace.o raid56.o \
Josef Bacik550fa222019-06-19 13:47:22 -040031 uuid-tree.o props.o free-space-tree.o tree-checker.o space-info.o \
Qu Wenruocac06d82021-01-26 16:33:47 +080032 block-rsv.o delalloc-space.o block-group.o discard.o reflink.o \
Filipe Mananaf3a84cc2021-03-11 14:31:07 +000033 subpage.o tree-mod-log.o
Li Zefan9b89d952011-07-14 03:17:39 +000034
35btrfs-$(CONFIG_BTRFS_FS_POSIX_ACL) += acl.o
Stefan Behrensf11e4d72011-11-01 17:06:39 +010036btrfs-$(CONFIG_BTRFS_FS_CHECK_INTEGRITY) += check-integrity.o
Josef Bacikfd708b82017-09-29 15:43:50 -040037btrfs-$(CONFIG_BTRFS_FS_REF_VERIFY) += ref-verify.o
Naohiro Aota5b316462020-11-10 20:26:07 +090038btrfs-$(CONFIG_BLK_DEV_ZONED) += zoned.o
Boris Burkov14605402021-06-30 13:01:49 -070039btrfs-$(CONFIG_FS_VERITY) += verity.o
Josef Bacikdc11dd52013-08-14 15:05:12 -040040
Josef Bacik06ea65a2013-09-19 16:07:01 -040041btrfs-$(CONFIG_BTRFS_FS_RUN_SANITY_TESTS) += tests/free-space-tests.o \
Josef Bacikaaedb552013-10-11 14:44:09 -040042 tests/extent-buffer-tests.o tests/btrfs-tests.o \
Omar Sandoval7c55ee02015-09-29 20:50:36 -070043 tests/extent-io-tests.o tests/inode-tests.o tests/qgroup-tests.o \
Liu Bo72b28072018-01-05 12:51:12 -070044 tests/free-space-tree-tests.o tests/extent-map-tests.o