diff mbox series

[v2,01/10] powerpc/machdep: Make machine name const

Message ID 6cb9865d916231c38401ba34ad1a98c249fae135.1676711562.git.christophe.leroy@csgroup.eu (mailing list archive)
State Accepted
Commit 0aafbdf35c75cbfec82636d01e6dc7950bc1507c
Headers show
Series [v2,01/10] powerpc/machdep: Make machine name const | expand

Commit Message

Christophe Leroy Feb. 18, 2023, 9:15 a.m. UTC
Machine name in struct machdep_calls should never be modified.

Mark it const.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
---
v2: New
---
 arch/powerpc/include/asm/machdep.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michael Ellerman March 22, 2023, 12:25 p.m. UTC | #1
On Sat, 18 Feb 2023 10:15:44 +0100, Christophe Leroy wrote:
> Machine name in struct machdep_calls should never be modified.
> 
> Mark it const.
> 
> 

Patches 1-7 applied to powerpc/next.

[01/10] powerpc/machdep: Make machine name const
        https://git.kernel.org/powerpc/c/0aafbdf35c75cbfec82636d01e6dc7950bc1507c
[02/10] powerpc/machdep: Define 'compatible' property in ppc_md and use it
        https://git.kernel.org/powerpc/c/2fc39acfcacf3dc1392d8062f6d7b7d94eb2537c
[03/10] powerpc/platforms: Use 'compatible' property for simple cases
        https://git.kernel.org/powerpc/c/1c96fcdef8c7492ecf34ed70102a1ae5253ef9d1
[04/10] powerpc/47x: Split ppc47x machine in two
        https://git.kernel.org/powerpc/c/357f82395cd8a0279067805841e5968f4e6dc932
[05/10] powerpc/gamecube|wii : Use machine_device_initcall()
        https://git.kernel.org/powerpc/c/f47b17d51997cd47e0e6fb1b90145d516ebe6b3e
[06/10] powerpc/85xx: Fix function naming for p1023_rdb platform
        https://git.kernel.org/powerpc/c/5a81c02d0cc5067170e49452d55a4dfd21333257
[07/10] powerpc: Make generic_calibrate_decr() the default
        https://git.kernel.org/powerpc/c/0aafbdf35c75cbfec82636d01e6dc7950bc1507c

cheers
diff mbox series

Patch

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);