From: Simon Glass Date: Mon, 7 Mar 2016 02:27:57 +0000 (-0700) Subject: x86: cpu: Make the vendor table const X-Git-Tag: v2025.01-rc5-pxa1908~9951 X-Git-Url: http://git.dujemihanovic.xyz/img/static/%7B%7B%20%28.OutputFormats.Get?a=commitdiff_plain;h=6d24a1eebe5685d1ed7c1e066e333ff4cc795367;p=u-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[] = {