kernel/fs/cifs/cifsfs.h
.. .. @@ -126,7 +126,10 @@ 126 126 #ifdef CONFIG_CIFS_DFS_UPCALL 127 127 extern struct vfsmount *cifs_dfs_d_automount(struct path *path); 128 128 #else 129 -#define cifs_dfs_d_automount NULL129 +static inline struct vfsmount *cifs_dfs_d_automount(struct path *path)130 +{131 + return ERR_PTR(-EREMOTE);132 +}130 133 #endif 131 134 132 135 /* Functions related to symlinks */