Searched hist:d874297b (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/cxl/core/ |
H A D | memdev.c | d874297b Wed Feb 08 12:19:44 CST 2023 Davidlohr Bueso <dave@stgolabs.net> cxl/mem: Correct full ID range allocation
For ID allocations we want 0-(max-1), ie: smatch complains:
error: Calling ida_alloc_range() with a 'max' argument which is a power of 2. -1 missing?
Correct this and also replace the call to use the max() flavor instead.
Signed-off-by: Davidlohr Bueso <dave@stgolabs.net> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Link: https://lore.kernel.org/r/20230208181944.240261-1-dave@stgolabs.net Signed-off-by: Dan Williams <dan.j.williams@intel.com>
|