]> git.baikalelectronics.ru Git - kernel.git/commit
memblock: embed memblock type name within struct memblock_type
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 24 Feb 2017 22:55:59 +0000 (14:55 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 25 Feb 2017 01:46:54 +0000 (17:46 -0800)
commite1a2be3e4c64896c37619d32138ab932a223d4f0
tree2db543e04084d9a8ccbe8bc145de1e88487f6b16
parentcaa5c96147ba97ef6a8b30ddea56825700351d2f
memblock: embed memblock type name within struct memblock_type

Provide the name of each memblock type with struct memblock_type.  This
allows to get rid of the function memblock_type_name() and duplicating
the type names in __memblock_dump_all().

The only memblock_type usage out of mm/memblock.c seems to be
arch/s390/kernel/crash_dump.c.  While at it, give it a name.

Link: http://lkml.kernel.org/r/20170120123456.46508-4-heiko.carstens@de.ibm.com
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Philipp Hachtmann <phacht@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/s390/kernel/crash_dump.c
include/linux/memblock.h
mm/memblock.c