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,
                 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
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Reply via email to