From dc0d009a0db52787b4787ff54dcd6201c0b9acb0 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Wed, 23 Oct 2013 21:33:32 +0200 Subject: [PATCH] backports: tcf_destroy_chain takes a normal pointer on <= 2.6.25 This caused a compile warning and probably runtime errors in sch_fq_codel_core.c Signed-off-by: Hauke Mehrtens --- backport/compat/sch_fq_codel_core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backport/compat/sch_fq_codel_core.c b/backport/compat/sch_fq_codel_core.c index 6b87c713196e..f7139791d484 100644 --- a/backport/compat/sch_fq_codel_core.c +++ b/backport/compat/sch_fq_codel_core.c @@ -393,7 +393,11 @@ static void fq_codel_destroy(struct Qdisc *sch) { struct fq_codel_sched_data *q = qdisc_priv(sch); +#if (LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,25)) + tcf_destroy_chain(q->filter_list); +#else tcf_destroy_chain(&q->filter_list); +#endif fq_codel_free(q->backlogs); fq_codel_free(q->flows); } -- 2.30.2