diff -pruN linux-2.6.32.orig/include/linux/ve_nfs.h linux-2.6.32/include/linux/ve_nfs.h --- linux-2.6.32.orig/include/linux/ve_nfs.h 2012-08-28 15:43:31 +0400 +++ linux-2.6.32/include/linux/ve_nfs.h 2012-09-05 16:17:42 +0400 @@ -66,6 +66,7 @@ struct ve_nlm_data { #define NLM_CTX_FIELD(arg) (get_exec_env()->nlm_data->_##arg) #define NFS_CTX_FIELD(arg) (get_exec_env()->nfs_data->_##arg) +#if defined(CONFIG_SUNRPC) || defined(CONFIG_SUNRPC_MODULE) static inline void ve_rpc_data_init(void) { atomic_set(&get_exec_env()->rpc_data->_users, 1); @@ -93,7 +94,9 @@ static inline void ve_rpc_data_put(struc } (void)set_exec_env(curr_ve); } +#endif +#if defined(CONFIG_NFS_FS) || defined(CONFIG_NFS_FS_MODULE) static inline void ve_nfs_data_init(struct ve_nfs_data *data) { atomic_set(&data->_users, 1); @@ -122,6 +125,7 @@ static inline void ve_nfs_data_put(struc } (void)set_exec_env(curr_ve); } +#endif #else /* CONFIG_VE */