nvme: don't always build constants.o
authorChristoph Hellwig <hch@lst.de>
Mon, 18 Jul 2022 05:07:26 +0000 (07:07 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Aug 2022 23:22:48 +0000 (17:22 -0600)
commiteb7e2d92588cc6351286de13e3b5d70ecc768888
treeb42709c131a2d12f365ef68260a4170958a7b69e
parent679c54f2de672b7d79d02f8c4ad483ff6dd8ce2e
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>
drivers/nvme/host/Makefile
drivers/nvme/host/constants.c