]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb/client: move smb2maperror declarations to smb2proto.h
authorZhangGuoDong <zhangguodong@kylinos.cn>
Fri, 3 Apr 2026 15:38:52 +0000 (15:38 +0000)
committerSteve French <stfrench@microsoft.com>
Mon, 6 Apr 2026 00:58:40 +0000 (19:58 -0500)
commit59ea368431ddf0569ac9201162bfea969fe3a03c
tree3767249e96b0c0cf2d3a8af17130edebd0a6c2dd
parent85274a3bd40f46a17f520c9d84a5b72d4704d2c3
smb/client: move smb2maperror declarations to smb2proto.h

For `smb2_error_map_table_test` and `smb2_error_map_num`, if their types
are changed in `smb2maperror.c` but the corresponding extern declarations
in `smb2maperror_test.c` are not updated, the compiler will not report an
error. Moving them to a common header file allows the compiler to catch
type mismatches.

Signed-off-by: ZhangGuoDong <zhangguodong@kylinos.cn>
Reviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb2maperror.c
fs/smb/client/smb2maperror_test.c
fs/smb/client/smb2proto.h