1
0
Fork 0
freescale-linux-fslc/arch/openrisc/mm
Mike Rapoport d5c4605e9e openrisc: mm/init.c: remove unused memblock_region variable in map_ram()
commit 4eff124347 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: b10d6bca87 ("arch, drivers: replace for_each_membock() with for_each_mem_range()")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Stafford Horne <shorne@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-26 12:06:57 +02:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
cache.c openrisc: Fix cache API compile issue when not inlining 2020-09-07 21:02:15 +09:00
fault.c mm/openrisc: use general page fault accounting 2020-08-12 10:58:03 -07:00
init.c openrisc: mm/init.c: remove unused memblock_region variable in map_ram() 2021-05-26 12:06:57 +02:00
ioremap.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
tlb.c openrisc: Implement proper SMP tlb flushing 2020-08-04 10:59:45 +09:00