Skip to content

Commit 13289ed

Browse files
Eric Biggerschucklever
authored andcommitted
nfsd: Don't force CRYPTO_LIB_SHA256 to be built-in
Now that nfsd is accessing SHA-256 via the library API instead of via crypto_shash, there is a direct symbol dependency on the SHA-256 code and there is no benefit to be gained from forcing it to be built-in. Therefore, select CRYPTO_LIB_SHA256 from NFSD (conditional on NFSD_V4) instead of from NFSD_V4, so that it can be 'm' if NFSD is 'm'. Signed-off-by: Eric Biggers <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent a082e4b commit 13289ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfsd/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ config NFSD
55
depends on FILE_LOCKING
66
depends on FSNOTIFY
77
select CRC32
8+
select CRYPTO_LIB_SHA256 if NFSD_V4
89
select LOCKD
910
select SUNRPC
1011
select EXPORTFS
@@ -77,7 +78,6 @@ config NFSD_V4
7778
select FS_POSIX_ACL
7879
select RPCSEC_GSS_KRB5
7980
select CRYPTO
80-
select CRYPTO_LIB_SHA256
8181
select CRYPTO_MD5
8282
select GRACE_PERIOD
8383
select NFS_V4_2_SSC_HELPER if NFS_V4_2

0 commit comments

Comments
 (0)