Skip to contentSkip to conversation

pkt_sched: Include const.h

PATCH Applied David Ahern 2 participants 2 messages Jul 9, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pkt_sched: Include const.h

From: David Ahern <[email protected]>

Commit 9903c8dc7342 changed TC_ETF defines to use _BITUL instead of BIT but did not add the dependecy on linux/const.h. As a consequence, importing the uapi headers into iproute2 causes builds to fail. Add the dependency.

Fixes 9903c8dc7342 ("etf: Don't use BIT() in UAPI headers.")
Cc Vedang Patel <[email protected]>

---
This is meant for net-next as in 5.3 merge window.

 include/uapi/linux/pkt_sched.h | 1 +
 1 file changed, 1 insertion(+)
include/uapi/linux/pkt_sched.h +1 -0
index 390efb54b2e0..1f623252abe8 100644
@@ -2,6 +2,7 @@
 #ifndef __LINUX_PKT_SCHED_H
 #define __LINUX_PKT_SCHED_H
 
+#include <linux/const.h>
 #include <linux/types.h>
 
 /* Logical priority bands not depending on specific packet scheduler.
Signature · 1 line
2.11.0
maintainer Applied
#1 lore raw

From: David Ahern <[email protected]>
Date: Tue, 9 Jul 2019 14:45:17 -0700

Quoted 10 lines

From: David Ahern <[email protected]>

Commit 9903c8dc7342 changed TC_ETF defines to use _BITUL instead of BIT but did not add the dependecy on linux/const.h. As a consequence, importing the uapi headers into iproute2 causes builds to fail. Add the dependency.

Fixes 9903c8dc7342 ("etf: Don't use BIT() in UAPI headers.")
Cc Vedang Patel <[email protected]>

Applied.