mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.6.32-rc4 fail compile -- drivers/char/rtc.c
@ 2009-10-12  0:26 Pete Clements
  2009-10-12  1:37 ` Xiaotian Feng
  0 siblings, 1 reply; 3+ messages in thread
From: Pete Clements @ 2009-10-12  0:26 UTC (permalink / raw)
  To: linux-kernel

Fyi:
(i386 SMP)


  CC      drivers/char/rtc.o
drivers/char/rtc.c: In function 'rtc_interrupt':
drivers/char/rtc.c:271: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
drivers/char/rtc.c:271: error: (Each undeclared identifier is reported only once
drivers/char/rtc.c:271: error: for each function it appears in.)
drivers/char/rtc.c:273: error: 'SIGIO' undeclared (first use in this function)
drivers/char/rtc.c:273: error: 'POLL_IN' undeclared (first use in this function)
drivers/char/rtc.c: In function 'rtc_read':
drivers/char/rtc.c:362: error: implicit declaration of function '__set_current_state'
drivers/char/rtc.c:362: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
drivers/char/rtc.c:376: error: implicit declaration of function 'signal_pending'
drivers/char/rtc.c:380: error: implicit declaration of function 'schedule'
drivers/char/rtc.c:393: error: 'TASK_RUNNING' undeclared (first use in this function)
drivers/char/rtc.c: In function 'rtc_dropped_irq':
drivers/char/rtc.c:1206: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
drivers/char/rtc.c:1208: error: 'SIGIO' undeclared (first use in this function)
drivers/char/rtc.c:1208: error: 'POLL_IN' undeclared (first use in this function)
make[2]: *** [drivers/char/rtc.o] Error 1
make[1]: *** [drivers/char] Error 2
make: *** [drivers] Error 2

-- 
Pete Clements 

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

* Re: 2.6.32-rc4 fail compile -- drivers/char/rtc.c
  2009-10-12  0:26 2.6.32-rc4 fail compile -- drivers/char/rtc.c Pete Clements
@ 2009-10-12  1:37 ` Xiaotian Feng
  2009-10-12  2:32   ` Pete Clements
  0 siblings, 1 reply; 3+ messages in thread
From: Xiaotian Feng @ 2009-10-12  1:37 UTC (permalink / raw)
  To: Pete Clements; +Cc: linux-kernel

This may be caused by commit d43c36dc6b357fa1806800f18aa30123c747a6d1.
Can insert #include <linux/sched.h> into drivers/char/rtc.c fix this?

On Mon, Oct 12, 2009 at 8:26 AM, Pete Clements
<clem@clem.clem-digital.net> wrote:
> Fyi:
> (i386 SMP)
>
>
>  CC      drivers/char/rtc.o
> drivers/char/rtc.c: In function 'rtc_interrupt':
> drivers/char/rtc.c:271: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
> drivers/char/rtc.c:271: error: (Each undeclared identifier is reported only once
> drivers/char/rtc.c:271: error: for each function it appears in.)
> drivers/char/rtc.c:273: error: 'SIGIO' undeclared (first use in this function)
> drivers/char/rtc.c:273: error: 'POLL_IN' undeclared (first use in this function)
> drivers/char/rtc.c: In function 'rtc_read':
> drivers/char/rtc.c:362: error: implicit declaration of function '__set_current_state'
> drivers/char/rtc.c:362: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
> drivers/char/rtc.c:376: error: implicit declaration of function 'signal_pending'
> drivers/char/rtc.c:380: error: implicit declaration of function 'schedule'
> drivers/char/rtc.c:393: error: 'TASK_RUNNING' undeclared (first use in this function)
> drivers/char/rtc.c: In function 'rtc_dropped_irq':
> drivers/char/rtc.c:1206: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
> drivers/char/rtc.c:1208: error: 'SIGIO' undeclared (first use in this function)
> drivers/char/rtc.c:1208: error: 'POLL_IN' undeclared (first use in this function)
> make[2]: *** [drivers/char/rtc.o] Error 1
> make[1]: *** [drivers/char] Error 2
> make: *** [drivers] Error 2
>
> --
> Pete Clements
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>

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

* Re: 2.6.32-rc4 fail compile -- drivers/char/rtc.c
  2009-10-12  1:37 ` Xiaotian Feng
@ 2009-10-12  2:32   ` Pete Clements
  0 siblings, 0 replies; 3+ messages in thread
From: Pete Clements @ 2009-10-12  2:32 UTC (permalink / raw)
  To: Xiaotian Feng; +Cc: Pete Clements, linux-kernel

Quoting Xiaotian Feng
  > 
  > This may be caused by commit d43c36dc6b357fa1806800f18aa30123c747a6d1.
  > Can insert #include <linux/sched.h> into drivers/char/rtc.c fix this?

Yes, that clears the compile failure.

  > On Mon, Oct 12, 2009 at 8:26 AM, Pete Clements
  > <clem@clem.clem-digital.net> wrote:
  > > Fyi:
  > > (i386 SMP)
  > >
  > >
  > > =C2=A0CC =C2=A0 =C2=A0 =C2=A0drivers/char/rtc.o
  > > drivers/char/rtc.c: In function 'rtc_interrupt':
  > > drivers/char/rtc.c:271: error: 'TASK_INTERRUPTIBLE' undeclared (first use=
  >  in this function)
  > > drivers/char/rtc.c:271: error: (Each undeclared identifier is reported on=
  > ly once
  > > drivers/char/rtc.c:271: error: for each function it appears in.)
  > > drivers/char/rtc.c:273: error: 'SIGIO' undeclared (first use in this func=
  > tion)
  > > drivers/char/rtc.c:273: error: 'POLL_IN' undeclared (first use in this fu=
  > nction)
  > > drivers/char/rtc.c: In function 'rtc_read':
  > > drivers/char/rtc.c:362: error: implicit declaration of function '__set_cu=
  > rrent_state'
  > > drivers/char/rtc.c:362: error: 'TASK_INTERRUPTIBLE' undeclared (first use=
  >  in this function)
  > > drivers/char/rtc.c:376: error: implicit declaration of function 'signal_p=
  > ending'
  > > drivers/char/rtc.c:380: error: implicit declaration of function 'schedule=
  > '
  > > drivers/char/rtc.c:393: error: 'TASK_RUNNING' undeclared (first use in th=
  > is function)
  > > drivers/char/rtc.c: In function 'rtc_dropped_irq':
  > > drivers/char/rtc.c:1206: error: 'TASK_INTERRUPTIBLE' undeclared (first us=
  > e in this function)
  > > drivers/char/rtc.c:1208: error: 'SIGIO' undeclared (first use in this fun=
  > ction)
  > > drivers/char/rtc.c:1208: error: 'POLL_IN' undeclared (first use in this f=
  > unction)
  > > make[2]: *** [drivers/char/rtc.o] Error 1
  > > make[1]: *** [drivers/char] Error 2
  > > make: *** [drivers] Error 2
  > >
  > > --
  > > Pete Clements
-- 
Pete Clements 

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

end of thread, other threads:[~2009-10-12  2:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-12  0:26 2.6.32-rc4 fail compile -- drivers/char/rtc.c Pete Clements
2009-10-12  1:37 ` Xiaotian Feng
2009-10-12  2:32   ` Pete Clements

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®