Skip to contentSkip to conversation

compat: fix build on kernels that already have backported codel support

PATCH New Felix Fietkau 1 participant 1 message May 30, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 compat: fix build on kernels that already have backported codel support

---
 include/linux/compat-3.5.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
include/linux/compat-3.5.h +3 -0
index c9ba6af..35fd14b 100644
@@ -10,6 +10,8 @@
 
 #include <linux/pkt_sched.h>
 
+#ifndef TCA_CODEL_MAX
+
 /*
  * This backports:
  *
@@ -107,6 +109,7 @@ struct tc_fq_codel_xstats {
 	};
 };
 
+#endif /* TCA_CODEL_MAX */
 
 /* Backports tty_lock: Localise the lock */
 #define tty_lock(__tty) tty_lock()
Signature · 1 line
1.7.3.2