]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc764fe7e4bcedb81d5aacbade00dd3651935bbec
tree2b298d7a8c913f44973237ffa3d2bab261098843
parent3ba98c8619af2d2cafd3d47754c916f932701410
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