]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: Move opcode string helper functions declarations
authorDamien Le Moal <dlemoal@kernel.org>
Sat, 4 Jan 2025 04:59:34 +0000 (13:59 +0900)
committerKeith Busch <kbusch@kernel.org>
Sat, 11 Jan 2025 03:30:46 +0000 (19:30 -0800)
commit30e77e0fbec6940ecc5c79ffe0f076c54cf5a8d9
tree2eeed967e3c318533174fbc821ab6f15874536c6
parent002bb02729dc7f5a9b356e98e672262ca432b861
nvme: Move opcode string helper functions declarations

Move the declaration of all helper functions converting NVMe command
opcodes and status codes into strings from drivers/nvme/host/nvme.h
into include/linux/nvme.h, together with the commands definitions.
This allows NVMe target drivers to call these functions without having
to include a host header file.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: Rick Wertenbroek <rick.wertenbroek@gmail.com>
Tested-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/nvme.h
include/linux/nvme.h