Patchwork [U-Boot] omap3: Fix compile warning

login
register
mail settings
Submitter Sanjeev Premi
Date Sept. 23, 2011, 3:29 p.m.
Message ID <1316791785-20702-1-git-send-email-premi@ti.com>
Download mbox | patch
Permalink /patch/116108/
State Accepted
Commit 939e722276dfbddfada31970dc1927ee5b441d80
Headers show

Comments

Sanjeev Premi - Sept. 23, 2011, 3:29 p.m.
Building without option CONFIG_DISPLAY_CPUINFO leads to
this warning:
sys_info.c:50:14: warning: 'rev_s_37xx' defined but not used

Signed-off-by: Sanjeev Premi <premi@ti.com>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
---

 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(-)
Sandeep Paulraj - Sept. 23, 2011, 5:09 p.m.
> 
> Building without option CONFIG_DISPLAY_CPUINFO leads to
> this warning:
> sys_info.c:50:14: warning: 'rev_s_37xx' defined but not used
> 
> Signed-off-by: Sanjeev Premi <premi@ti.com>
> Cc: Sandeep Paulraj <s-paulraj@ti.com>
> ---
> 
>  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(-)
> 
> diff --git a/arch/arm/cpu/armv7/omap3/sys_info.c
> b/arch/arm/cpu/armv7/omap3/sys_info.c
> index bdb151d..22887ae 100644
> --- a/arch/arm/cpu/armv7/omap3/sys_info.c
> +++ b/arch/arm/cpu/armv7/omap3/sys_info.c
> @@ -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


Thanks

Pushed to u-boot-ti next

Patch

diff --git a/arch/arm/cpu/armv7/omap3/sys_info.c b/arch/arm/cpu/armv7/omap3/sys_info.c
index bdb151d..22887ae 100644
--- a/arch/arm/cpu/armv7/omap3/sys_info.c
+++ b/arch/arm/cpu/armv7/omap3/sys_info.c
@@ -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