[PATCH] smb: common: add header guards to fs/smb/common/smb2status.h
Stefan Metzmacher
metze at samba.org
Tue Feb 3 15:34:40 UTC 2026
Hi Steve,
this is on top of your for-next branch as it depends on this
patch from David:
cifs: Label SMB2 statuses with errors
While there I found that this patch:
cifs: Autogenerate SMB2 error mapping table
Generates this error:
client/smb2maperror.c:55:60: SPARSE: error: restricted __le32 degrades to integer
David can you check?
Thanks!
metze
Am 03.02.26 um 16:20 schrieb Stefan Metzmacher:
> 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 at gmail.com>
> Cc: Tom Talpey <tom at talpey.com>
> Cc: Long Li <longli at microsoft.com>
> Cc: Namjae Jeon <linkinjeon at kernel.org>
> Cc: linux-cifs at vger.kernel.org
> Cc: samba-technical at lists.samba.org
> Signed-off-by: Stefan Metzmacher <metze at samba.org>
> ---
> fs/smb/common/smb2status.h | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/fs/smb/common/smb2status.h b/fs/smb/common/smb2status.h
> index 3b86dbf8c369..b6421bc5113c 100644
> --- a/fs/smb/common/smb2status.h
> +++ b/fs/smb/common/smb2status.h
> @@ -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 */
More information about the samba-technical
mailing list