[PATCH] xen/x86: Use const char * for string literals (2)

Andrew Cooper posted 1 patch 9 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20230719110239.4065060-1-andrew.cooper3@citrix.com
xen/arch/x86/setup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] xen/x86: Use const char * for string literals (2)
Posted by Andrew Cooper 9 months, 2 weeks ago
This hunk was accidentally missing from a previous change.

Fixes: d642c0706678 ("xen/x86: Use const char * for string literals")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
CC: Jan Beulich <JBeulich@suse.com>
CC: Roger Pau Monné <roger.pau@citrix.com>
CC: Wei Liu <wl@xen.org>

This was missed because it was mixed up in cmdline mess in __start_xen().
---
 xen/arch/x86/setup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c
index 74e3915a4dce..2dbe9857aa60 100644
--- a/xen/arch/x86/setup.c
+++ b/xen/arch/x86/setup.c
@@ -968,7 +968,7 @@ static struct domain *__init create_dom0(const module_t *image,
 
 void __init noreturn __start_xen(unsigned long mbi_p)
 {
-    char *memmap_type = NULL;
+    const char *memmap_type = NULL;
     char *cmdline, *kextra, *loader;
     void *bsp_stack;
     struct cpu_info *info = get_cpu_info(), *bsp_info;
-- 
2.30.2


Re: [PATCH] xen/x86: Use const char * for string literals (2)
Posted by Jan Beulich 9 months, 2 weeks ago
On 19.07.2023 13:02, Andrew Cooper wrote:
> This hunk was accidentally missing from a previous change.
> 
> Fixes: d642c0706678 ("xen/x86: Use const char * for string literals")
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>

Acked-by: Jan Beulich <jbeulich@suse.com>