Skip to content

Commit 9903c8d

Browse files
vedangpatel1davem330
authored andcommitted
etf: Don't use BIT() in UAPI headers.
The BIT() macro isn't exported as part of the UAPI interface. So, the compile-test to ensure they are self contained fails. So, use _BITUL() instead. Signed-off-by: Vedang Patel <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 1e08511 commit 9903c8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/uapi/linux/pkt_sched.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -988,8 +988,8 @@ struct tc_etf_qopt {
988988
__s32 delta;
989989
__s32 clockid;
990990
__u32 flags;
991-
#define TC_ETF_DEADLINE_MODE_ON BIT(0)
992-
#define TC_ETF_OFFLOAD_ON BIT(1)
991+
#define TC_ETF_DEADLINE_MODE_ON _BITUL(0)
992+
#define TC_ETF_OFFLOAD_ON _BITUL(1)
993993
};
994994

995995
enum {

0 commit comments

Comments
 (0)