Commit 0a5e5f122c756d1c1a6ca712eda76ea8664e5fd9
1 parent
352b5d13c0
Exists in
master
and in
4 other branches
nfsd: fix compile error
"fs/built-in.o: In function `supported_enctypes_show': nfsctl.c:(.text+0x7beb0): undefined reference to `gss_mech_get_by_name' nfsctl.c:(.text+0x7bebc): undefined reference to `gss_mech_put' " Reported-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff
fs/nfsd/nfsctl.c
... | ... | @@ -189,6 +189,7 @@ |
189 | 189 | .release = single_release, |
190 | 190 | }; |
191 | 191 | |
192 | +#ifdef CONFIG_SUNRPC_GSS | |
192 | 193 | static int supported_enctypes_show(struct seq_file *m, void *v) |
193 | 194 | { |
194 | 195 | struct gss_api_mech *k5mech; |
... | ... | @@ -214,6 +215,7 @@ |
214 | 215 | .llseek = seq_lseek, |
215 | 216 | .release = single_release, |
216 | 217 | }; |
218 | +#endif /* CONFIG_SUNRPC_GSS */ | |
217 | 219 | |
218 | 220 | extern int nfsd_pool_stats_open(struct inode *inode, struct file *file); |
219 | 221 | extern int nfsd_pool_stats_release(struct inode *inode, struct file *file); |
220 | 222 | |
... | ... | @@ -1425,7 +1427,9 @@ |
1425 | 1427 | [NFSD_Versions] = {"versions", &transaction_ops, S_IWUSR|S_IRUSR}, |
1426 | 1428 | [NFSD_Ports] = {"portlist", &transaction_ops, S_IWUSR|S_IRUGO}, |
1427 | 1429 | [NFSD_MaxBlkSize] = {"max_block_size", &transaction_ops, S_IWUSR|S_IRUGO}, |
1430 | +#ifdef CONFIG_SUNRPC_GSS | |
1428 | 1431 | [NFSD_SupportedEnctypes] = {"supported_krb5_enctypes", &supported_enctypes_ops, S_IRUGO}, |
1432 | +#endif /* CONFIG_SUNRPC_GSS */ | |
1429 | 1433 | #ifdef CONFIG_NFSD_V4 |
1430 | 1434 | [NFSD_Leasetime] = {"nfsv4leasetime", &transaction_ops, S_IWUSR|S_IRUSR}, |
1431 | 1435 | [NFSD_Gracetime] = {"nfsv4gracetime", &transaction_ops, S_IWUSR|S_IRUSR}, |