Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1475533 > unrolled thread
| Started by | Baoyou Xie <baoyou.xie@linaro.org> |
|---|---|
| First post | 2016-09-03 05:30 +0200 |
| Last post | 2016-09-03 14:00 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] clocksource: pxa_timer: add missing header dependencies Baoyou Xie <baoyou.xie@linaro.org> - 2016-09-03 05:30 +0200
Re: [PATCH] clocksource: pxa_timer: add missing header dependencies Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-09-03 14:00 +0200
| From | Baoyou Xie <baoyou.xie@linaro.org> |
|---|---|
| Date | 2016-09-03 05:30 +0200 |
| Subject | [PATCH] clocksource: pxa_timer: add missing header dependencies |
| Message-ID | <sd9Ox-8iw-3@gated-at.bofh.it> |
We get 1 warning when building kernel with W=1: drivers/clocksource/pxa_timer.c:221:13: warning: no previous prototype for 'pxa_timer_nodt_init' [-Wmissing-prototypes] In fact, this function is declared in include/clocksource/pxa.h, although it's not referenced anywhere now, it can be referenced by someone out of nowhere in future, so this patch adds missing header dependencies. Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org> --- drivers/clocksource/pxa_timer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clocksource/pxa_timer.c b/drivers/clocksource/pxa_timer.c index 937e10b..3e1cb51 100644 --- a/drivers/clocksource/pxa_timer.c +++ b/drivers/clocksource/pxa_timer.c @@ -21,6 +21,8 @@ #include <linux/of_irq.h> #include <linux/sched_clock.h> +#include <clocksource/pxa.h> + #include <asm/div64.h> #define OSMR0 0x00 /* OS Timer 0 Match Register */ -- 2.7.4
[toc] | [next] | [standalone]
| From | Daniel Lezcano <daniel.lezcano@linaro.org> |
|---|---|
| Date | 2016-09-03 14:00 +0200 |
| Message-ID | <sdhM5-4Da-9@gated-at.bofh.it> |
| In reply to | #1475533 |
On 09/03/2016 05:18 AM, Baoyou Xie wrote: > We get 1 warning when building kernel with W=1: > drivers/clocksource/pxa_timer.c:221:13: warning: no previous prototype for 'pxa_timer_nodt_init' [-Wmissing-prototypes] > > In fact, this function is declared in include/clocksource/pxa.h, > although it's not referenced anywhere now, it can be referenced > by someone out of nowhere in future, so this patch adds missing > header dependencies. > > Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org> > --- Already applied [1]. Thanks. [1] https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git/commit/?h=timers/urgent&id=aa8c0f1ad7e862147f4efb32bbb71ff66eb38caa -- <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
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web