From: Hauke Mehrtens Date: Wed, 23 Oct 2013 19:33:32 +0000 (+0200) Subject: backports: tcf_destroy_chain takes a normal pointer on <= 2.6.25 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=dc0d009a0db52787b4787ff54dcd6201c0b9acb0;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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); }