nvme: don't always build constants.o
authorChristoph Hellwig <hch@lst.de>
Mon, 18 Jul 2022 05:07:26 +0000 (07:07 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 26 Jul 2022 20:04:19 +0000 (16:04 -0400)
commit5d3c8d88c6b36e28385d49f1fef8f8385e3b0390
tree07a497edbf56a9aa83b1f57f41eebe4472a3b02f
parent5509e85fd887bebbf9f5c13336e59582bbdf4876
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>
drivers/nvme/host/Makefile
drivers/nvme/host/constants.c