]> git.hungrycats.org Git - linux/commitdiff
[PKT_SCHED]: Fix gact compile warnings.
authorJamal Hadi Salim <hadi@znyx.com>
Tue, 7 Sep 2004 06:40:52 +0000 (23:40 -0700)
committerPatrick McHardy <kaber@trash.net>
Tue, 7 Sep 2004 06:40:52 +0000 (23:40 -0700)
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/gact.c

index cd1a58c60485f4aea2b43cda2b75a5316658e418..5607f5e8cd8313addcc2509ef43ced5dd2d32982 100644 (file)
@@ -76,7 +76,9 @@ tcf_gact_init(struct rtattr *rta, struct rtattr *est, struct tc_action *a,int ov
 {
        struct rtattr *tb[TCA_GACT_MAX];
        struct tc_gact *parm = NULL;
+#ifdef CONFIG_GACT_PROB
        struct tc_gact_p *p_parm = NULL;
+#endif
        struct tcf_gact *p = NULL;
        int ret = 0;
        int size = sizeof (*p);
@@ -176,7 +178,9 @@ tcf_gact_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref)
 {
        unsigned char *b = skb->tail;
        struct tc_gact opt;
+#ifdef CONFIG_GACT_PROB
        struct tc_gact_p p_opt;
+#endif
        struct tcf_gact *p;
        struct tcf_t t;