Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756217AbbFVIFR (ORCPT ); Mon, 22 Jun 2015 04:05:17 -0400 Received: from mail-yh0-f42.google.com ([209.85.213.42]:33494 "EHLO mail-yh0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752819AbbFVIFM (ORCPT ); Mon, 22 Jun 2015 04:05:12 -0400 MIME-Version: 1.0 In-Reply-To: References: <1434841352-24300-1-git-send-email-paul.gortmaker@windriver.com> Date: Mon, 22 Jun 2015 10:05:11 +0200 Message-ID: Subject: Re: [tip:timers/core] clocksource: Increase dependencies of timer-stm32 to limit build wreckage From: Maxime Coquelin To: Daniel Lezcano , hpa@zytor.com, mingo@kernel.org, paul.gortmaker@windriver.com, Linus Walleij , Thomas Gleixner , "linux-kernel@vger.kernel.org" , Maxime Coquelin Cc: linux-tip-commits@vger.kernel.org, Chanwoo Choi Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2921 Lines: 55 2015-06-21 20:03 GMT+02:00 tip-bot for Paul Gortmaker : > Commit-ID: 1cb6c2151850584ee805fdcf088af0bb81f4b086 > Gitweb: http://git.kernel.org/tip/1cb6c2151850584ee805fdcf088af0bb81f4b086 > Author: Paul Gortmaker > AuthorDate: Sat, 20 Jun 2015 19:02:32 -0400 > Committer: Thomas Gleixner > 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 > Cc: Linus Walleij > Cc: Chanwoo Choi > Cc: Maxime Coquelin > Cc: Daniel Lezcano > Link: http://lkml.kernel.org/r/1434841352-24300-1-git-send-email-paul.gortmaker@windriver.com > Signed-off-by: Thomas Gleixner > --- > 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/