summaryrefslogtreecommitdiff
path: root/drivers/nvme/host/Makefile
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-07-18 08:07:26 +0300
committerJens Axboe <axboe@kernel.dk>2022-08-03 02:22:48 +0300
commiteb7e2d92588cc6351286de13e3b5d70ecc768888 (patch)
treeb42709c131a2d12f365ef68260a4170958a7b69e /drivers/nvme/host/Makefile
parent679c54f2de672b7d79d02f8c4ad483ff6dd8ce2e (diff)
downloadlinux-eb7e2d92588cc6351286de13e3b5d70ecc768888.tar.xz
nvme: don't always build constants.o
The entire content of constants.c if guarded by an ifdef, so switch to just building the file conditionally instead. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Keith Busch <kbusch@kernel.org> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme/host/Makefile')
-rw-r--r--drivers/nvme/host/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/nvme/host/Makefile b/drivers/nvme/host/Makefile
index a3e88f32f560..e27202d22c7d 100644
--- a/drivers/nvme/host/Makefile
+++ b/drivers/nvme/host/Makefile
@@ -10,7 +10,8 @@ obj-$(CONFIG_NVME_FC) += nvme-fc.o
obj-$(CONFIG_NVME_TCP) += nvme-tcp.o
obj-$(CONFIG_NVME_APPLE) += nvme-apple.o
-nvme-core-y := core.o ioctl.o constants.o
+nvme-core-y += core.o ioctl.o
+nvme-core-$(CONFIG_NVME_VERBOSE_ERRORS) += constants.o
nvme-core-$(CONFIG_TRACING) += trace.o
nvme-core-$(CONFIG_NVME_MULTIPATH) += multipath.o
nvme-core-$(CONFIG_BLK_DEV_ZONED) += zns.o