Some compilers complain that _inode is used uninitialised here.
Since this test requires -Werror, it causes the test to fail
and our permission op to be used in RCU mode, leading to lockups.
Initialise it to make the compilers happy.
Fixes a lockup seen on kernels 2.6.38+ on Gentoo and Debian.
Change-Id: Id6325e3a5a918906d547d241a39de777fb394fdc
Reviewed-on: http://gerrit.openafs.org/4654
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
AC_CHECK_LINUX_BUILD([whether inode_operations.permission takes flags],
[ac_cv_linux_func_i_permission_takes_flags],
[#include <linux/fs.h>],
- [struct inode _inode;
+ [struct inode _inode = {0};
unsigned int flags = 0;
(void)_inode.i_op->permission(&_inode, 0, flags);],
[IOP_PERMISSION_TAKES_FLAGS],