linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] regulator: fix build when CONFIG_REGULATOR_DUMMY=n
@ 2010-10-11 16:35 Anand Gadiyar
  2010-10-11 16:53 ` Randy Dunlap
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Anand Gadiyar @ 2010-10-11 16:35 UTC (permalink / raw)
  To: linux-kernel, linux-omap; +Cc: Anand Gadiyar, Liam Girdwood, Mark Brown

Commit f03f91826 (regulator: Add option for machine drivers
to enable the dummy regulator) in the regulators tree
seems to have introduced the following build break when
CONFIG_REGULATOR_DUMMY is disabled. Fix this.

  CC      drivers/regulator/dummy.o
drivers/regulator/dummy.c:41: error: redefinition of 'regulator_dummy_init'
drivers/regulator/dummy.h:28: note: previous definition of 'regulator_dummy_init' was here
make[2]: *** [drivers/regulator/dummy.o] Error 1
make[1]: *** [drivers/regulator] Error 2
make: *** [drivers] Error 2

Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Cc: Liam Girdwood <lrg@slimlogic.co.uk>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
The commit referenced above is in linux next as of 20101011
and breaks builds of the omap2plus_defconfig at least.

 drivers/regulator/dummy.h |    4 ----
 1 file changed, 4 deletions(-)

Index: mainline/drivers/regulator/dummy.h
===================================================================
--- mainline.orig/drivers/regulator/dummy.h
+++ mainline/drivers/regulator/dummy.h
@@ -22,10 +22,6 @@ struct regulator_dev;
 
 extern struct regulator_dev *dummy_regulator_rdev;
 
-#ifdef CONFIG_REGULATOR_DUMMY
 void __init regulator_dummy_init(void);
-#else
-static inline void regulator_dummy_init(void) { }
-#endif
 
 #endif

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

* Re: [PATCH] regulator: fix build when CONFIG_REGULATOR_DUMMY=n
  2010-10-11 16:35 [PATCH] regulator: fix build when CONFIG_REGULATOR_DUMMY=n Anand Gadiyar
@ 2010-10-11 16:53 ` Randy Dunlap
  2010-10-11 18:11 ` Mark Brown
  2010-10-11 21:22 ` Liam Girdwood
  2 siblings, 0 replies; 4+ messages in thread
From: Randy Dunlap @ 2010-10-11 16:53 UTC (permalink / raw)
  To: Anand Gadiyar; +Cc: linux-kernel, linux-omap, Liam Girdwood, Mark Brown

On Mon, 11 Oct 2010 22:05:55 +0530 Anand Gadiyar wrote:

> Commit f03f91826 (regulator: Add option for machine drivers
> to enable the dummy regulator) in the regulators tree
> seems to have introduced the following build break when
> CONFIG_REGULATOR_DUMMY is disabled. Fix this.
> 
>   CC      drivers/regulator/dummy.o
> drivers/regulator/dummy.c:41: error: redefinition of 'regulator_dummy_init'
> drivers/regulator/dummy.h:28: note: previous definition of 'regulator_dummy_init' was here
> make[2]: *** [drivers/regulator/dummy.o] Error 1
> make[1]: *** [drivers/regulator] Error 2
> make: *** [drivers] Error 2
> 
> Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
> Cc: Liam Girdwood <lrg@slimlogic.co.uk>
> Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
> ---
> The commit referenced above is in linux next as of 20101011
> and breaks builds of the omap2plus_defconfig at least.
> 
>  drivers/regulator/dummy.h |    4 ----
>  1 file changed, 4 deletions(-)
> 
> Index: mainline/drivers/regulator/dummy.h
> ===================================================================
> --- mainline.orig/drivers/regulator/dummy.h
> +++ mainline/drivers/regulator/dummy.h
> @@ -22,10 +22,6 @@ struct regulator_dev;
>  
>  extern struct regulator_dev *dummy_regulator_rdev;
>  
> -#ifdef CONFIG_REGULATOR_DUMMY
>  void __init regulator_dummy_init(void);
> -#else
> -static inline void regulator_dummy_init(void) { }
> -#endif
>  
>  #endif
> --

Acked-by: Randy Dunlap <randy.dunlap@oracle.com>

Thanks.

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

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

* Re: [PATCH] regulator: fix build when CONFIG_REGULATOR_DUMMY=n
  2010-10-11 16:35 [PATCH] regulator: fix build when CONFIG_REGULATOR_DUMMY=n Anand Gadiyar
  2010-10-11 16:53 ` Randy Dunlap
@ 2010-10-11 18:11 ` Mark Brown
  2010-10-11 21:22 ` Liam Girdwood
  2 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2010-10-11 18:11 UTC (permalink / raw)
  To: Anand Gadiyar; +Cc: linux-kernel, linux-omap, Liam Girdwood

On Mon, Oct 11, 2010 at 10:05:55PM +0530, Anand Gadiyar wrote:
> Commit f03f91826 (regulator: Add option for machine drivers
> to enable the dummy regulator) in the regulators tree
> seems to have introduced the following build break when
> CONFIG_REGULATOR_DUMMY is disabled. Fix this.

Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

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

* Re: [PATCH] regulator: fix build when CONFIG_REGULATOR_DUMMY=n
  2010-10-11 16:35 [PATCH] regulator: fix build when CONFIG_REGULATOR_DUMMY=n Anand Gadiyar
  2010-10-11 16:53 ` Randy Dunlap
  2010-10-11 18:11 ` Mark Brown
@ 2010-10-11 21:22 ` Liam Girdwood
  2 siblings, 0 replies; 4+ messages in thread
From: Liam Girdwood @ 2010-10-11 21:22 UTC (permalink / raw)
  To: Anand Gadiyar; +Cc: linux-kernel, linux-omap, Mark Brown, Randy Dunlap

On Mon, 2010-10-11 at 22:05 +0530, Anand Gadiyar wrote:
> Commit f03f91826 (regulator: Add option for machine drivers
> to enable the dummy regulator) in the regulators tree
> seems to have introduced the following build break when
> CONFIG_REGULATOR_DUMMY is disabled. Fix this.
> 
>   CC      drivers/regulator/dummy.o
> drivers/regulator/dummy.c:41: error: redefinition of 'regulator_dummy_init'
> drivers/regulator/dummy.h:28: note: previous definition of 'regulator_dummy_init' was here
> make[2]: *** [drivers/regulator/dummy.o] Error 1
> make[1]: *** [drivers/regulator] Error 2
> make: *** [drivers] Error 2
> 
> Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
> Cc: Liam Girdwood <lrg@slimlogic.co.uk>
> Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
> ---
> The commit referenced above is in linux next as of 20101011
> and breaks builds of the omap2plus_defconfig at least.
> 
>  drivers/regulator/dummy.h |    4 ----
>  1 file changed, 4 deletions(-)
> 
> Index: mainline/drivers/regulator/dummy.h
> ===================================================================
> --- mainline.orig/drivers/regulator/dummy.h
> +++ mainline/drivers/regulator/dummy.h
> @@ -22,10 +22,6 @@ struct regulator_dev;
>  
>  extern struct regulator_dev *dummy_regulator_rdev;
>  
> -#ifdef CONFIG_REGULATOR_DUMMY
>  void __init regulator_dummy_init(void);
> -#else
> -static inline void regulator_dummy_init(void) { }
> -#endif
>  
>  #endif

Applied.

Thanks

Liam
-- 
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk

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

end of thread, other threads:[~2010-10-11 21:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-11 16:35 [PATCH] regulator: fix build when CONFIG_REGULATOR_DUMMY=n Anand Gadiyar
2010-10-11 16:53 ` Randy Dunlap
2010-10-11 18:11 ` Mark Brown
2010-10-11 21:22 ` Liam Girdwood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).