nvme-pci: rework the build time assert for NVME_MAX_NR_DESCRIPTORS
authorChristoph Hellwig <hch@lst.de>
Wed, 25 Jun 2025 11:35:05 +0000 (13:35 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 30 Jun 2025 21:50:53 +0000 (15:50 -0600)
commitba83e321ccf2674269b16531b785515b7071da35
tree7c976053287866278ca33a98bec21c0726898e85
parent16353f1b0e084083610ef5c535d2ced419cf21b7
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>
Link: https://lore.kernel.org/r/20250625113531.522027-9-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/pci.c