]> www.infradead.org Git - users/hch/misc.git/commit
nvme-pci: rework the build time assert for NVME_MAX_NR_DESCRIPTORS nvme-new-dma-api.3
authorChristoph Hellwig <hch@lst.de>
Thu, 5 Jun 2025 11:18:44 +0000 (13:18 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 25 Jun 2025 06:54:50 +0000 (08:54 +0200)
commit3cc34f80244415f32722ca03e582cbe2ce8ba76e
tree84284e7bffd447c42a820c7fa844cae5603a279e
parent8321d901822752ae28c66f113a7fcab60bd0f0d7
nvme-pci: rework the build time assert for NVME_MAX_NR_DESCRIPTORS

The current use of an always_inline helper is a bit convoluted.
Instead use macros that represent the arithmetics used for building
up the PRP chain.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Daniel Gomez <da.gomez@samsung.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
drivers/nvme/host/pci.c