[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251222223006.1075635-38-dhowells@redhat.com>
Date: Mon, 22 Dec 2025 22:30:02 +0000
From: David Howells <dhowells@...hat.com>
To: Steve French <sfrench@...ba.org>
Cc: David Howells <dhowells@...hat.com>,
Paulo Alcantara <pc@...guebit.org>,
Enzo Matsumiya <ematsumiya@...e.de>,
linux-cifs@...r.kernel.org,
linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 37/37] cifs: SMB1 split: Make BCC accessors conditional
Make the BCC accessor functions conditional.
Signed-off-by: David Howells <dhowells@...hat.com>
cc: Steve French <sfrench@...ba.org>
cc: Paulo Alcantara <pc@...guebit.org>
cc: Enzo Matsumiya <ematsumiya@...e.de>
cc: linux-cifs@...r.kernel.org
cc: linux-fsdevel@...r.kernel.org
cc: linux-kernel@...r.kernel.org
---
fs/smb/client/smb1proto.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/smb/client/smb1proto.h b/fs/smb/client/smb1proto.h
index 5ccca02841a8..0c622b5d2555 100644
--- a/fs/smb/client/smb1proto.h
+++ b/fs/smb/client/smb1proto.h
@@ -300,8 +300,6 @@ compare_mid(__u16 mid, const struct smb_hdr *smb)
return mid == le16_to_cpu(smb->Mid);
}
-#endif /* CONFIG_CIFS_ALLOW_INSECURE_LEGACY */
-
#define GETU16(var) (*((__u16 *)var)) /* BB check for endian issues */
#define GETU32(var) (*((__u32 *)var)) /* BB check for endian issues */
@@ -333,4 +331,6 @@ put_bcc(__u16 count, struct smb_hdr *hdr)
put_unaligned_le16(count, bc_ptr);
}
+#endif /* CONFIG_CIFS_ALLOW_INSECURE_LEGACY */
+
#endif /* _SMB1PROTO_H */
Powered by blists - more mailing lists