build on CentOS 7.3 hostos: too few arguments to function ‘notify_change’

Acewind acewind at gmail.com
Mon Sep 3 02:42:39 UTC 2018


After download code from
https://github.com/GPUOpen-LibrariesAndSDKs/MxGPU-Virtualization,  I try to
compile MxGPU-Virtualization-master source on my CentOS 7.3 host, but got
an error.  Do I need to change the kernel of hostos?

[root at myhost drv]# uname -r
3.10.0-514.el7.x86_64

[root at myhost drv]# make
make -C /lib/modules/3.10.0-514.el7.x86_64/build
M=/home/astute/zwj/MxGPU-Virtualization-master/drv modules
make[1]: Entering directory `/usr/src/kernels/3.10.0-514.el7.x86_64'
  CC [M]  /home/astute/zwj/MxGPU-Virtualization-master/drv/gim_file.o
/home/astute/zwj/MxGPU-Virtualization-master/drv/gim_file.c: In function
‘file_truncate’:
/home/astute/zwj/MxGPU-Virtualization-master/drv/gim_file.c:87:2: error:
too few arguments to function ‘notify_change’
  ret = notify_change(file->f_path.dentry, &newattrs);
  ^
In file included from
/home/astute/zwj/MxGPU-Virtualization-master/drv/gim_file.c:23:0:
include/linux/fs.h:2579:12: note: declared here
 extern int notify_change(struct dentry *, struct iattr *, struct inode **);
            ^
make[2]: *** [/home/astute/zwj/MxGPU-Virtualization-master/drv/gim_file.o]
Error 1
make[1]: *** [_module_/home/astute/zwj/MxGPU-Virtualization-master/drv]
Error 2
make[1]: Leaving directory `/usr/src/kernels/3.10.0-514.el7.x86_64'
make: *** [all] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20180903/333731dd/attachment-0001.html>


More information about the amd-gfx mailing list