powerpc/prom_init: Make "default_colors" const
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 31 May 2018 04:33:41 +0000 (14:33 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 14 Oct 2018 07:04:09 +0000 (18:04 +1100)
It's 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 0096a53d03daac62552c712dfe47f8a64e590184..ad9320347a28493b5e529e5925fc05f464af60c8 100644 (file)
@@ -2205,7 +2205,7 @@ static void __init prom_check_displays(void)
        ihandle ih;
        int i;
 
-       static unsigned char default_colors[] = {
+       static const unsigned char default_colors[] = {
                0x00, 0x00, 0x00,
                0x00, 0x00, 0xaa,
                0x00, 0xaa, 0x00,