projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e9ea3e
)
net: rtnetlink: use BIT for flag values
author
Nikolay Aleksandrov
<razor@blackwall.org>
Wed, 13 Apr 2022 10:51:53 +0000
(13:51 +0300)
committer
David S. Miller
<davem@davemloft.net>
Wed, 13 Apr 2022 11:46:25 +0000
(12:46 +0100)
Use BIT to define flag values.
Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/rtnetlink.h
patch
|
blob
|
history
diff --git
a/include/net/rtnetlink.h
b/include/net/rtnetlink.h
index c51c5ff7f7e2a7d7b84fccc0d7b0ea905a03d6a2..0bf622409aaac124ed444c9061afc9d2004acc84 100644
(file)
--- 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 {