Skip to content

Commit c9ce93e

Browse files
dhowellssmfrench
authored andcommitted
cifs: SMB1 split: Make BCC accessors conditional
Make the BCC accessor functions conditional. Signed-off-by: David Howells <dhowells@redhat.com> cc: Steve French <sfrench@samba.org> cc: Paulo Alcantara <pc@manguebit.org> cc: Enzo Matsumiya <ematsumiya@suse.de> cc: linux-cifs@vger.kernel.org cc: linux-fsdevel@vger.kernel.org cc: linux-kernel@vger.kernel.org Acked-by: Enzo Matsumiya <ematsumiya@suse.de> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 88f7d7e commit c9ce93e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fs/smb/client/smb1proto.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,6 @@ compare_mid(__u16 mid, const struct smb_hdr *smb)
299299
return mid == le16_to_cpu(smb->Mid);
300300
}
301301

302-
#endif /* CONFIG_CIFS_ALLOW_INSECURE_LEGACY */
303-
304302
#define GETU16(var) (*((__u16 *)var)) /* BB check for endian issues */
305303
#define GETU32(var) (*((__u32 *)var)) /* BB check for endian issues */
306304

@@ -332,4 +330,6 @@ put_bcc(__u16 count, struct smb_hdr *hdr)
332330
put_unaligned_le16(count, bc_ptr);
333331
}
334332

333+
#endif /* CONFIG_CIFS_ALLOW_INSECURE_LEGACY */
334+
335335
#endif /* _SMB1PROTO_H */

0 commit comments

Comments
 (0)