From: Simon Glass Date: Mon, 7 Mar 2016 02:27:57 +0000 (-0700) Subject: x86: cpu: Make the vendor table const X-Git-Tag: v2016.05-rc1~314 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6d24a1eebe5685d1ed7c1e066e333ff4cc795367;p=oweals%2Fu-boot.git x86: cpu: Make the vendor table const This does not need to be modified at run-time, so make it const. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c index 6c3a748f75..8800e09fa2 100644 --- a/arch/x86/cpu/cpu.c +++ b/arch/x86/cpu/cpu.c @@ -71,7 +71,7 @@ struct cpuinfo_x86 { * List of cpu vendor strings along with their normalized * id values. */ -static struct { +static const struct { int vendor; const char *name; } x86_vendors[] = {