Skip to contentSkip to conversation

omap3: Fix compile warning

PATCH New Sanjeev Premi 2 participants 2 messages Sep 23, 2011 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 omap3: Fix compile warning

Building without option CONFIG_DISPLAY_CPUINFO leads to this warning:
sys_info.c:50:14: warning: 'rev_s_37xx' defined but not used

Cc Sandeep Paulraj <[email protected]>

---

This patch has been created against u-boot-ti/next.

 arch/arm/cpu/armv7/omap3/sys_info.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/cpu/armv7/omap3/sys_info.c +1 -1
index bdb151d..22887ae 100644
@@ -44,13 +44,13 @@ static char *rev_s[CPU_3XX_MAX_REV] = {
 				"UNKNOWN",
 				"UNKNOWN",
 				"3.1.2"};
-#endif /* CONFIG_DISPLAY_CPUINFO */
 
 /* this is the revision table for 37xx CPUs */
 static char *rev_s_37xx[CPU_37XX_MAX_REV] = {
 				"1.0",
 				"1.1",
 				"1.2"};
+#endif /* CONFIG_DISPLAY_CPUINFO */
 
 /*****************************************************************
  * dieid_num_r(void) - read and set die ID
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 1/1 omap3: Fix compile warning

Quoted 26 lines

Building without option CONFIG_DISPLAY_CPUINFO leads to this warning:
sys_info.c:50:14: warning: 'rev_s_37xx' defined but not used

Cc Sandeep Paulraj <[email protected]>

---

This patch has been created against u-boot-ti/next.

 arch/arm/cpu/armv7/omap3/sys_info.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/cpu/armv7/omap3/sys_info.c +0 -1
index bdb151d..22887ae 100644
@@ -44,13 +44,13 @@ static char *rev_s[CPU_3XX_MAX_REV] = {
 				"UNKNOWN",
 				"UNKNOWN",
 				"3.1.2"};
-#endif /* CONFIG_DISPLAY_CPUINFO */

arch/arm/cpu/armv7/omap3/sys_info.c static char *rev_s[CPU_3XX_MAX_REV] = { · line 56

Quoted 10 lines
arch/arm/cpu/armv7/omap3/sys_info.c +1 -0
 
 /* this is the revision table for 37xx CPUs */
 static char *rev_s_37xx[CPU_37XX_MAX_REV] = {
 				"1.0",
 				"1.1",
 				"1.2"};
+#endif /* CONFIG_DISPLAY_CPUINFO */
 
 /*****************************************************************
  * dieid_num_r(void) - read and set die ID

Thanks

Pushed to u-boot-ti next