[U-Boot] [PATCH 14/69] x86: cpu: Make the vendor table const

Simon Glass sjg at chromium.org
Mon Mar 7 03:27:57 CET 2016


This does not need to be modified at run-time, so make it const.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 arch/x86/cpu/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c
index 6c3a748..8800e09 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[] = {
-- 
2.7.0.rc3.207.g0ac5344



More information about the U-Boot mailing list