Skip to content

Commit 30c69ca

Browse files
ozbenhmpe
authored andcommitted
powerpc/prom_init: Make "fake_elf" const
It is never modified Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 3bad719 commit 30c69ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/kernel/prom_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ struct ibm_arch_vec __cacheline_aligned ibm_architecture_vec = {
922922

923923
/* Old method - ELF header with PT_NOTE sections only works on BE */
924924
#ifdef __BIG_ENDIAN__
925-
static struct fake_elf {
925+
static const struct fake_elf {
926926
Elf32_Ehdr elfhdr;
927927
Elf32_Phdr phdr[2];
928928
struct chrpnote {

0 commit comments

Comments
 (0)