linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] staging: make board support depend on CLKDEV_LOOKUP
@ 2015-06-20 19:27 Paul Gortmaker
  2015-06-20 20:45 ` Geert Uytterhoeven
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Gortmaker @ 2015-06-20 19:27 UTC (permalink / raw)
  To: linux-kernel
  Cc: Paul Gortmaker, Magnus Damm, Simon Horman, Geert Uytterhoeven,
	Greg Kroah-Hartman

Building allmodconfig for arch/cris currently fails with:

drivers/built-in.o: In function `board_staging_register_clock':
drivers/staging/board/board.c:131: undefined reference to `clk_add_alias'
make: *** [vmlinux] Error 1

The clk_add_alias lives in drivers/clk/clkdev.c and that file
is only compiled for CONFIG_CLKDEV_LOOKUP, so it would seem
we need to add a dependency on that.

Cc: Magnus Damm <damm+renesas@opensource.se>
Cc: Simon Horman <horms+renesas@verge.net.au>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
 drivers/staging/board/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/board/Kconfig b/drivers/staging/board/Kconfig
index b8ee81840666..4ff5a795055f 100644
--- a/drivers/staging/board/Kconfig
+++ b/drivers/staging/board/Kconfig
@@ -1,6 +1,6 @@
 config STAGING_BOARD
 	bool "Staging Board Support"
-	depends on OF_ADDRESS
+	depends on OF_ADDRESS && CLKDEV_LOOKUP
 	help
 	  Select to enable per-board staging support code.
 
-- 
2.2.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at  http://www.tux.org/lkml/

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

* Re: [PATCH] staging: make board support depend on CLKDEV_LOOKUP
  2015-06-20 19:27 [PATCH] staging: make board support depend on CLKDEV_LOOKUP Paul Gortmaker
@ 2015-06-20 20:45 ` Geert Uytterhoeven
  2015-06-20 23:28   ` [PATCH v2] staging: make board support depend on OF_IRQ and CLKDEV_LOOKUP Paul Gortmaker
  0 siblings, 1 reply; 5+ messages in thread
From: Geert Uytterhoeven @ 2015-06-20 20:45 UTC (permalink / raw)
  To: Paul Gortmaker
  Cc: linux-kernel@vger.kernel.org, Magnus Damm, Simon Horman,
	Geert Uytterhoeven, Greg Kroah-Hartman

Hi Paul,

On Sat, Jun 20, 2015 at 9:27 PM, Paul Gortmaker
<paul.gortmaker@windriver.com> wrote:
> Building allmodconfig for arch/cris currently fails with:
>
> drivers/built-in.o: In function `board_staging_register_clock':
> drivers/staging/board/board.c:131: undefined reference to `clk_add_alias'
> make: *** [vmlinux] Error 1
>
> The clk_add_alias lives in drivers/clk/clkdev.c and that file
> is only compiled for CONFIG_CLKDEV_LOOKUP, so it would seem
> we need to add a dependency on that.

Thanks!

There seems to be another missing dependency on OF_IRQ:

drivers/built-in.o: In function `board_staging_gic_fixup_resources':
(.init.text+0x21c2): undefined reference to `irq_create_of_mapping'

> Cc: Magnus Damm <damm+renesas@opensource.se>
> Cc: Simon Horman <horms+renesas@verge.net.au>
> Cc: Geert Uytterhoeven <geert+renesas@glider.be>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>

Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>

> ---
>  drivers/staging/board/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/board/Kconfig b/drivers/staging/board/Kconfig
> index b8ee81840666..4ff5a795055f 100644
> --- a/drivers/staging/board/Kconfig
> +++ b/drivers/staging/board/Kconfig
> @@ -1,6 +1,6 @@
>  config STAGING_BOARD
>         bool "Staging Board Support"
> -       depends on OF_ADDRESS
> +       depends on OF_ADDRESS && CLKDEV_LOOKUP
>         help
>           Select to enable per-board staging support code.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at  http://www.tux.org/lkml/

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

* [PATCH v2] staging: make board support depend on OF_IRQ and CLKDEV_LOOKUP
  2015-06-20 20:45 ` Geert Uytterhoeven
@ 2015-06-20 23:28   ` Paul Gortmaker
  2015-06-25 14:13     ` Paul Gortmaker
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Gortmaker @ 2015-06-20 23:28 UTC (permalink / raw)
  To: linux-kernel
  Cc: Paul Gortmaker, Magnus Damm, Simon Horman, Geert Uytterhoeven,
	Greg Kroah-Hartman

Building allmodconfig for arch/cris currently fails with:

drivers/built-in.o: In function `board_staging_register_clock':
drivers/staging/board/board.c:131: undefined reference to `clk_add_alias'
make: *** [vmlinux] Error 1

The clk_add_alias lives in drivers/clk/clkdev.c and that file
is only compiled for CONFIG_CLKDEV_LOOKUP, so it would seem
we need to add a dependency on that.

Geert also reported seeing this in his build coverage:

  There seems to be another missing dependency on OF_IRQ:

  drivers/built-in.o: In function `board_staging_gic_fixup_resources':
  (.init.text+0x21c2): undefined reference to `irq_create_of_mapping'

so we might as well fix that at the same time since it is
on the same line.

Cc: Magnus Damm <damm+renesas@opensource.se>
Cc: Simon Horman <horms+renesas@verge.net.au>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
[v2: fold in Geert's OF_IRQ addition suggestion.]

 drivers/staging/board/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/board/Kconfig b/drivers/staging/board/Kconfig
index b8ee81840666..3f287c48e082 100644
--- a/drivers/staging/board/Kconfig
+++ b/drivers/staging/board/Kconfig
@@ -1,6 +1,6 @@
 config STAGING_BOARD
 	bool "Staging Board Support"
-	depends on OF_ADDRESS
+	depends on OF_ADDRESS && OF_IRQ && CLKDEV_LOOKUP
 	help
 	  Select to enable per-board staging support code.
 
-- 
2.2.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at  http://www.tux.org/lkml/

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

* Re: [PATCH v2] staging: make board support depend on OF_IRQ and CLKDEV_LOOKUP
  2015-06-20 23:28   ` [PATCH v2] staging: make board support depend on OF_IRQ and CLKDEV_LOOKUP Paul Gortmaker
@ 2015-06-25 14:13     ` Paul Gortmaker
  2015-07-02 13:54       ` Guenter Roeck
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Gortmaker @ 2015-06-25 14:13 UTC (permalink / raw)
  To: linux-kernel, Greg Kroah-Hartman
  Cc: Magnus Damm, Simon Horman, Geert Uytterhoeven,
	linux-next@vger.kernel.org

On 15-06-20 07:28 PM, Paul Gortmaker wrote:
> Building allmodconfig for arch/cris currently fails with:
> 
> drivers/built-in.o: In function `board_staging_register_clock':
> drivers/staging/board/board.c:131: undefined reference to `clk_add_alias'
> make: *** [vmlinux] Error 1

Just checking this didn't fall through the cracks, as its absence
causes several arch breakage on linux-next for several days now:

(.init.text+0xf968): undefined reference to `clk_add_alias'

 
x86:     http://kisskb.ellerman.id.au/kisskb/buildresult/12448913/
powerpc: http://kisskb.ellerman.id.au/kisskb/buildresult/12449785/
parisc:  http://kisskb.ellerman.id.au/kisskb/buildresult/12449940/

and possibly others I've missed.

Paul.
--

> 
> The clk_add_alias lives in drivers/clk/clkdev.c and that file
> is only compiled for CONFIG_CLKDEV_LOOKUP, so it would seem
> we need to add a dependency on that.
> 
> Geert also reported seeing this in his build coverage:
> 
>   There seems to be another missing dependency on OF_IRQ:
> 
>   drivers/built-in.o: In function `board_staging_gic_fixup_resources':
>   (.init.text+0x21c2): undefined reference to `irq_create_of_mapping'
> 
> so we might as well fix that at the same time since it is
> on the same line.
> 
> Cc: Magnus Damm <damm+renesas@opensource.se>
> Cc: Simon Horman <horms+renesas@verge.net.au>
> Cc: Geert Uytterhoeven <geert+renesas@glider.be>
> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
> ---
> [v2: fold in Geert's OF_IRQ addition suggestion.]
> 
>  drivers/staging/board/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/board/Kconfig b/drivers/staging/board/Kconfig
> index b8ee81840666..3f287c48e082 100644
> --- a/drivers/staging/board/Kconfig
> +++ b/drivers/staging/board/Kconfig
> @@ -1,6 +1,6 @@
>  config STAGING_BOARD
>  	bool "Staging Board Support"
> -	depends on OF_ADDRESS
> +	depends on OF_ADDRESS && OF_IRQ && CLKDEV_LOOKUP
>  	help
>  	  Select to enable per-board staging support code.
>  
> 

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

* Re: [PATCH v2] staging: make board support depend on OF_IRQ and CLKDEV_LOOKUP
  2015-06-25 14:13     ` Paul Gortmaker
@ 2015-07-02 13:54       ` Guenter Roeck
  0 siblings, 0 replies; 5+ messages in thread
From: Guenter Roeck @ 2015-07-02 13:54 UTC (permalink / raw)
  To: Paul Gortmaker
  Cc: linux-kernel, Greg Kroah-Hartman, Magnus Damm, Simon Horman,
	Geert Uytterhoeven, linux-next@vger.kernel.org

On Thu, Jun 25, 2015 at 10:13:22AM -0400, Paul Gortmaker wrote:
> On 15-06-20 07:28 PM, Paul Gortmaker wrote:
> > Building allmodconfig for arch/cris currently fails with:
> > 
> > drivers/built-in.o: In function `board_staging_register_clock':
> > drivers/staging/board/board.c:131: undefined reference to `clk_add_alias'
> > make: *** [vmlinux] Error 1
> 
> Just checking this didn't fall through the cracks, as its absence
> causes several arch breakage on linux-next for several days now:
> 
> (.init.text+0xf968): undefined reference to `clk_add_alias'
> 
>  
> x86:     http://kisskb.ellerman.id.au/kisskb/buildresult/12448913/
> powerpc: http://kisskb.ellerman.id.au/kisskb/buildresult/12449785/
> parisc:  http://kisskb.ellerman.id.au/kisskb/buildresult/12449940/
> 
This problem is now seen in mainline.

Also affected: alpha:allmodconfig, mips:allmodconfig, s390:allmodconfig.

and applying the patch fixes the problem.

Acked-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Guenter Roeck <linux@roeck-us.net>

Guenter

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

end of thread, other threads:[~2015-07-02 13:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-20 19:27 [PATCH] staging: make board support depend on CLKDEV_LOOKUP Paul Gortmaker
2015-06-20 20:45 ` Geert Uytterhoeven
2015-06-20 23:28   ` [PATCH v2] staging: make board support depend on OF_IRQ and CLKDEV_LOOKUP Paul Gortmaker
2015-06-25 14:13     ` Paul Gortmaker
2015-07-02 13:54       ` Guenter Roeck

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).