diff options
author | Jeff Layton <jlayton@redhat.com> | 2012-03-21 06:27:54 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2012-03-21 12:55:44 -0400 |
commit | 815465c4d724e851932843227b4b700d64216cf2 (patch) | |
tree | 1ca2e93dad7d66fe8d63d2f9c87ad6f6e3c34239 /fs/cifs/cifsproto.h | |
parent | 6dae51a585008535858c29b489dbf90a913d511b (diff) |
cifs: clean up call to cifs_dfs_release_automount_timer()
Take the #ifdef junk out of the code, and turn it into a noop macro
when CONFIG_CIFS_DFS_UPCALL isn't defined.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsproto.h')
-rw-r--r-- | fs/cifs/cifsproto.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h index 47a769e535b1..503e73d8bdb7 100644 --- a/fs/cifs/cifsproto.h +++ b/fs/cifs/cifsproto.h | |||
@@ -171,7 +171,13 @@ extern struct smb_vol *cifs_get_volume_info(char *mount_data, | |||
171 | const char *devname); | 171 | const char *devname); |
172 | extern int cifs_mount(struct cifs_sb_info *, struct smb_vol *); | 172 | extern int cifs_mount(struct cifs_sb_info *, struct smb_vol *); |
173 | extern void cifs_umount(struct cifs_sb_info *); | 173 | extern void cifs_umount(struct cifs_sb_info *); |
174 | |||
175 | #if IS_ENABLED(CONFIG_CIFS_DFS_UPCALL) | ||
174 | extern void cifs_dfs_release_automount_timer(void); | 176 | extern void cifs_dfs_release_automount_timer(void); |
177 | #else /* ! IS_ENABLED(CONFIG_CIFS_DFS_UPCALL) */ | ||
178 | #define cifs_dfs_release_automount_timer() do { } while (0) | ||
179 | #endif /* ! IS_ENABLED(CONFIG_CIFS_DFS_UPCALL) */ | ||
180 | |||
175 | void cifs_proc_init(void); | 181 | void cifs_proc_init(void); |
176 | void cifs_proc_clean(void); | 182 | void cifs_proc_clean(void); |
177 | 183 | ||