]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
smb: common: add header guards to fs/smb/common/smb2status.h
authorStefan Metzmacher <metze@samba.org>
Tue, 3 Feb 2026 15:20:12 +0000 (16:20 +0100)
committerSteve French <stfrench@microsoft.com>
Mon, 9 Feb 2026 03:24:42 +0000 (21:24 -0600)
This will allow it to be included multiple times without problems,
that's needed for the smbdirect move to common code.

Cc: Steve French <smfrench@gmail.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: Long Li <longli@microsoft.com>
Cc: Namjae Jeon <linkinjeon@kernel.org>
Cc: linux-cifs@vger.kernel.org
Cc: samba-technical@lists.samba.org
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/common/smb2status.h

index 3b86dbf8c369825abdd5388cb40c797fbb17f4b7..b6421bc5113c7a7898eec8170bf1322a554d8673 100644 (file)
@@ -9,6 +9,9 @@
  *
  */
 
+#ifndef FS_SMB_COMMON_SMB2STATUS_H
+#define FS_SMB_COMMON_SMB2STATUS_H
+
 /*
  *  0 1 2 3 4 5 6 7 8 9 0 A B C D E F 0 1 2 3 4 5 6 7 8 9 A B C D E F
  *  SEV C N <-------Facility--------> <------Error Status Code------>
@@ -1782,3 +1785,5 @@ struct ntstatus {
 #define STATUS_IPSEC_CLEAR_TEXT_DROP           cpu_to_le32(0xC0360007) // -EIO
 /* See MS-SMB2 3.3.5.4 */
 #define STATUS_SMB_NO_PREAUTH_INTEGRITY_HASH_OVERLAP cpu_to_le32(0xC05D0000) // -EIO
+
+#endif /* FS_SMB_COMMON_SMB2STATUS_H */