Ed Sweetman wrote:
> I'm using the cvs patch for 2.6.0-test7.  I'm getting some kind of macro 
> problems though.  It keeps complaining about errors like this
> drivers/char/fusion/fusiondev.c:368: error: syntax error before '[' token
> drivers/char/fusion/fusiondev.c:372: error: syntax error before '[' token
> drivers/char/fusion/fusiondev.c:387: error: syntax error before '[' token
> drivers/char/fusion/fusiondev.c:400: error: syntax error before '[' token
> drivers/char/fusion/fusiondev.c:411: error: syntax error before '[' token
> 
> 
> the source is like this
> case FUSION_GET_ID:
> 
> 
> the macro is in fusion.h
> 
> #define FUSION_GET_ID                   _IOR('F', 0x00, sizeof(int))

I don't know if that's causing the '[' problem, but
linux-2.6.0-test5/Documentation/ioctl-number.txt says:

"NOTE!  Do NOT use sizeof(arg) as the third argument as this results in
your ioctl thinking it passes an argument of type size_t."


Johannes


-- 
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-users" as subject.

Reply via email to