Skip to content

Commit 8f92d6b

Browse files
committed
nvme: tcp: Fix compilation warning with W=1
JIRA: https://issues.redhat.com/browse/RHEL-76529 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: 3219378 ("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> (cherry picked from commit cd513e0) Signed-off-by: John Meneghini <jmeneghi@redhat.com>
1 parent 1ea0d85 commit 8f92d6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/nvme/host/tcp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1651,7 +1651,7 @@ static bool nvme_tcp_poll_queue(struct nvme_tcp_queue *queue)
16511651
ctrl->io_queues[HCTX_TYPE_POLL];
16521652
}
16531653

1654-
/**
1654+
/*
16551655
* Track the number of queues assigned to each cpu using a global per-cpu
16561656
* counter and select the least used cpu from the mq_map. Our goal is to spread
16571657
* different controllers I/O threads across different cpu cores.

0 commit comments

Comments
 (0)