staging: lustre: hide call to Posix ACL in ifdef
authorArnd Bergmann <arnd@arndb.de>
Mon, 13 Jun 2016 20:44:57 +0000 (22:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Jun 2016 23:19:43 +0000 (16:19 -0700)
commited7bdf5c9c15f8b23af4d00975f9976734eadb14
tree06ecdd3caa992d77bb1b89a2f291ccd603baf9ae
parent21ca52bb749e66cf755a8b8d6345a8fbbc17ce91
staging: lustre: hide call to Posix ACL in ifdef

A call to forget_cached_acl() was recently added to the lustre file
system, but this is only available when CONFIG_FS_POSIX_ACL is
enabled, otherwise the build now fails with:

lustre/llite/file.c: In function 'll_get_acl':
lustre/llite/file.c:3134:2: error: implicit declaration of function 'forget_cached_acl' [-Werror=implicit-function-declaration]
  forget_cached_acl(inode, type);

This adds one more #ifdef for this call, corresponding to the
other 22 such checks for ACL in lustre.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: b788dc51e425 ("staging: lustre: llite: drop acl from cache")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/file.c