netlabel: cleanup struct netlbl_lsm_catmap
authorGeorge Guo <guodongtai@kylinos.cn>
Sun, 4 Feb 2024 02:35:31 +0000 (10:35 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Feb 2024 12:38:30 +0000 (12:38 +0000)
commit23c5ae6d467520987dbc8682c3ae6ea0e80a5f27
tree1672c973aeebf45ef214a7e9c34c099ca7ba33a8
parent9bc791341bc9a5c22b94889aa37993bb69faa317
netlabel: cleanup struct netlbl_lsm_catmap

Simplify the code from macro NETLBL_CATMAP_MAPTYPE to u64, and fix
warning "Macros with complex values should be enclosed in parentheses"
on "#define NETLBL_CATMAP_BIT (NETLBL_CATMAP_MAPTYPE)0x01", which is
modified to "#define NETLBL_CATMAP_BIT ((u64)0x01)".

Signed-off-by: George Guo <guodongtai@kylinos.cn>
Acked-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netlabel.h
net/netlabel/netlabel_kapi.c