smb/client: add parentheses to NT error code definitions containing bitwise OR operator
authorChenXiaoSong <chenxiaosong@kylinos.cn>
Mon, 8 Dec 2025 02:59:25 +0000 (10:59 +0800)
committerSteve French <stfrench@microsoft.com>
Wed, 10 Dec 2025 03:22:34 +0000 (21:22 -0600)
commita71a4aab4834b366fa6e2b2f3c015f24e4366da4
tree9b796b502b3cd4d7e6b14046bcd8d482b37d7b5e
parentbcdd6cfaf2ec17016f9765b01a02b66f13087aa1
smb/client: add parentheses to NT error code definitions containing bitwise OR operator

Use the following shell commands:

  # Add "("
  sed -i '/|/s/ 0x/ (0x/' fs/smb/client/nterr.h
  # Add ")" if line does not end with a comment
  sed -i '/|/ { /.*\*\/$/! s/$/)/ }' fs/smb/client/nterr.h
  # Add ")" if line end with a comment
  sed -i '/|/ s/[[:space:]]*\/\*/)&/' fs/smb/client/nterr.h

Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Acked-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/nterr.h