]> 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.2
authorChristoph Hellwig <hch@lst.de>
Thu, 5 Jun 2025 11:18:44 +0000 (13:18 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 17 Jun 2025 05:30:10 +0000 (07:30 +0200)
commit244d688c821047fd67b175acdee917fb97adacc8
tree71726321c6fd234a39633c5670e3f8d92a762306
parentdde5582358cc2ad64f0c77e106ef38d2409c3c47
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: Daniel Gomez <da.gomez@samsung.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
drivers/nvme/host/pci.c