While compiling the Lustre client with newer kernel. It fails with the following error:
Command Used to compile:
./configure
--with-linux=$
{kernel_source_dir}
--with-o2ib=$
{dkms_tree}
/mlnx-ofed-kernel/$
{OFED_VERSION}
/build
--disable-server
--disable-quilt
--disable-dependency-tracking
--disable-doc
--disable-utils
--disable-liblustre
--disable-snmp
--disable-zerocopy
--disable-tests
--enable-quota
make
Error:-
/var/lib/dkms/lustre/2.5.24/build/lustre/llite/dcache.c: In function
'll_invalidate_aliases':
/var/lib/dkms/lustre/2.5.24/build/lustre/llite/dcache.c:302:2: error:
'struct dentry' has no member named 'd_alias'
/var/lib/dkms/lustre/2.5.24/build/lustre/llite/dcache.c:302:2: error:
initialization from incompatible pointer type [-Werror]
/var/lib/dkms/lustre/2.5.24/build/lustre/llite/dcache.c:302:2: error:
'struct dentry' has no member named 'd_alias'
/var/lib/dkms/lustre/2.5.24/build/lustre/llite/dcache.c:302:2: error:
'struct dentry' has no member named 'd_alias'
/var/lib/dkms/lustre/2.5.24/build/lustre/llite/dcache.c:302:2: error:
'struct dentry' has no member named 'd_alias'
/var/lib/dkms/lustre/2.5.24/build/lustre/llite/dcache.c:302:2: error:
'struct dentry' has no member named 'd_alias'
/var/lib/dkms/lustre/2.5.24/build/lustre/llite/dcache.c:302:2: error:
'struct dentry' has no member named 'd_alias'
cc1: all warnings being treated as errors