smb/server: remove unused nterr.h
authorChenXiaoSong <chenxiaosong@kylinos.cn>
Sat, 6 Dec 2025 02:44:58 +0000 (10:44 +0800)
committerSteve French <stfrench@microsoft.com>
Wed, 10 Dec 2025 03:01:16 +0000 (21:01 -0600)
commit98def4eb0244fbc840eb4aff16573c3924462ccd
tree6b503ed1b32bc6bf37c18faf6d3eee5357330eef
parent01ab0d1640e379f0a0d6602250b33ff2b45e9560
smb/server: remove unused nterr.h

KSMBD does not use these NT error code definitions. Instead, it uses the
SMB2 status code definitions defined in common/smb2status.h.

By the way, server/nterr.h contains the following additional definitions
compared to client/nterr.h:

  - NT_STATUS_PENDING
  - NT_STATUS_INVALID_LOCK_RANGE
  - NT_STATUS_NETWORK_SESSION_EXPIRED
  - NT_STATUS_NO_PREAUTH_INTEGRITY_HASH_OVERLAP

We can add them to client/nterr.h in the next patch.

Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/nterr.h [deleted file]
fs/smb/server/smb2misc.c
fs/smb/server/smb_common.h