OSDN Git Service

cifs: do not build smb1ops if legacy support is disabled
authorSteve French <stfrench@microsoft.com>
Thu, 2 Jun 2022 02:25:43 +0000 (21:25 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 2 Jun 2022 02:49:27 +0000 (21:49 -0500)
commit387ba9bf4cb80277fb01a7b753da611ab1260a1a
tree2b298d7a8c913f44973237ffa3d2bab261098843
parentcc391b694ff085f62f133e6b8f864d43a8e69dfd
cifs: do not build smb1ops if legacy support is disabled

We should not be including unused SMB1/CIFS functions when legacy
support is disabled (CONFIG_CIFS_ALLOW_INSECURE_LEGACY turned
off), but especially obvious is not needing to build smb1ops.c
at all when legacy support is disabled. Over time we can move
more SMB1/CIFS and SMB2.0 legacy functions into ifdefs but this
is a good start (and shrinks the module size a few percent).

Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/Makefile