From: Christophe Leroy Date: Sat, 18 Feb 2023 09:15:44 +0000 (+0100) Subject: powerpc/machdep: Make machine name const X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=35e175bdd52e75d4f9b1a6b3cea870c728acf344;p=linux.git powerpc/machdep: Make machine name const Machine name in struct machdep_calls should never be modified. Mark it const. Signed-off-by: Christophe Leroy Signed-off-by: Michael Ellerman Link: https://msgid.link/6cb9865d916231c38401ba34ad1a98c249fae135.1676711562.git.christophe.leroy@csgroup.eu --- diff --git a/arch/powerpc/include/asm/machdep.h b/arch/powerpc/include/asm/machdep.h index 459736d5e5117..41815168a4524 100644 --- a/arch/powerpc/include/asm/machdep.h +++ b/arch/powerpc/include/asm/machdep.h @@ -20,7 +20,7 @@ struct kimage; struct pci_host_bridge; struct machdep_calls { - char *name; + const char *name; #ifdef CONFIG_PPC64 #ifdef CONFIG_PM void (*iommu_restore)(void);