From: Ethan Nelson-Moore Date: Wed, 10 Jun 2026 01:44:27 +0000 (-0700) Subject: smb: server: remove code guarded by nonexistent config option X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae7db37582ab441c33be148b1415116efab1025e;p=thirdparty%2Fkernel%2Flinux.git smb: server: remove code guarded by nonexistent config option A small piece of code in fs/smb/server/smb_common.c depends on CONFIG_SMB_INSECURE_SERVER, which has never been defined in the mainline kernel, but was present in old out-of-tree versions of ksmbd. Remove this dead code. Discovered while searching for CONFIG_* symbols referenced in code but not defined in any Kconfig file. Signed-off-by: Ethan Nelson-Moore Acked-by: Namjae Jeon Signed-off-by: Steve French --- diff --git a/fs/smb/server/smb_common.c b/fs/smb/server/smb_common.c index 741aabdfcef5e..82de4fdfe4462 100644 --- a/fs/smb/server/smb_common.c +++ b/fs/smb/server/smb_common.c @@ -102,9 +102,6 @@ static const struct { int version; const char *string; } version_strings[] = { -#ifdef CONFIG_SMB_INSECURE_SERVER - {SMB1_PROT, SMB1_VERSION_STRING}, -#endif {SMB2_PROT, SMB20_VERSION_STRING}, {SMB21_PROT, SMB21_VERSION_STRING}, {SMB30_PROT, SMB30_VERSION_STRING},