zdump: constify dfi_vmcoreinfo_get

Caller of `dfi_vmcoreinfo_get` must not modify the returned value, therefore
return a `const char *` value for `dfi_vmcoreinfo_get`.

Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Marc Hartmayer
2022-09-23 16:56:01 +00:00
committed by Jan Höppner
parent 029a3f8f52
commit a6f2c38891
2 changed files with 2 additions and 2 deletions

View File

@@ -132,7 +132,7 @@ void dfi_vmcoreinfo_init(void)
/*
* Return vmcoreinfo data
*/
char *dfi_vmcoreinfo_get(void)
const char *dfi_vmcoreinfo_get(void)
{
return l.vmcoreinfo;
}

View File

@@ -9,7 +9,7 @@
#define DFI_VMCOREINFO_H
void dfi_vmcoreinfo_init(void);
char *dfi_vmcoreinfo_get(void);
const char *dfi_vmcoreinfo_get(void);
int dfi_vmcoreinfo_tag(char *str, int len, const char *sym);
int dfi_vmcoreinfo_symbol(unsigned long *val, const char *sym);
int dfi_vmcoreinfo_offset(unsigned long *offs, const char *sym);