Commit dce2add3 authored by Mike Rapoport's avatar Mike Rapoport Committed by Zheng Zengkai
Browse files

openrisc: mm/init.c: remove unused memblock_region variable in map_ram()



stable inclusion
from stable-5.10.40
commit d5c4605e9e1cf8f505df29fe21a091fa3edf2d2a
bugzilla: 51882
CVE: NA

--------------------------------

commit 4eff1243 upstream.

Kernel test robot reports:

cppcheck possible warnings: (new ones prefixed by >>, may not real problems)

>> arch/openrisc/mm/init.c:125:10: warning: Uninitialized variable: region [uninitvar]
            region->base, region->base + region->size);
            ^

Replace usage of memblock_region fields with 'start' and 'end' variables
that are initialized in for_each_mem_range() and remove the declaration of
region.

Fixes: b10d6bca ("arch, drivers: replace for_each_membock() with for_each_mem_range()")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarMike Rapoport <rppt@linux.ibm.com>
Signed-off-by: default avatarStafford Horne <shorne@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatarWeilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 86205692
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment