1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 2 3 # Subset of W=1 warnings 3 # Subset of W=1 warnings 4 subdir-ccflags-y += -Wextra -Wunused -Wno-unus 4 subdir-ccflags-y += -Wextra -Wunused -Wno-unused-parameter 5 subdir-ccflags-y += -Wmissing-declarations 5 subdir-ccflags-y += -Wmissing-declarations 6 subdir-ccflags-y += -Wmissing-format-attribute 6 subdir-ccflags-y += -Wmissing-format-attribute 7 subdir-ccflags-y += -Wmissing-prototypes 7 subdir-ccflags-y += -Wmissing-prototypes 8 subdir-ccflags-y += -Wold-style-definition 8 subdir-ccflags-y += -Wold-style-definition 9 subdir-ccflags-y += -Wmissing-include-dirs 9 subdir-ccflags-y += -Wmissing-include-dirs 10 condflags := \ 10 condflags := \ 11 $(call cc-option, -Wunused-but-set-var 11 $(call cc-option, -Wunused-but-set-variable) \ 12 $(call cc-option, -Wunused-const-varia 12 $(call cc-option, -Wunused-const-variable) \ 13 $(call cc-option, -Wpacked-not-aligned 13 $(call cc-option, -Wpacked-not-aligned) \ 14 $(call cc-option, -Wstringop-truncatio !! 14 $(call cc-option, -Wstringop-truncation) 15 $(call cc-option, -Wmaybe-uninitialize << 16 subdir-ccflags-y += $(condflags) 15 subdir-ccflags-y += $(condflags) 17 # The following turn off the warnings enabled 16 # The following turn off the warnings enabled by -Wextra 18 subdir-ccflags-y += -Wno-missing-field-initial 17 subdir-ccflags-y += -Wno-missing-field-initializers 19 subdir-ccflags-y += -Wno-sign-compare 18 subdir-ccflags-y += -Wno-sign-compare 20 subdir-ccflags-y += -Wno-type-limits 19 subdir-ccflags-y += -Wno-type-limits 21 subdir-ccflags-y += -Wno-shift-negative-value << 22 20 23 obj-$(CONFIG_BTRFS_FS) := btrfs.o 21 obj-$(CONFIG_BTRFS_FS) := btrfs.o 24 22 25 btrfs-y += super.o ctree.o extent-tree.o print 23 btrfs-y += super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \ 26 file-item.o inode-item.o disk-io.o 24 file-item.o inode-item.o disk-io.o \ 27 transaction.o inode.o file.o defrag !! 25 transaction.o inode.o file.o tree-defrag.o \ 28 extent_map.o sysfs.o accessors.o xa !! 26 extent_map.o sysfs.o struct-funcs.o xattr.o ordered-data.o \ 29 extent_io.o volumes.o async-thread. 27 extent_io.o volumes.o async-thread.o ioctl.o locking.o orphan.o \ 30 export.o tree-log.o free-space-cach 28 export.o tree-log.o free-space-cache.o zlib.o lzo.o zstd.o \ 31 compression.o delayed-ref.o relocat 29 compression.o delayed-ref.o relocation.o delayed-inode.o scrub.o \ 32 backref.o ulist.o qgroup.o send.o d !! 30 reada.o backref.o ulist.o qgroup.o send.o dev-replace.o raid56.o \ 33 uuid-tree.o props.o free-space-tree 31 uuid-tree.o props.o free-space-tree.o tree-checker.o space-info.o \ 34 block-rsv.o delalloc-space.o block- 32 block-rsv.o delalloc-space.o block-group.o discard.o reflink.o \ 35 subpage.o tree-mod-log.o extent-io- !! 33 subpage.o tree-mod-log.o 36 lru_cache.o raid-stripe-tree.o fiem << 37 34 38 btrfs-$(CONFIG_BTRFS_FS_POSIX_ACL) += acl.o 35 btrfs-$(CONFIG_BTRFS_FS_POSIX_ACL) += acl.o >> 36 btrfs-$(CONFIG_BTRFS_FS_CHECK_INTEGRITY) += check-integrity.o 39 btrfs-$(CONFIG_BTRFS_FS_REF_VERIFY) += ref-ver 37 btrfs-$(CONFIG_BTRFS_FS_REF_VERIFY) += ref-verify.o 40 btrfs-$(CONFIG_BLK_DEV_ZONED) += zoned.o 38 btrfs-$(CONFIG_BLK_DEV_ZONED) += zoned.o 41 btrfs-$(CONFIG_FS_VERITY) += verity.o 39 btrfs-$(CONFIG_FS_VERITY) += verity.o 42 40 43 btrfs-$(CONFIG_BTRFS_FS_RUN_SANITY_TESTS) += t 41 btrfs-$(CONFIG_BTRFS_FS_RUN_SANITY_TESTS) += tests/free-space-tests.o \ 44 tests/extent-buffer-tests.o tests/btrf 42 tests/extent-buffer-tests.o tests/btrfs-tests.o \ 45 tests/extent-io-tests.o tests/inode-te 43 tests/extent-io-tests.o tests/inode-tests.o tests/qgroup-tests.o \ 46 tests/free-space-tree-tests.o tests/ex 44 tests/free-space-tree-tests.o tests/extent-map-tests.o
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.