where is the vm_dentry definition?

Rafal Maszkowski (rzm@icm.edu.pl)
Tue, 10 Mar 1998 19:32:44 +0100 (MET)


I'm trying to compile 2.1.89, standard and CVS versions
on Sparc and am getting compilation errors like

vfc_dev.c: In function `vfc_mmap':
vfc_dev.c:585: structure has no member named `vm_dentry'

in several files but there is no such field in any of the
header files.
How the vm_dentry should be defined?

There are some other errors/warnings too:

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fcall-used-g5 -fcall-used-g7 -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -c -o vfc_dev.o vfc_dev.c
vfc_dev.c:24: linux/uaccess.h: No such file or directory
^^^^^should be asm or there should be linux/uaccess.h calling asm/uaccess.h
vfc_dev.c: In function `vfc_debug':
vfc_dev.c:212: warning: implicit declaration of function `copy_from_user'
vfc_dev.c:221: parse error before `;'
^^^should be deleted
vfc_dev.c:232: warning: implicit declaration of function `copy_to_user'
vfc_dev.c:238: break statement not within loop or switch
vfc_dev.c:239: case label not within a switch statement
vfc_dev.c:263: break statement not within loop or switch
vfc_dev.c:264: default label not within a switch statement
vfc_dev.c:206: warning: unused variable `ret'
vfc_dev.c:205: warning: `buffer' might be used uninitialized in this function
vfc_dev.c:247: warning: `s' might be used uninitialized in this function
vfc_dev.c:247: warning: `s' might be used uninitialized in this function
vfc_dev.c:247: warning: `s' might be used uninitialized in this function
vfc_dev.c: At top level:
vfc_dev.c:267: parse error before `return'
vfc_dev.c: In function `vfc_mmap':
vfc_dev.c:585: structure has no member named `vm_dentry'
vfc_dev.c: At top level:
vfc_dev.c:597: warning: initialization from incompatible pointer type
vfc_dev.c:603: warning: initialization from incompatible pointer type
vfc_dev.c:605: warning: initialization from incompatible pointer type

R.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu