On Wed, 30 Apr 2008 15:25:09 -0700 Geoff Levand <[EMAIL PROTECTED]> wrote:
> From: FUJITA Tomonori <[EMAIL PROTECTED]> > > Add an include <asm/time.h> statement for get_tb(). > > Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> > Signed-off-by: Geoff Levand <[EMAIL PROTECTED]> > --- > drivers/ps3/ps3-lpm.c:192: error: implicit declaration of function 'get_tb' > > I could not recreate this error. asm/time.h seems to be included > from linux/module.h: > > In file included from include2/asm/cputime.h:27, Seems that if VIRT_CPU_ACCOUNTING is disabled, asm/time.h is not included here. > from > /home/geoff/projects/cell/linux-2.6/include/linux/sched.h:67, > from include2/asm/elf.h:6, > from > /home/geoff/projects/cell/linux-2.6/include/linux/elf.h:8, > from > /home/geoff/projects/cell/linux-2.6/include/linux/module.h:15, > from > /home/geoff/projects/cell/linux-2.6/drivers/ps3/ps3-lpm.c:24: > include2/asm/time.h:134 > > drivers/ps3/ps3-lpm.c | 1 + > 1 file changed, 1 insertion(+) > > --- a/drivers/ps3/ps3-lpm.c > +++ b/drivers/ps3/ps3-lpm.c > @@ -22,6 +22,7 @@ > #include <linux/module.h> > #include <linux/interrupt.h> > #include <linux/uaccess.h> > +#include <asm/time.h> > #include <asm/ps3.h> > #include <asm/lv1call.h> > #include <asm/cell-pmu.h> > > -- > > > _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev