]> 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)
commit4838a4ec926f592f14b62218f6dc45b80e49c779
tree2b298d7a8c913f44973237ffa3d2bab261098843
parent2dfdf2a8b5ea6999c93a0e01dd508b0cd8bbbbda
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