Skip to content

Commit 673040c

Browse files
esyr-rhdavem330
authored andcommitted
taprio: do not use BIT() in TCA_TAPRIO_ATTR_FLAG_* definitions
BIT() macro definition is internal to the Linux kernel and is not to be used in UAPI headers; replace its usage with the _BITUL() macro that is already used elsewhere in the header. Fixes: 9c66d15 ("taprio: Add support for hardware offloading") Signed-off-by: Eugene Syromiatnikov <[email protected]> Acked-by: Vladimir Oltean <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c24a77e commit 673040c

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
@@ -1216,8 +1216,8 @@ enum {
12161216
* [TCA_TAPRIO_ATTR_SCHED_ENTRY_INTERVAL]
12171217
*/
12181218

1219-
#define TCA_TAPRIO_ATTR_FLAG_TXTIME_ASSIST BIT(0)
1220-
#define TCA_TAPRIO_ATTR_FLAG_FULL_OFFLOAD BIT(1)
1219+
#define TCA_TAPRIO_ATTR_FLAG_TXTIME_ASSIST _BITUL(0)
1220+
#define TCA_TAPRIO_ATTR_FLAG_FULL_OFFLOAD _BITUL(1)
12211221

12221222
enum {
12231223
TCA_TAPRIO_ATTR_UNSPEC,

0 commit comments

Comments
 (0)