From: Nikolay Aleksandrov Date: Wed, 13 Apr 2022 10:51:53 +0000 (+0300) Subject: net: rtnetlink: use BIT for flag values X-Git-Tag: v5.15.196~65 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=40ffa6a8c190729c5f99c8353a35701d2dea2696;p=thirdparty%2Fkernel%2Fstable.git net: rtnetlink: use BIT for flag values [ Upstream commit 0569e31f1bc2f50613ba4c219f3ecc0d1174d841 ] Use BIT to define flag values. Signed-off-by: Nikolay Aleksandrov Signed-off-by: David S. Miller Stable-dep-of: bf29555f5bdc ("rtnetlink: Allow deleting FDB entries in user namespace") Signed-off-by: Sasha Levin --- diff --git a/include/net/rtnetlink.h b/include/net/rtnetlink.h index d2961e2ed30b..268eadbbaa30 100644 --- a/include/net/rtnetlink.h +++ b/include/net/rtnetlink.h @@ -10,7 +10,7 @@ typedef int (*rtnl_doit_func)(struct sk_buff *, struct nlmsghdr *, typedef int (*rtnl_dumpit_func)(struct sk_buff *, struct netlink_callback *); enum rtnl_link_flags { - RTNL_FLAG_DOIT_UNLOCKED = 1, + RTNL_FLAG_DOIT_UNLOCKED = BIT(0), }; enum rtnl_kinds {