Skip to content

Commit 10297b9

Browse files
yoshfujiDavid S. Miller
authored andcommitted
[NET] SCHED: Fix whitespace errors.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 7612713 commit 10297b9

33 files changed

Lines changed: 207 additions & 207 deletions

‎net/sched/act_api.c‎

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ int tcf_hash_release(struct tcf_common *p, int bind,
6565
p->tcfc_bindcnt--;
6666

6767
p->tcfc_refcnt--;
68-
if (p->tcfc_bindcnt <= 0 && p->tcfc_refcnt <= 0) {
68+
if (p->tcfc_bindcnt <= 0 && p->tcfc_refcnt <= 0) {
6969
tcf_hash_destroy(p, hinfo);
7070
ret = 1;
7171
}
@@ -362,7 +362,7 @@ static struct tc_action_ops *tc_lookup_action_id(u32 type)
362362
#endif
363363

364364
int tcf_action_exec(struct sk_buff *skb, struct tc_action *act,
365-
struct tcf_result *res)
365+
struct tcf_result *res)
366366
{
367367
struct tc_action *a;
368368
int ret = -1;
@@ -473,7 +473,7 @@ tcf_action_dump(struct sk_buff *skb, struct tc_action *act, int bind, int ref)
473473
}
474474

475475
struct tc_action *tcf_action_init_1(struct rtattr *rta, struct rtattr *est,
476-
char *name, int ovr, int bind, int *err)
476+
char *name, int ovr, int bind, int *err)
477477
{
478478
struct tc_action *a;
479479
struct tc_action_ops *a_o;
@@ -553,7 +553,7 @@ struct tc_action *tcf_action_init_1(struct rtattr *rta, struct rtattr *est,
553553
}
554554

555555
struct tc_action *tcf_action_init(struct rtattr *rta, struct rtattr *est,
556-
char *name, int ovr, int bind, int *err)
556+
char *name, int ovr, int bind, int *err)
557557
{
558558
struct rtattr *tb[TCA_ACT_MAX_PRIO+1];
559559
struct tc_action *head = NULL, *act, *act_prev = NULL;
@@ -590,7 +590,7 @@ int tcf_action_copy_stats(struct sk_buff *skb, struct tc_action *a,
590590
int err = 0;
591591
struct gnet_dump d;
592592
struct tcf_act_hdr *h = a->priv;
593-
593+
594594
if (h == NULL)
595595
goto errout;
596596

@@ -632,7 +632,7 @@ int tcf_action_copy_stats(struct sk_buff *skb, struct tc_action *a,
632632

633633
static int
634634
tca_get_fill(struct sk_buff *skb, struct tc_action *a, u32 pid, u32 seq,
635-
u16 flags, int event, int bind, int ref)
635+
u16 flags, int event, int bind, int ref)
636636
{
637637
struct tcamsg *t;
638638
struct nlmsghdr *nlh;
@@ -645,15 +645,15 @@ tca_get_fill(struct sk_buff *skb, struct tc_action *a, u32 pid, u32 seq,
645645
t->tca_family = AF_UNSPEC;
646646
t->tca__pad1 = 0;
647647
t->tca__pad2 = 0;
648-
648+
649649
x = (struct rtattr*) skb->tail;
650650
RTA_PUT(skb, TCA_ACT_TAB, 0, NULL);
651651

652652
if (tcf_action_dump(skb, a, bind, ref) < 0)
653653
goto rtattr_failure;
654654

655655
x->rta_len = skb->tail - (u8*)x;
656-
656+
657657
nlh->nlmsg_len = skb->tail - b;
658658
return skb->len;
659659

@@ -852,7 +852,7 @@ tca_action_gd(struct rtattr *rta, struct nlmsghdr *n, u32 pid, int event)
852852
}
853853

854854
if (tca_get_fill(skb, head, pid, n->nlmsg_seq, 0, event,
855-
0, 1) <= 0) {
855+
0, 1) <= 0) {
856856
kfree_skb(skb);
857857
ret = -EINVAL;
858858
goto err;
@@ -861,7 +861,7 @@ tca_action_gd(struct rtattr *rta, struct nlmsghdr *n, u32 pid, int event)
861861
/* now do the delete */
862862
tcf_action_destroy(head, 0);
863863
ret = rtnetlink_send(skb, pid, RTNLGRP_TC,
864-
n->nlmsg_flags&NLM_F_ECHO);
864+
n->nlmsg_flags&NLM_F_ECHO);
865865
if (ret > 0)
866866
return 0;
867867
return ret;
@@ -872,7 +872,7 @@ tca_action_gd(struct rtattr *rta, struct nlmsghdr *n, u32 pid, int event)
872872
}
873873

874874
static int tcf_add_notify(struct tc_action *a, u32 pid, u32 seq, int event,
875-
u16 flags)
875+
u16 flags)
876876
{
877877
struct tcamsg *t;
878878
struct nlmsghdr *nlh;
@@ -900,10 +900,10 @@ static int tcf_add_notify(struct tc_action *a, u32 pid, u32 seq, int event,
900900
goto rtattr_failure;
901901

902902
x->rta_len = skb->tail - (u8*)x;
903-
903+
904904
nlh->nlmsg_len = skb->tail - b;
905905
NETLINK_CB(skb).dst_group = RTNLGRP_TC;
906-
906+
907907
err = rtnetlink_send(skb, pid, RTNLGRP_TC, flags&NLM_F_ECHO);
908908
if (err > 0)
909909
err = 0;
@@ -915,7 +915,7 @@ static int tcf_add_notify(struct tc_action *a, u32 pid, u32 seq, int event,
915915
return -1;
916916
}
917917

918-
918+
919919
static int
920920
tcf_action_add(struct rtattr *rta, struct nlmsghdr *n, u32 pid, int ovr)
921921
{
@@ -999,13 +999,13 @@ find_dump_kind(struct nlmsghdr *n)
999999
return NULL;
10001000

10011001
if (rtattr_parse(tb, TCA_ACT_MAX_PRIO, RTA_DATA(tb1),
1002-
NLMSG_ALIGN(RTA_PAYLOAD(tb1))) < 0)
1002+
NLMSG_ALIGN(RTA_PAYLOAD(tb1))) < 0)
10031003
return NULL;
10041004
if (tb[0] == NULL)
10051005
return NULL;
10061006

10071007
if (rtattr_parse(tb2, TCA_ACT_MAX, RTA_DATA(tb[0]),
1008-
RTA_PAYLOAD(tb[0])) < 0)
1008+
RTA_PAYLOAD(tb[0])) < 0)
10091009
return NULL;
10101010
kind = tb2[TCA_ACT_KIND-1];
10111011

@@ -1043,7 +1043,7 @@ tc_dump_action(struct sk_buff *skb, struct netlink_callback *cb)
10431043
}
10441044

10451045
nlh = NLMSG_PUT(skb, NETLINK_CB(cb->skb).pid, cb->nlh->nlmsg_seq,
1046-
cb->nlh->nlmsg_type, sizeof(*t));
1046+
cb->nlh->nlmsg_type, sizeof(*t));
10471047
t = NLMSG_DATA(nlh);
10481048
t->tca_family = AF_UNSPEC;
10491049
t->tca__pad1 = 0;

‎net/sched/act_gact.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static g_rand gact_rand[MAX_RAND]= { NULL, gact_net_rand, gact_determ };
6565
#endif /* CONFIG_GACT_PROB */
6666

6767
static int tcf_gact_init(struct rtattr *rta, struct rtattr *est,
68-
struct tc_action *a, int ovr, int bind)
68+
struct tc_action *a, int ovr, int bind)
6969
{
7070
struct rtattr *tb[TCA_GACT_MAX];
7171
struct tc_gact *parm;

‎net/sched/act_ipt.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static int ipt_init_target(struct ipt_entry_target *t, char *table, unsigned int
7070
}
7171
if (t->u.kernel.target->checkentry
7272
&& !t->u.kernel.target->checkentry(table, NULL,
73-
t->u.kernel.target, t->data,
73+
t->u.kernel.target, t->data,
7474
hook)) {
7575
module_put(t->u.kernel.target->me);
7676
ret = -EINVAL;
@@ -83,7 +83,7 @@ static void ipt_destroy_target(struct ipt_entry_target *t)
8383
{
8484
if (t->u.kernel.target->destroy)
8585
t->u.kernel.target->destroy(t->u.kernel.target, t->data);
86-
module_put(t->u.kernel.target->me);
86+
module_put(t->u.kernel.target->me);
8787
}
8888

8989
static int tcf_ipt_release(struct tcf_ipt *ipt, int bind)

‎net/sched/act_pedit.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ static int tcf_pedit(struct sk_buff *skb, struct tc_action *a,
153153
if (tkey->offmask) {
154154
if (skb->len > tkey->at) {
155155
char *j = pptr + tkey->at;
156-
offset += ((*j & tkey->offmask) >>
157-
tkey->shift);
156+
offset += ((*j & tkey->offmask) >>
157+
tkey->shift);
158158
} else {
159159
goto bad;
160160
}
@@ -176,7 +176,7 @@ static int tcf_pedit(struct sk_buff *skb, struct tc_action *a,
176176
*ptr = ((*ptr & tkey->mask) ^ tkey->val);
177177
munged++;
178178
}
179-
179+
180180
if (munged)
181181
skb->tc_verd = SET_TC_MUNGED(skb->tc_verd);
182182
goto done;
@@ -200,8 +200,8 @@ static int tcf_pedit_dump(struct sk_buff *skb, struct tc_action *a,
200200
struct tcf_pedit *p = a->priv;
201201
struct tc_pedit *opt;
202202
struct tcf_t t;
203-
int s;
204-
203+
int s;
204+
205205
s = sizeof(*opt) + p->tcfp_nkeys * sizeof(struct tc_pedit_key);
206206

207207
/* netlink spinlocks held above us - must use ATOMIC */

‎net/sched/act_police.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ struct tc_police_compat
6262

6363
#ifdef CONFIG_NET_CLS_ACT
6464
static int tcf_act_police_walker(struct sk_buff *skb, struct netlink_callback *cb,
65-
int type, struct tc_action *a)
65+
int type, struct tc_action *a)
6666
{
6767
struct tcf_common *p;
6868
int err = 0, index = -1, i = 0, s_i = 0, n_i = 0;
@@ -112,7 +112,7 @@ void tcf_police_destroy(struct tcf_police *p)
112112
{
113113
unsigned int h = tcf_hash(p->tcf_index, POL_TAB_MASK);
114114
struct tcf_common **p1p;
115-
115+
116116
for (p1p = &tcf_police_ht[h]; *p1p; p1p = &(*p1p)->tcfc_next) {
117117
if (*p1p == &p->common) {
118118
write_lock_bh(&police_lock);
@@ -135,7 +135,7 @@ void tcf_police_destroy(struct tcf_police *p)
135135

136136
#ifdef CONFIG_NET_CLS_ACT
137137
static int tcf_act_police_locate(struct rtattr *rta, struct rtattr *est,
138-
struct tc_action *a, int ovr, int bind)
138+
struct tc_action *a, int ovr, int bind)
139139
{
140140
unsigned h;
141141
int ret = 0, err;
@@ -269,7 +269,7 @@ static int tcf_act_police_cleanup(struct tc_action *a, int bind)
269269
}
270270

271271
static int tcf_act_police(struct sk_buff *skb, struct tc_action *a,
272-
struct tcf_result *res)
272+
struct tcf_result *res)
273273
{
274274
struct tcf_police *police = a->priv;
275275
psched_time_t now;
@@ -606,12 +606,12 @@ int tcf_police_dump(struct sk_buff *skb, struct tcf_police *police)
606606
int tcf_police_dump_stats(struct sk_buff *skb, struct tcf_police *police)
607607
{
608608
struct gnet_dump d;
609-
609+
610610
if (gnet_stats_start_copy_compat(skb, TCA_STATS2, TCA_STATS,
611611
TCA_XSTATS, police->tcf_stats_lock,
612612
&d) < 0)
613613
goto errout;
614-
614+
615615
if (gnet_stats_copy_basic(&d, &police->tcf_bstats) < 0 ||
616616
#ifdef CONFIG_NET_ESTIMATOR
617617
gnet_stats_copy_rate_est(&d, &police->tcf_rate_est) < 0 ||

‎net/sched/act_simple.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ static int tcf_simp(struct sk_buff *skb, struct tc_action *a, struct tcf_result
4343
d->tcf_bstats.bytes += skb->len;
4444
d->tcf_bstats.packets++;
4545

46-
/* print policy string followed by _ then packet count
47-
* Example if this was the 3rd packet and the string was "hello"
48-
* then it would look like "hello_3" (without quotes)
46+
/* print policy string followed by _ then packet count
47+
* Example if this was the 3rd packet and the string was "hello"
48+
* then it would look like "hello_3" (without quotes)
4949
**/
5050
printk("simple: %s_%d\n",
5151
(char *)d->tcfd_defdata, d->tcf_bstats.packets);

‎net/sched/cls_api.c‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ static int tc_ctl_tfilter(struct sk_buff *skb, struct nlmsghdr *n, void *arg)
286286
goto errout;
287287
} else {
288288
switch (n->nlmsg_type) {
289-
case RTM_NEWTFILTER:
289+
case RTM_NEWTFILTER:
290290
err = -EEXIST;
291291
if (n->nlmsg_flags&NLM_F_EXCL)
292292
goto errout;
@@ -481,11 +481,11 @@ tcf_exts_destroy(struct tcf_proto *tp, struct tcf_exts *exts)
481481

482482
int
483483
tcf_exts_validate(struct tcf_proto *tp, struct rtattr **tb,
484-
struct rtattr *rate_tlv, struct tcf_exts *exts,
485-
struct tcf_ext_map *map)
484+
struct rtattr *rate_tlv, struct tcf_exts *exts,
485+
struct tcf_ext_map *map)
486486
{
487487
memset(exts, 0, sizeof(*exts));
488-
488+
489489
#ifdef CONFIG_NET_CLS_ACT
490490
{
491491
int err;
@@ -511,7 +511,7 @@ tcf_exts_validate(struct tcf_proto *tp, struct rtattr **tb,
511511
#elif defined CONFIG_NET_CLS_POLICE
512512
if (map->police && tb[map->police-1]) {
513513
struct tcf_police *p;
514-
514+
515515
p = tcf_police_locate(tb[map->police-1], rate_tlv);
516516
if (p == NULL)
517517
return -EINVAL;
@@ -530,7 +530,7 @@ tcf_exts_validate(struct tcf_proto *tp, struct rtattr **tb,
530530

531531
void
532532
tcf_exts_change(struct tcf_proto *tp, struct tcf_exts *dst,
533-
struct tcf_exts *src)
533+
struct tcf_exts *src)
534534
{
535535
#ifdef CONFIG_NET_CLS_ACT
536536
if (src->action) {
@@ -597,7 +597,7 @@ rtattr_failure: __attribute__ ((unused))
597597

598598
int
599599
tcf_exts_dump_stats(struct sk_buff *skb, struct tcf_exts *exts,
600-
struct tcf_ext_map *map)
600+
struct tcf_ext_map *map)
601601
{
602602
#ifdef CONFIG_NET_CLS_ACT
603603
if (exts->action)

‎net/sched/cls_basic.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static void basic_destroy(struct tcf_proto *tp)
9898
{
9999
struct basic_head *head = (struct basic_head *) xchg(&tp->root, NULL);
100100
struct basic_filter *f, *n;
101-
101+
102102
list_for_each_entry_safe(f, n, &head->flist, link) {
103103
list_del(&f->link);
104104
basic_delete_filter(tp, f);
@@ -157,7 +157,7 @@ static inline int basic_set_parms(struct tcf_proto *tp, struct basic_filter *f,
157157
}
158158

159159
static int basic_change(struct tcf_proto *tp, unsigned long base, u32 handle,
160-
struct rtattr **tca, unsigned long *arg)
160+
struct rtattr **tca, unsigned long *arg)
161161
{
162162
int err = -EINVAL;
163163
struct basic_head *head = (struct basic_head *) tp->root;
@@ -292,7 +292,7 @@ static int __init init_basic(void)
292292
return register_tcf_proto_ops(&cls_basic_ops);
293293
}
294294

295-
static void __exit exit_basic(void)
295+
static void __exit exit_basic(void)
296296
{
297297
unregister_tcf_proto_ops(&cls_basic_ops);
298298
}

‎net/sched/cls_fw.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static __inline__ int fw_hash(u32 handle)
9191
else if (HTSIZE == 256) {
9292
u8 *t = (u8 *) &handle;
9393
return t[0] ^ t[1] ^ t[2] ^ t[3];
94-
} else
94+
} else
9595
return handle & (HTSIZE - 1);
9696
}
9797

@@ -407,7 +407,7 @@ static int __init init_fw(void)
407407
return register_tcf_proto_ops(&cls_fw_ops);
408408
}
409409

410-
static void __exit exit_fw(void)
410+
static void __exit exit_fw(void)
411411
{
412412
unregister_tcf_proto_ops(&cls_fw_ops);
413413
}

‎net/sched/cls_rsvp.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ static struct tcf_ext_map rsvp_ext_map = {
130130
else if (r > 0) \
131131
return r; \
132132
}
133-
133+
134134
static int rsvp_classify(struct sk_buff *skb, struct tcf_proto *tp,
135135
struct tcf_result *res)
136136
{
@@ -347,7 +347,7 @@ static int tunnel_bts(struct rsvp_head *data)
347347
{
348348
int n = data->tgenerator>>5;
349349
u32 b = 1<<(data->tgenerator&0x1F);
350-
350+
351351
if (data->tmap[n]&b)
352352
return 0;
353353
data->tmap[n] |= b;
@@ -547,7 +547,7 @@ static int rsvp_change(struct tcf_proto *tp, unsigned long base,
547547
s->next = *sp;
548548
wmb();
549549
*sp = s;
550-
550+
551551
goto insert;
552552

553553
errout:
@@ -654,7 +654,7 @@ static int __init init_rsvp(void)
654654
return register_tcf_proto_ops(&RSVP_OPS);
655655
}
656656

657-
static void __exit exit_rsvp(void)
657+
static void __exit exit_rsvp(void)
658658
{
659659
unregister_tcf_proto_ops(&RSVP_OPS);
660660
}

0 commit comments

Comments
 (0)