[PATCH] devfs v143 available

Reine Gill (rg@irfu.se)
Thu, 18 Nov 1999 02:20:35 +0200


Im trying to upgrade a driver from kernel 2.0 to 2.2, i have done so before
without problems, after changing all that i usually change i get this:

gcc -Wall -O2 -DMODULE -D_KERNEL__ -DLINUX -c tmnp_head_3.2.c -o tm.o
In file included from /usr/include/bits/string2.h:51,
from /usr/include/string.h:340,
from tm_cdev_3.2.c:20,
from tmnp_head_3.2.c:38:
/usr/include/bits/types.h:95: warning: `__NFDBITS' redefined
/usr/include/linux/posix_types.h:30: warning: this is the location of the previous definition
/usr/include/bits/types.h:97: warning: `__FDMASK' redefined
/usr/include/linux/posix_types.h:42: warning: this is the location of the previous definition
/usr/include/asm/uaccess.h: In function `verify_area':
In file included from tm_cdev_3.2.c:36,
from tmnp_head_3.2.c:38:
/usr/include/asm/uaccess.h:63: dereferencing pointer to incomplete type
/usr/include/asm/uaccess.h:63: dereferencing pointer to incomplete type
/usr/include/asm/uaccess.h:64: warning: control reaches end of non-void function
/usr/include/asm/uaccess.h: In function `__constant_copy_to_user':
/usr/include/asm/uaccess.h:547: dereferencing pointer to incomplete type
/usr/include/asm/uaccess.h:547: dereferencing pointer to incomplete type
/usr/include/asm/uaccess.h: In function `__constant_copy_from_user':
/usr/include/asm/uaccess.h:555: dereferencing pointer to incomplete type
/usr/include/asm/uaccess.h:555: dereferencing pointer to incomplete type
tm_cdev_3.2.c: In function `tm_intrfc':
In file included from tmnp_head_3.2.c:38:
tm_cdev_3.2.c:138: warning: implicit declaration of function `wake_up_interruptible'
tm_cdev_3.2.c: At top level:
tm_cdev_3.2.c:151: warning: `struct file' declared inside parameter list
tm_cdev_3.2.c:151: warning: its scope is only this definition or declaration,
tm_cdev_3.2.c:151: warning: which is probably not what you want.
tm_cdev_3.2.c: In function `tm_lseek':........AND SO ON.............

The first warnings doesn't seem to be the problem, but i suspect it could be
somthing similar to the socket.h socket filter problem....it gives the same
error: dereferencing pointer to incomplete type.....

Please CC any clues..

Reine G.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/