]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - arch/i386/kernel/cpu/proc.c
[PATCH] x86: constify some parts of arch/i386/kernel/cpu/
[mirror_ubuntu-jammy-kernel.git] / arch / i386 / kernel / cpu / proc.c
index a19fcb262dbb64d30120f2e974d6ed7c9a31177b..4b03f9f5832852e350388ce08ab17cd64f8c5e33 100644 (file)
@@ -18,7 +18,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
         * applications want to get the raw CPUID data, they should access
         * /dev/cpu/<cpu_nr>/cpuid instead.
         */
-       static char *x86_cap_flags[] = {
+       static const char * const x86_cap_flags[] = {
                /* Intel-defined */
                "fpu", "vme", "de", "pse", "tsc", "msr", "pae", "mce",
                "cx8", "apic", NULL, "sep", "mtrr", "pge", "mca", "cmov",
@@ -62,7 +62,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
                NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
                NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
        };
-       static char *x86_power_flags[] = {
+       static const char * const x86_power_flags[] = {
                "ts",   /* temperature sensor */
                "fid",  /* frequency id control */
                "vid",  /* voltage id control */