taprio: do not use BIT() in TCA_TAPRIO_ATTR_FLAG_* definitions
authorEugene Syromiatnikov <esyr@redhat.com>
Tue, 24 Mar 2020 04:19:20 +0000 (05:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Mar 2020 03:08:45 +0000 (20:08 -0700)
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: 9c66d1564676 ("taprio: Add support for hardware offloading")
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
Acked-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/pkt_sched.h

index 7307a29..0c02737 100644 (file)
@@ -1216,8 +1216,8 @@ enum {
  *       [TCA_TAPRIO_ATTR_SCHED_ENTRY_INTERVAL]
  */
 
-#define TCA_TAPRIO_ATTR_FLAG_TXTIME_ASSIST     BIT(0)
-#define TCA_TAPRIO_ATTR_FLAG_FULL_OFFLOAD      BIT(1)
+#define TCA_TAPRIO_ATTR_FLAG_TXTIME_ASSIST     _BITUL(0)
+#define TCA_TAPRIO_ATTR_FLAG_FULL_OFFLOAD      _BITUL(1)
 
 enum {
        TCA_TAPRIO_ATTR_UNSPEC,