]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nvme: tcp: Fix compilation warning with W=1
authorDamien Le Moal <dlemoal@kernel.org>
Thu, 13 Feb 2025 06:52:31 +0000 (15:52 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Feb 2025 12:34:18 +0000 (04:34 -0800)
commited8ff774a49c8e7a7dffd412a3445f39a887dc8c
tree7fcc0761e213fd1d94ae9cc1655dc72fac82e7d4
parentcc0607594f6813342b27c752c6fb6f6eb9980cb5
nvme: tcp: Fix compilation warning with W=1

[ Upstream commit cd513e0434c3e736c549bc99bf7982658b25114d ]

When compiling with W=1, a warning result for the function
nvme_tcp_set_queue_io_cpu():

host/tcp.c:1578: warning: Function parameter or struct member 'queue'
not described in 'nvme_tcp_set_queue_io_cpu'
host/tcp.c:1578: warning: expecting prototype for Track the number of
queues assigned to each cpu using a global per(). Prototype was for
nvme_tcp_set_queue_io_cpu() instead

Avoid this warning by using the regular comment format for the function
nvme_tcp_set_queue_io_cpu() instead of the kdoc comment format.

Fixes: 32193789878c ("nvme-tcp: Fix I/O queue cpu spreading for multiple controllers")
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/tcp.c