public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]omap: mux.c warning removal
@ 2010-05-05 13:44 Munegowda, Keshava
  2010-05-05 21:21 ` Kevin Hilman
  0 siblings, 1 reply; 3+ messages in thread
From: Munegowda, Keshava @ 2010-05-05 13:44 UTC (permalink / raw)
  To: linux-omap@vger.kernel.org, tony@atomide.com

From: Keshava Munegowda <a0393220@ti.com>

This patch removes the below warning 
arch/arm/mach-omap2/mux.c:52: warning: 'mux_phys' defined but not used
The definition of variable mux_phys should be enclosed in the macro CONFIG_ARCH_OMAP3 

Signed-off-by: Keshava Munegowda <a0393220@ti.com>
Index: linux-2.6/arch/arm/mach-omap2/mux.c
===================================================================
--- linux-2.6.orig/arch/arm/mach-omap2/mux.c	2010-05-05 05:28:47.000000000 +0530
+++ linux-2.6/arch/arm/mach-omap2/mux.c	2010-05-05 05:29:02.000000000 +0530
@@ -49,7 +49,9 @@
 	struct list_head	node;
 };
 
+#ifdef CONFIG_ARCH_OMAP3
 static unsigned long mux_phys;
+#endif
 static void __iomem *mux_base;
 
 u16 omap_mux_read(u16 reg)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH]omap: mux.c warning removal
  2010-05-05 13:44 [PATCH]omap: mux.c warning removal Munegowda, Keshava
@ 2010-05-05 21:21 ` Kevin Hilman
  2010-05-06  6:36   ` Munegowda, Keshava
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Hilman @ 2010-05-05 21:21 UTC (permalink / raw)
  To: Munegowda, Keshava; +Cc: linux-omap@vger.kernel.org, tony@atomide.com

"Munegowda, Keshava" <keshava_mgowda@ti.com> writes:

> From: Keshava Munegowda <a0393220@ti.com>
>
> This patch removes the below warning 
> arch/arm/mach-omap2/mux.c:52: warning: 'mux_phys' defined but not used
> The definition of variable mux_phys should be enclosed in the macro CONFIG_ARCH_OMAP3 
>
> Signed-off-by: Keshava Munegowda <a0393220@ti.com>
> Index: linux-2.6/arch/arm/mach-omap2/mux.c
> ===================================================================
> --- linux-2.6.orig/arch/arm/mach-omap2/mux.c	2010-05-05 05:28:47.000000000 +0530
> +++ linux-2.6/arch/arm/mach-omap2/mux.c	2010-05-05 05:29:02.000000000 +0530
> @@ -49,7 +49,9 @@
>  	struct list_head	node;
>  };
>  
> +#ifdef CONFIG_ARCH_OMAP3
>  static unsigned long mux_phys;
> +#endif

Rather than add another #ifdef, just move this inside the existing
#ifdef farther down in the file.

Kevin

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH]omap: mux.c warning removal
  2010-05-05 21:21 ` Kevin Hilman
@ 2010-05-06  6:36   ` Munegowda, Keshava
  0 siblings, 0 replies; 3+ messages in thread
From: Munegowda, Keshava @ 2010-05-06  6:36 UTC (permalink / raw)
  To: linux-omap@vger.kernel.org, Kevin Hilman; +Cc: tony@atomide.com


Hi Kevin 
   Thanks for review comments!  The updated patch is below.


From: Keshava Munegowda <a0393220@ti.com>

This patch removes the below warning 
arch/arm/mach-omap2/mux.c:52: warning: 'mux_phys' defined but not used
The definition of variable mux_phys should be enclosed in the macro CONFIG_ARCH_OMAP3 

Signed-off-by: Keshava Munegowda <a0393220@ti.com>

Index: linux-2.6/arch/arm/mach-omap2/mux.c
===================================================================
--- linux-2.6.orig/arch/arm/mach-omap2/mux.c	2010-05-05 23:59:19.000000000 +0530
+++ linux-2.6/arch/arm/mach-omap2/mux.c	2010-05-06 00:00:07.000000000 +0530
@@ -49,7 +49,7 @@
 	struct list_head	node;
 };
 
-static unsigned long mux_phys;
+
 static void __iomem *mux_base;
 
 u16 omap_mux_read(u16 reg)
@@ -373,6 +373,7 @@
 #ifdef CONFIG_ARCH_OMAP3
 static LIST_HEAD(muxmodes);
 static DEFINE_MUTEX(muxmode_mutex);
+static unsigned long mux_phys;
 
 #ifdef CONFIG_OMAP_MUX
 
 

> -----Original Message-----
> From: Kevin Hilman [mailto:khilman@deeprootsystems.com]
> Sent: Thursday, May 06, 2010 2:52 AM
> To: Munegowda, Keshava
> Cc: linux-omap@vger.kernel.org; tony@atomide.com
> Subject: Re: [PATCH]omap: mux.c warning removal
> 
> "Munegowda, Keshava" <keshava_mgowda@ti.com> writes:
> 
> > From: Keshava Munegowda <a0393220@ti.com>
> >
> > This patch removes the below warning
> > arch/arm/mach-omap2/mux.c:52: warning: 'mux_phys' defined but not used
> > The definition of variable mux_phys should be enclosed in the macro CONFIG_ARCH_OMAP3
> >
> > Signed-off-by: Keshava Munegowda <a0393220@ti.com>
> > Index: linux-2.6/arch/arm/mach-omap2/mux.c
> > ===================================================================
> > --- linux-2.6.orig/arch/arm/mach-omap2/mux.c	2010-05-05 05:28:47.000000000 +0530
> > +++ linux-2.6/arch/arm/mach-omap2/mux.c	2010-05-05 05:29:02.000000000 +0530
> > @@ -49,7 +49,9 @@
> >  	struct list_head	node;
> >  };
> >
> > +#ifdef CONFIG_ARCH_OMAP3
> >  static unsigned long mux_phys;
> > +#endif
> 
> Rather than add another #ifdef, just move this inside the existing
> #ifdef farther down in the file.
> 
> Kevin

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-05-06  6:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-05 13:44 [PATCH]omap: mux.c warning removal Munegowda, Keshava
2010-05-05 21:21 ` Kevin Hilman
2010-05-06  6:36   ` Munegowda, Keshava

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox