All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clocksource: increase dependencies of timer-stm32 to limit build wreckage
@ 2015-06-20 23:02 ` Paul Gortmaker
  0 siblings, 0 replies; 6+ messages in thread
From: Paul Gortmaker @ 2015-06-20 23:02 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-next, Paul Gortmaker, Linus Walleij, Chanwoo Choi,
	Maxime Coquelin, Daniel Lezcano, Thomas Gleixner

This driver leaks out into arch/parisc builds that don't have
CONFIG_GENERIC_CLOCKEVENTS, leading to the following (truncated)
wreckage:

  CC      drivers/clocksource/timer-stm32.o
drivers/clocksource/timer-stm32.c:38:28: error: field 'evtdev' has incomplete type
drivers/clocksource/timer-stm32.c:44:19: warning: 'enum clock_event_mode' declared inside parameter list
drivers/clocksource/timer-stm32.c:44:19: warning: its scope is only this definition or declaration, which is probably not what you want
drivers/clocksource/timer-stm32.c:43:62: error: parameter 1 ('mode') has incomplete type
drivers/clocksource/timer-stm32.c:43:13: error: function declaration isn't a prototype
drivers/clocksource/timer-stm32.c: In function 'stm32_clock_event_set_mode':
drivers/clocksource/timer-stm32.c:47:3: error: type defaults to 'int' in declaration of '__mptr'
drivers/clocksource/timer-stm32.c:47:3: warning: initialization from incompatible pointer type
drivers/clocksource/timer-stm32.c:51:7: error: 'CLOCK_EVT_MODE_PERIODIC' undeclared (first use in this function)
drivers/clocksource/timer-stm32.c:51:7: note: each undeclared identifier is reported only once for each function it appears in
drivers/clocksource/timer-stm32.c:56:7: error: 'CLOCK_EVT_MODE_ONESHOT' undeclared (first use in this function)

Tighten up the dependencies to limit where it gets built by copying
the style of the Kconfig line for CLKSRC_EFM32 a few lines above.

Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Chanwoo Choi <cw00.choi@samsung.com>
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---

[linux-next fail: http://kisskb.ellerman.id.au/kisskb/buildresult/12444884/ ]

 drivers/clocksource/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index 60d7d3d204d3..0f1c77e491f8 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -112,8 +112,8 @@ config CLKSRC_LPC32XX
 	select CLKSRC_OF
 
 config CLKSRC_STM32
-	bool "Clocksource for STM32 SoCs" if COMPILE_TEST
-	depends on OF
+	bool "Clocksource for STM32 SoCs" if !ARCH_STM32
+	depends on OF && ARM && (ARCH_STM32 || COMPILE_TEST)
 	select CLKSRC_MMIO
 
 config ARM_ARCH_TIMER
-- 
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] 6+ messages in thread

* [PATCH] clocksource: increase dependencies of timer-stm32 to limit build wreckage
@ 2015-06-20 23:02 ` Paul Gortmaker
  0 siblings, 0 replies; 6+ messages in thread
From: Paul Gortmaker @ 2015-06-20 23:02 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-next, Paul Gortmaker, Linus Walleij, Chanwoo Choi,
	Maxime Coquelin, Daniel Lezcano, Thomas Gleixner

This driver leaks out into arch/parisc builds that don't have
CONFIG_GENERIC_CLOCKEVENTS, leading to the following (truncated)
wreckage:

  CC      drivers/clocksource/timer-stm32.o
drivers/clocksource/timer-stm32.c:38:28: error: field 'evtdev' has incomplete type
drivers/clocksource/timer-stm32.c:44:19: warning: 'enum clock_event_mode' declared inside parameter list
drivers/clocksource/timer-stm32.c:44:19: warning: its scope is only this definition or declaration, which is probably not what you want
drivers/clocksource/timer-stm32.c:43:62: error: parameter 1 ('mode') has incomplete type
drivers/clocksource/timer-stm32.c:43:13: error: function declaration isn't a prototype
drivers/clocksource/timer-stm32.c: In function 'stm32_clock_event_set_mode':
drivers/clocksource/timer-stm32.c:47:3: error: type defaults to 'int' in declaration of '__mptr'
drivers/clocksource/timer-stm32.c:47:3: warning: initialization from incompatible pointer type
drivers/clocksource/timer-stm32.c:51:7: error: 'CLOCK_EVT_MODE_PERIODIC' undeclared (first use in this function)
drivers/clocksource/timer-stm32.c:51:7: note: each undeclared identifier is reported only once for each function it appears in
drivers/clocksource/timer-stm32.c:56:7: error: 'CLOCK_EVT_MODE_ONESHOT' undeclared (first use in this function)

Tighten up the dependencies to limit where it gets built by copying
the style of the Kconfig line for CLKSRC_EFM32 a few lines above.

Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Chanwoo Choi <cw00.choi@samsung.com>
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---

[linux-next fail: http://kisskb.ellerman.id.au/kisskb/buildresult/12444884/ ]

 drivers/clocksource/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index 60d7d3d204d3..0f1c77e491f8 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -112,8 +112,8 @@ config CLKSRC_LPC32XX
 	select CLKSRC_OF
 
 config CLKSRC_STM32
-	bool "Clocksource for STM32 SoCs" if COMPILE_TEST
-	depends on OF
+	bool "Clocksource for STM32 SoCs" if !ARCH_STM32
+	depends on OF && ARM && (ARCH_STM32 || COMPILE_TEST)
 	select CLKSRC_MMIO
 
 config ARM_ARCH_TIMER
-- 
2.2.1

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

* [tip:timers/core] clocksource: Increase dependencies of timer-stm32 to limit build wreckage
  2015-06-20 23:02 ` Paul Gortmaker
  (?)
@ 2015-06-21 18:03 ` tip-bot for Paul Gortmaker
  2015-06-22  8:05   ` Maxime Coquelin
  -1 siblings, 1 reply; 6+ messages in thread
From: tip-bot for Paul Gortmaker @ 2015-06-21 18:03 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: hpa, daniel.lezcano, cw00.choi, paul.gortmaker, mingo,
	linus.walleij, linux-kernel, tglx, mcoquelin.stm32

Commit-ID:  1cb6c2151850584ee805fdcf088af0bb81f4b086
Gitweb:     http://git.kernel.org/tip/1cb6c2151850584ee805fdcf088af0bb81f4b086
Author:     Paul Gortmaker <paul.gortmaker@windriver.com>
AuthorDate: Sat, 20 Jun 2015 19:02:32 -0400
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Sun, 21 Jun 2015 20:01:48 +0200

clocksource: Increase dependencies of timer-stm32 to limit build wreckage

This driver leaks out into arch/parisc builds that don't have
CONFIG_GENERIC_CLOCKEVENTS, leading to the following (truncated)
wreckage:

  CC      drivers/clocksource/timer-stm32.o
drivers/clocksource/timer-stm32.c:38:28: error: field 'evtdev' has incomplete type
drivers/clocksource/timer-stm32.c:44:19: warning: 'enum clock_event_mode' declared inside parameter list
drivers/clocksource/timer-stm32.c:44:19: warning: its scope is only this definition or declaration, which is probably not what you want
drivers/clocksource/timer-stm32.c:43:62: error: parameter 1 ('mode') has incomplete type
drivers/clocksource/timer-stm32.c:43:13: error: function declaration isn't a prototype
drivers/clocksource/timer-stm32.c: In function 'stm32_clock_event_set_mode':
drivers/clocksource/timer-stm32.c:47:3: error: type defaults to 'int' in declaration of '__mptr'
drivers/clocksource/timer-stm32.c:47:3: warning: initialization from incompatible pointer type
drivers/clocksource/timer-stm32.c:51:7: error: 'CLOCK_EVT_MODE_PERIODIC' undeclared (first use in this function)
drivers/clocksource/timer-stm32.c:51:7: note: each undeclared identifier is reported only once for each function it appears in
drivers/clocksource/timer-stm32.c:56:7: error: 'CLOCK_EVT_MODE_ONESHOT' undeclared (first use in this function)

Tighten up the dependencies to limit where it gets built by copying
the style of the Kconfig line for CLKSRC_EFM32 a few lines above.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Chanwoo Choi <cw00.choi@samsung.com>
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: http://lkml.kernel.org/r/1434841352-24300-1-git-send-email-paul.gortmaker@windriver.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 drivers/clocksource/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index bec25b3..32164ba 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -112,8 +112,8 @@ config CLKSRC_LPC32XX
 	select CLKSRC_OF
 
 config CLKSRC_STM32
-	bool "Clocksource for STM32 SoCs" if COMPILE_TEST
-	depends on OF
+	bool "Clocksource for STM32 SoCs" if !ARCH_STM32
+	depends on OF && ARM && (ARCH_STM32 || COMPILE_TEST)
 	select CLKSRC_MMIO
 
 config ARM_ARCH_TIMER
--
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] 6+ messages in thread

* Re: [tip:timers/core] clocksource: Increase dependencies of timer-stm32 to limit build wreckage
  2015-06-21 18:03 ` [tip:timers/core] clocksource: Increase " tip-bot for Paul Gortmaker
@ 2015-06-22  8:05   ` Maxime Coquelin
  2015-06-29  9:09     ` Daniel Lezcano
  0 siblings, 1 reply; 6+ messages in thread
From: Maxime Coquelin @ 2015-06-22  8:05 UTC (permalink / raw)
  To: Daniel Lezcano, hpa, mingo, paul.gortmaker, Linus Walleij,
	Thomas Gleixner, linux-kernel, Maxime Coquelin
  Cc: linux-tip-commits, Chanwoo Choi

2015-06-21 20:03 GMT+02:00 tip-bot for Paul Gortmaker <tipbot@zytor.com>:
> Commit-ID:  1cb6c2151850584ee805fdcf088af0bb81f4b086
> Gitweb:     http://git.kernel.org/tip/1cb6c2151850584ee805fdcf088af0bb81f4b086
> Author:     Paul Gortmaker <paul.gortmaker@windriver.com>
> AuthorDate: Sat, 20 Jun 2015 19:02:32 -0400
> Committer:  Thomas Gleixner <tglx@linutronix.de>
> CommitDate: Sun, 21 Jun 2015 20:01:48 +0200
>
> clocksource: Increase dependencies of timer-stm32 to limit build wreckage
>
> This driver leaks out into arch/parisc builds that don't have
> CONFIG_GENERIC_CLOCKEVENTS, leading to the following (truncated)
> wreckage:
>
>   CC      drivers/clocksource/timer-stm32.o
> drivers/clocksource/timer-stm32.c:38:28: error: field 'evtdev' has incomplete type
> drivers/clocksource/timer-stm32.c:44:19: warning: 'enum clock_event_mode' declared inside parameter list
> drivers/clocksource/timer-stm32.c:44:19: warning: its scope is only this definition or declaration, which is probably not what you want
> drivers/clocksource/timer-stm32.c:43:62: error: parameter 1 ('mode') has incomplete type
> drivers/clocksource/timer-stm32.c:43:13: error: function declaration isn't a prototype
> drivers/clocksource/timer-stm32.c: In function 'stm32_clock_event_set_mode':
> drivers/clocksource/timer-stm32.c:47:3: error: type defaults to 'int' in declaration of '__mptr'
> drivers/clocksource/timer-stm32.c:47:3: warning: initialization from incompatible pointer type
> drivers/clocksource/timer-stm32.c:51:7: error: 'CLOCK_EVT_MODE_PERIODIC' undeclared (first use in this function)
> drivers/clocksource/timer-stm32.c:51:7: note: each undeclared identifier is reported only once for each function it appears in
> drivers/clocksource/timer-stm32.c:56:7: error: 'CLOCK_EVT_MODE_ONESHOT' undeclared (first use in this function)
>
> Tighten up the dependencies to limit where it gets built by copying
> the style of the Kconfig line for CLKSRC_EFM32 a few lines above.
>
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
> Cc: Linus Walleij <linus.walleij@linaro.org>
> Cc: Chanwoo Choi <cw00.choi@samsung.com>
> Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
> Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
> Link: http://lkml.kernel.org/r/1434841352-24300-1-git-send-email-paul.gortmaker@windriver.com
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
> ---
>  drivers/clocksource/Kconfig | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>

Thanks Paul for the patch.
Actually, I already had sent a patch to fix this dependency issue [0].
I thought Daniel had pick it, but don't find it in his tree.
My patch adds a build dependency on GENERIC_CLOCKEVENTS, which I think
is the best way to fix the problem.

Regards,
Maxime

[0]: https://lkml.org/lkml/2015/6/7/47
--
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] 6+ messages in thread

* Re: [tip:timers/core] clocksource: Increase dependencies of timer-stm32 to limit build wreckage
  2015-06-22  8:05   ` Maxime Coquelin
@ 2015-06-29  9:09     ` Daniel Lezcano
  2015-06-30  7:46       ` Maxime Coquelin
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Lezcano @ 2015-06-29  9:09 UTC (permalink / raw)
  To: Maxime Coquelin, hpa, mingo, paul.gortmaker, Linus Walleij,
	Thomas Gleixner, linux-kernel
  Cc: linux-tip-commits, Chanwoo Choi

On 06/22/2015 10:05 AM, Maxime Coquelin wrote:

[ ... ]

>> ---
>>   drivers/clocksource/Kconfig | 4 ++--
>>   1 file changed, 2 insertions(+), 2 deletions(-)
>>
>
> Thanks Paul for the patch.
> Actually, I already had sent a patch to fix this dependency issue [0].
> I thought Daniel had pick it, but don't find it in his tree.
> My patch adds a build dependency on GENERIC_CLOCKEVENTS, which I think
> is the best way to fix the problem.

Yes, I have it in my tree but I was expecting some more fixes to pick up 
in order to send a PR to Thomas.

Is it possible you send your a fix on top of this patch ? So I can drop 
your initial patch.

   -- Daniel


-- 
  <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog


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

* Re: [tip:timers/core] clocksource: Increase dependencies of timer-stm32 to limit build wreckage
  2015-06-29  9:09     ` Daniel Lezcano
@ 2015-06-30  7:46       ` Maxime Coquelin
  0 siblings, 0 replies; 6+ messages in thread
From: Maxime Coquelin @ 2015-06-30  7:46 UTC (permalink / raw)
  To: Daniel Lezcano
  Cc: hpa, mingo, paul.gortmaker, Linus Walleij, Thomas Gleixner,
	linux-kernel, linux-tip-commits, Chanwoo Choi

2015-06-29 11:09 GMT+02:00 Daniel Lezcano <daniel.lezcano@linaro.org>:
> On 06/22/2015 10:05 AM, Maxime Coquelin wrote:
>
> [ ... ]
>
>>> ---
>>>   drivers/clocksource/Kconfig | 4 ++--
>>>   1 file changed, 2 insertions(+), 2 deletions(-)
>>>
>>
>> Thanks Paul for the patch.
>> Actually, I already had sent a patch to fix this dependency issue [0].
>> I thought Daniel had pick it, but don't find it in his tree.
>> My patch adds a build dependency on GENERIC_CLOCKEVENTS, which I think
>> is the best way to fix the problem.
>
>
> Yes, I have it in my tree but I was expecting some more fixes to pick up in
> order to send a PR to Thomas.
>
> Is it possible you send your a fix on top of this patch ? So I can drop your
> initial patch.
>

Sure. I will rebase my patch on top of Paul's one.

Thanks,
Maxime

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

end of thread, other threads:[~2015-06-30  7:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-20 23:02 [PATCH] clocksource: increase dependencies of timer-stm32 to limit build wreckage Paul Gortmaker
2015-06-20 23:02 ` Paul Gortmaker
2015-06-21 18:03 ` [tip:timers/core] clocksource: Increase " tip-bot for Paul Gortmaker
2015-06-22  8:05   ` Maxime Coquelin
2015-06-29  9:09     ` Daniel Lezcano
2015-06-30  7:46       ` Maxime Coquelin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.