Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

nfsd: remove nfs4_reset_lease() declarations

The function was removed a long time ago, but the declaration
and a dummy implementation are still there, referencing the
deprecated time_t type.

Remove both.

Fixes: f958a1320ff7 ("nfsd4: remove unnecessary lease-setting function")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>

authored by

Arnd Bergmann and committed by
J. Bruce Fields
364d5814 9104ae49

-2
-2
fs/nfsd/nfsd.h
··· 143 143 int nfs4_state_start_net(struct net *net); 144 144 void nfs4_state_shutdown(void); 145 145 void nfs4_state_shutdown_net(struct net *net); 146 - void nfs4_reset_lease(time_t leasetime); 147 146 int nfs4_reset_recoverydir(char *recdir); 148 147 char * nfs4_recoverydir(void); 149 148 bool nfsd4_spo_must_allow(struct svc_rqst *rqstp); ··· 153 154 static inline int nfs4_state_start_net(struct net *net) { return 0; } 154 155 static inline void nfs4_state_shutdown(void) { } 155 156 static inline void nfs4_state_shutdown_net(struct net *net) { } 156 - static inline void nfs4_reset_lease(time_t leasetime) { } 157 157 static inline int nfs4_reset_recoverydir(char *recdir) { return 0; } 158 158 static inline char * nfs4_recoverydir(void) {return NULL; } 159 159 static inline bool nfsd4_spo_must_allow(struct svc_rqst *rqstp)