]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
powerpc/prom_init: Make "fake_elf" const
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 31 May 2018 04:33:40 +0000 (14:33 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 14 Oct 2018 07:04:09 +0000 (18:04 +1100)
It is never modified

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/prom_init.c

index f5b682094bde978a931a01084f82ae5da58ca687..0096a53d03daac62552c712dfe47f8a64e590184 100644 (file)
@@ -922,7 +922,7 @@ struct ibm_arch_vec __cacheline_aligned ibm_architecture_vec = {
 
 /* Old method - ELF header with PT_NOTE sections only works on BE */
 #ifdef __BIG_ENDIAN__
-static struct fake_elf {
+static const struct fake_elf {
        Elf32_Ehdr      elfhdr;
        Elf32_Phdr      phdr[2];
        struct chrpnote {