]> xenbits.xensource.com Git - people/andrewcoop/xen-test-framework.git/commitdiff
Declare environment_description as an array
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 21 Feb 2017 15:03:53 +0000 (15:03 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 21 Feb 2017 15:03:53 +0000 (15:03 +0000)
There is no point following a pointer into the string section when a direct
reference will do.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
arch/x86/setup.c
include/xtf/framework.h

index 3e79226fb2649f277a8ab01244d7c2399c3a2afc..5dbc9194704fcb78f9b2f47165d56fac1b7c6219 100644 (file)
@@ -22,7 +22,7 @@ enum x86_vendor x86_vendor;
 unsigned int x86_family, x86_model, x86_stepping;
 unsigned int maxphysaddr, maxvirtaddr;
 
-const char *environment_description = ENVIRONMENT_DESCRIPTION;
+const char environment_description[] = ENVIRONMENT_DESCRIPTION;
 
 #ifdef CONFIG_PV
 /* Filled in by head_pv.S */
index 78298980ff54e7cc9e283a997730cd3ada177914..a71bf39a03d1d03a7f3851dae1ad3e866659aa1b 100644 (file)
@@ -6,7 +6,7 @@ void arch_setup(void);
 void test_setup(void);
 
 /* Single line summary of execution environment. */
-extern const char *environment_description;
+extern const char environment_description[];
 
 #endif /* XTF_FRAMEWORK_H */