From 2c1c741fc7730e9a0d9cd1c960f38ac3c7caec25 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Fri, 31 Oct 2025 07:58:44 +0000 Subject: [PATCH] Revert "net: rtnetlink: use BIT for flag values" This reverts commit b3eed4bf84fa8bb9a29a397a0be1636692651725 which is commit 0569e31f1bc2f50613ba4c219f3ecc0d1174d841 upstream. It breaks the Android kernel abi and can be brought back in the future in an abi-safe way if it is really needed. Bug: 161946584 Change-Id: Idf0c4ae34007eabf54c7269dfb5bd6ec5aca6b9f Signed-off-by: Greg Kroah-Hartman --- include/net/rtnetlink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/rtnetlink.h b/include/net/rtnetlink.h index fb4ccfdebae0..034062f26943 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 = BIT(0), + RTNL_FLAG_DOIT_UNLOCKED = 1, }; enum rtnl_kinds {