diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2017-02-24 17:55:59 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-02-24 20:46:54 -0500 |
commit | 0262d9c845ec349edf93f69688a5129c36cc2232 (patch) | |
tree | 2db543e04084d9a8ccbe8bc145de1e88487f6b16 /include/linux/memblock.h | |
parent | 409efd4c9bae4bbf58cc8476077db58454b1ed7e (diff) |
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>
Diffstat (limited to 'include/linux/memblock.h')
-rw-r--r-- | include/linux/memblock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/memblock.h b/include/linux/memblock.h index 38bcf00cbed3..bdfc65af4152 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h | |||
@@ -42,6 +42,7 @@ struct memblock_type { | |||
42 | unsigned long max; /* size of the allocated array */ | 42 | unsigned long max; /* size of the allocated array */ |
43 | phys_addr_t total_size; /* size of all regions */ | 43 | phys_addr_t total_size; /* size of all regions */ |
44 | struct memblock_region *regions; | 44 | struct memblock_region *regions; |
45 | char *name; | ||
45 | }; | 46 | }; |
46 | 47 | ||
47 | struct memblock { | 48 | struct memblock { |