[patch 2/5] PS3: Add time include to lpm

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Thu May 1 12:33:43 EST 2008


On Wed, 30 Apr 2008 15:25:09 -0700
Geoff Levand <geoffrey.levand at am.sony.com> wrote:

> From: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
> 
> Add an include <asm/time.h> statement for get_tb().
> 
> Signed-off-by: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
> Signed-off-by: Geoff Levand <geoffrey.levand at am.sony.com>
> ---
> 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>
> 
> -- 
> 
> 
> 



More information about the Linuxppc-dev mailing list