rasa / vmware-tools-patches

Patch and build VMware tools automatically
https://github.com/rasa/vmware-tools-patches/wiki
MIT License
1.19k stars 198 forks source link

failed error: ‘struct inode’ has no member named ‘i_mutex’ #129

Open lianghongle opened 5 years ago

lianghongle commented 5 years ago
version
VMwareTools 10.2.5-8068393
os centos7
header 5.0.3-1.el7.elrepo.x86_64
Using kernel build system.
make: Entering directory `/tmp/modconfig-vQUDB2/vmhgfs-only'
/bin/make -C /lib/modules/5.0.3-1.el7.elrepo.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/kernels/5.0.3-1.el7.elrepo.x86_64'
Makefile:189: ================= WARNING ================
Makefile:190: 'SUBDIRS' will be removed after Linux 5.3
Makefile:191: Please use 'M=' or 'KBUILD_EXTMOD' instead
Makefile:192: ==========================================
  CC [M]  /tmp/modconfig-vQUDB2/vmhgfs-only/message.o
  CC [M]  /tmp/modconfig-vQUDB2/vmhgfs-only/dir.o
/tmp/modconfig-vQUDB2/vmhgfs-only/dir.c: In function ‘HgfsDirLlseek’:
/tmp/modconfig-vQUDB2/vmhgfs-only/dir.c:717:16: error: ‘struct inode’ has no member named ‘i_mutex’
    mtx = &inode->i_mutex;
                ^
make[2]: *** [/tmp/modconfig-vQUDB2/vmhgfs-only/dir.o] Error 1
make[1]: *** [_module_/tmp/modconfig-vQUDB2/vmhgfs-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/5.0.3-1.el7.elrepo.x86_64'
make: *** [vmhgfs.ko] Error 2
make: Leaving directory `/tmp/modconfig-vQUDB2/vmhgfs-only'