On Fri, 30 Dec 2022 09:09:26 +0800, Guoqing Jiang wrote: > We need to pass 'end - 1' to ida_alloc_max after switch from > ida_simple_get to ida_alloc_max. > > Otherwise smatch warns. > > drivers/block/rnbd/rnbd-clt.c:1460 init_dev() error: Calling ida_alloc_max() with a 'max' argument which is a power of 2. -1 missing? > > [...] Applied, thanks! [1/1] block/rnbd-clt: fix wrong max ID in ida_alloc_max commit: 9d6033e350694a67885605674244d43c9559dc36 Best regards, -- Jens Axboe