From: David Howells Date: Fri, 21 Dec 2012 12:15:05 +0000 (+0000) Subject: NFS: Provide stub nfs_fscache_wait_on_invalidate() for when CONFIG_NFS_FSCACHE=n X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c129c29347b6cf0d64bfe53848f68320286612ab;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git NFS: Provide stub nfs_fscache_wait_on_invalidate() for when CONFIG_NFS_FSCACHE=n Provide a stub nfs_fscache_wait_on_invalidate() function for when CONFIG_NFS_FSCACHE=n lest the following error appear: fs/nfs/inode.c: In function 'nfs_invalidate_mapping': fs/nfs/inode.c:887:2: error: implicit declaration of function 'nfs_fscache_wait_on_invalidate' [-Werror=implicit-function-declaration] cc1: some warnings being treated as errors Reported-by: kbuild test robot Reported-by: Vineet Gupta Reported-by: Borislav Petkov Signed-off-by: David Howells Signed-off-by: Linus Torvalds --- diff --git a/fs/nfs/fscache.h b/fs/nfs/fscache.h index 277b02782897..4ecb76652eba 100644 --- a/fs/nfs/fscache.h +++ b/fs/nfs/fscache.h @@ -222,6 +222,7 @@ static inline void nfs_readpage_to_fscache(struct inode *inode, static inline void nfs_fscache_invalidate(struct inode *inode) {} +static inline void nfs_fscache_wait_on_invalidate(struct inode *inode) {} static inline const char *nfs_server_fscache_state(struct nfs_server *server) {