staging/lustre: fix build error when CONFIG_FS_POSIX_ACL is off
authorPeng Tao <bergwolf@gmail.com>
Tue, 3 Dec 2013 14:11:38 +0000 (22:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Dec 2013 16:40:23 +0000 (08:40 -0800)
commit04eb2b7f3ff19685531945a484e78ab7b9376ccc
treebfad3e1e6fb8f9ed40ca79b1fd53ecf9f4c029ac
parentb89f3b9460417758d5189caddab8a052d2dd19f4
staging/lustre: fix build error when CONFIG_FS_POSIX_ACL is off

We need to include <linux/posix_acl_xattr.h> regardless of
CONFIG_FS_POSIX_ACL is set or not. Otherwise build fails as
reported by kbuild robot:

>> drivers/staging/lustre/lustre/llite/file.c:2965:2: error: implicit declaration of function 'posix_acl_dup' [-Werror=implicit-function-declaration]
     acl = posix_acl_dup(lli->lli_posix_acl);
<many similar errors omitted>

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Cc: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/linux/lustre_acl.h
drivers/staging/lustre/lustre/include/lustre_mdc.h
drivers/staging/lustre/lustre/llite/llite_internal.h
drivers/staging/lustre/lustre/ptlrpc/wiretest.c