powerpc/machdep: Make machine name const
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Sat, 18 Feb 2023 09:15:44 +0000 (10:15 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 14 Mar 2023 13:52:10 +0000 (00:52 +1100)
Machine name in struct machdep_calls should never be modified.

Mark it const.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/6cb9865d916231c38401ba34ad1a98c249fae135.1676711562.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/machdep.h

index 459736d5e511745576f0d1402cc8c422764afc49..41815168a4524afcfb0cd6b820b8576fe51dfbe5 100644 (file)
@@ -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);