[PATCH 1/2] nvme-tcp: initialize the mq_map to NULL

Keith Busch kbusch at kernel.org
Fri Jan 10 19:57:59 PST 2025


On Sat, Jan 11, 2025 at 12:48:04AM +0200, Sagi Grimberg wrote:
> 
> 
> 
> On 09/01/2025 8:30, Chaitanya Kulkarni wrote:
> > Initialize the local variable mq_map to NULL to remove the kernel
> > test robot warning.
> > 
> > drivers/nvme/host/tcp.c:1594:13: warning: variable 'mq_map' is used
> > uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
> > 
> > Fixes: bd0f5c103101 ("nvme-tcp: Fix I/O queue cpu spreading for multiple controllers")
> > Reported-by: kernel test robot <lkp at intel.com>
> > Closes: https://lore.kernel.org/oe-kbuild-all/202501091328.r4kJ6xhy-lkp@intel.com/
> > Signed-off-by: Chaitanya Kulkarni <kch at nvidia.com>
> 
> We should probably just fold both this and the next one to the original
> patch.

Sure, folded in with an updated commit message to reflect Chaitanya's
changes.



More information about the Linux-nvme mailing list