]> 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
authorChristoph Hellwig <hch@lst.de>
Thu, 5 Jun 2025 11:18:44 +0000 (13:18 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 10 Jun 2025 05:06:34 +0000 (07:06 +0200)
commited036e1a7d95624c0aa8a2beaf9a0ee24251dcc7
tree92d5bb9c761661d5a71df33460e67119f845593e
parente99af38154cb84a594de33694b5b268640139f91
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 arithmerics used for building
up the PRP chain.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c