Messages in this thread Patch in this message | | | From | Aaron Tomlin <> | Subject | [RFC PATCH 2/3] x86/boot/e820: Make e820_type_to_string() external | Date | Sat, 11 Jun 2022 21:48:58 +0100 |
| |
No functional change.
This patch allows e820_type_to_string() to be available for external use, in preparation to enhance the error message generated by arch_rmrr_sanity_check().
Signed-off-by: Aaron Tomlin <atomlin@redhat.com> --- arch/x86/include/asm/e820/api.h | 1 + arch/x86/kernel/e820.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/x86/include/asm/e820/api.h b/arch/x86/include/asm/e820/api.h index bf78daa08897..ceb301e591de 100644 --- a/arch/x86/include/asm/e820/api.h +++ b/arch/x86/include/asm/e820/api.h @@ -43,6 +43,7 @@ extern void e820__reallocate_tables(void); extern void e820__register_nosave_regions(unsigned long limit_pfn); extern int e820__get_entry_type(u64 start, u64 end); +const char *e820_type_to_string(struct e820_entry *entry); /* * Returns true iff the specified range [start,end) is completely contained inside diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c index 09b1c863a766..95b994cf80cd 100644 --- a/arch/x86/kernel/e820.c +++ b/arch/x86/kernel/e820.c @@ -1071,7 +1071,7 @@ void __init e820__finish_early_params(void) } } -static const char *__init e820_type_to_string(struct e820_entry *entry) +const char *__init e820_type_to_string(struct e820_entry *entry) { switch (entry->type) { case E820_TYPE_RESERVED_KERN: /* Fall-through: */ -- 2.34.1
| |