ecmproute wrote:
Hi, I am using FC2 (2.6.5). I update my cvs for fusion today, and got
a compile error:

linux/drivers/char/fusion/entries.c:334: error: incompatible types in assignment
The code in this line is : entry->last_lock = xtime;
Function name: fusion_entry_lock
Confused about which path to take in life?

I ran into this as well last night. The problem is that xtime is of type timespec and last_lock is timeval. I did this hack to get me going:



Index: linux/drivers/char/fusion/entries.c =================================================================== RCS file: /cvs/directfb/linux-fusion/linux/drivers/char/fusion/entries.c,v retrieving revision 1.4 diff -u -r1.4 entries.c --- linux/drivers/char/fusion/entries.c 14 Nov 2004 06:10:38 -0000 1.4 +++ linux/drivers/char/fusion/entries.c 22 Nov 2004 15:26:18 -0000 @@ -331,7 +331,9 @@

      /* Keep timestamp, but use the slightly
         inexact version to avoid performance impacts. */
-     entry->last_lock = xtime;
+     // entry->last_lock = xtime;
+     entry->last_lock.tv_sec  = xtime.tv_sec;
+     entry->last_lock.tv_usec = xtime.tv_nsec/1000;

      /* Unlock entries. */
      up( &entries->lock );

-Rob




Reply via email to