aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Aleksandrov <razor@blackwall.org>2022-04-13 13:51:53 +0300
committerDavid S. Miller <davem@davemloft.net>2022-04-13 12:46:25 +0100
commit0569e31f1bc2f50613ba4c219f3ecc0d1174d841 (patch)
tree380fdf65fd8aaa15296b8112453f53d55964f74f
parentnet: rtnetlink: add helper to extract msg type's kind (diff)
downloadlinux-dev-0569e31f1bc2f50613ba4c219f3ecc0d1174d841.tar.xz
linux-dev-0569e31f1bc2f50613ba4c219f3ecc0d1174d841.zip
net: rtnetlink: use BIT for flag values
Use BIT to define flag values. Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/net/rtnetlink.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/rtnetlink.h b/include/net/rtnetlink.h
index c51c5ff7f7e2..0bf622409aaa 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 {