* including <linux/workqueue.h> isn't self contained
@ 2011-09-06 18:29 Uwe Kleine-König
2011-09-08 15:14 ` Arnd Bergmann
0 siblings, 1 reply; 2+ messages in thread
From: Uwe Kleine-König @ 2011-09-06 18:29 UTC (permalink / raw)
To: linux-kernel; +Cc: Baruch Siach, Andrew Morton, kernel, Arnd Bergmann
Hello,
compiling drivers/rtc/rtc-imxdi.c currently results in:
drivers/rtc/rtc-imxdi.c: In function 'di_write_wait':
drivers/rtc/rtc-imxdi.c:168:301: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
drivers/rtc/rtc-imxdi.c:168:301: note: each undeclared identifier is reported only once for each function it appears in
drivers/rtc/rtc-imxdi.c:168:2: error: implicit declaration of function 'signal_pending'
drivers/rtc/rtc-imxdi.c:168:2: error: implicit declaration of function 'schedule_timeout'
drivers/rtc/rtc-imxdi.c: In function 'dryice_norm_irq':
drivers/rtc/rtc-imxdi.c:329:34: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
This is a regression from
4ba8216 (BKL: That's all, folks)
that removes #inclusion of <linux/sched.h> from include/linux/hardirq.h.
Adding
#include <linux/sched.h>
to the driver fixes it, but I wonder if that is the correct fix because
the driver only uses wait_event_interruptible_timeout (and
wake_up_interruptible) explicitly but none of the three undeclared
symbols.
Any insight welcome.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: including <linux/workqueue.h> isn't self contained
2011-09-06 18:29 including <linux/workqueue.h> isn't self contained Uwe Kleine-König
@ 2011-09-08 15:14 ` Arnd Bergmann
0 siblings, 0 replies; 2+ messages in thread
From: Arnd Bergmann @ 2011-09-08 15:14 UTC (permalink / raw)
To: Uwe Kleine-König; +Cc: linux-kernel, Baruch Siach, Andrew Morton, kernel
On Tuesday 06 September 2011, Uwe Kleine-König wrote:
> compiling drivers/rtc/rtc-imxdi.c currently results in:
>
> drivers/rtc/rtc-imxdi.c: In function 'di_write_wait':
> drivers/rtc/rtc-imxdi.c:168:301: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
> drivers/rtc/rtc-imxdi.c:168:301: note: each undeclared identifier is reported only once for each function it appears in
> drivers/rtc/rtc-imxdi.c:168:2: error: implicit declaration of function 'signal_pending'
> drivers/rtc/rtc-imxdi.c:168:2: error: implicit declaration of function 'schedule_timeout'
> drivers/rtc/rtc-imxdi.c: In function 'dryice_norm_irq':
> drivers/rtc/rtc-imxdi.c:329:34: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
>
> This is a regression from
>
> 4ba8216 (BKL: That's all, folks)
>
> that removes #inclusion of <linux/sched.h> from include/linux/hardirq.h.
>
> Adding
>
> #include <linux/sched.h>
>
> to the driver fixes it, but I wonder if that is the correct fix because
> the driver only uses wait_event_interruptible_timeout (and
> wake_up_interruptible) explicitly but none of the three undeclared
> symbols.
Sorry about that. I would just include sched.h in there as an easy
workaround. Cleaning up the dependencies around sched.h is a larger
task and has been going on for roughly as long as the BKL removal,
so it's not your job to figure it out now.
Arnd
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-09-08 15:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-06 18:29 including <linux/workqueue.h> isn't self contained Uwe Kleine-König
2011-09-08 15:14 ` Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®