* Andrew Morton <20050115144010.33182075.akpm@xxxxxxxx> 2005-01-15 14:40
> net/sched/cls_api.c: In function `tcf_exts_validate':
> net/sched/cls_api.c:489: parse error before `int'
> net/sched/cls_api.c:493: `act' undeclared (first use in this function)
> net/sched/cls_api.c:493: (Each undeclared identifier is reported only once
> net/sched/cls_api.c:493: for each function it appears in.)
> net/sched/cls_api.c:494: `err' undeclared (first use in this function)
Signed-off-by: Thomas Graf <tgraf@xxxxxxx>
--- linux-2.6.11-rc1-bk2.orig/net/sched/cls_api.c 2005-01-16
00:04:40.000000000 +0100
+++ linux-2.6.11-rc1-bk2/net/sched/cls_api.c 2005-01-15 23:56:48.000000000
+0100
@@ -486,10 +486,9 @@
memset(exts, 0, sizeof(*exts));
#ifdef CONFIG_NET_CLS_ACT
- int err;
- struct tc_action *act;
-
if (map->police && tb[map->police-1]) {
+ int err;
+ struct tc_action *act;
act = tcf_action_init_1(tb[map->police-1], rate_tlv, "police",
TCA_ACT_NOREPLACE, TCA_ACT_BIND, &err);
if (act == NULL)
@@ -498,6 +497,8 @@
act->type = TCA_OLD_COMPAT;
exts->action = act;
} else if (map->action && tb[map->action-1]) {
+ int err;
+ struct tc_action *act;
act = tcf_action_init(tb[map->action-1], rate_tlv, NULL,
TCA_ACT_NOREPLACE, TCA_ACT_BIND, &err);
if (act == NULL)
|