diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2023-02-18 10:15:44 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-03-15 00:52:10 +1100 |
commit | 35e175bdd52e75d4f9b1a6b3cea870c728acf344 (patch) | |
tree | eaeaba619226e28aec0c544db8d4606dc9eac839 /arch/powerpc/include/asm/machdep.h | |
parent | a11334d8327b3fd7987cbfb38e956a44c722d88f (diff) | |
download | linux-35e175bdd52e75d4f9b1a6b3cea870c728acf344.tar.gz linux-35e175bdd52e75d4f9b1a6b3cea870c728acf344.tar.bz2 linux-35e175bdd52e75d4f9b1a6b3cea870c728acf344.zip |
powerpc/machdep: Make machine name const
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
Diffstat (limited to 'arch/powerpc/include/asm/machdep.h')
-rw-r--r-- | arch/powerpc/include/asm/machdep.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/machdep.h b/arch/powerpc/include/asm/machdep.h index 459736d5e511..41815168a452 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); |