netdev
[Top] [All Lists]

[PATCH 2.6 4/5]: gact: mark some functions static

To: "David S. Miller" <davem@xxxxxxxxxx>
Subject: [PATCH 2.6 4/5]: gact: mark some functions static
From: Patrick McHardy <kaber@xxxxxxxxx>
Date: Thu, 04 Nov 2004 07:25:50 +0100
Cc: netdev@xxxxxxxxxxx, jamal <hadi@xxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.3) Gecko/20041008 Debian/1.7.3-5
Mark some functions static in gact.


# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2004/11/04 06:42:01+01:00 kaber@xxxxxxxxxxxx 
#   [PKT_SCHED]: gact: mark some functions static
#   
#   Signed-off-by: Patrick McHardy <kaber@xxxxxxxxx>
# 
# net/sched/gact.c
#   2004/11/04 06:41:55+01:00 kaber@xxxxxxxxxxxx +7 -7
#   [PKT_SCHED]: gact: mark some functions static
#   
#   Signed-off-by: Patrick McHardy <kaber@xxxxxxxxx>
# 
diff -Nru a/net/sched/gact.c b/net/sched/gact.c
--- a/net/sched/gact.c  2004-11-04 07:17:28 +01:00
+++ b/net/sched/gact.c  2004-11-04 07:17:28 +01:00
@@ -53,14 +53,14 @@
 
 #ifdef CONFIG_GACT_PROB
 typedef int (*g_rand)(struct tcf_gact *p);
-int
+static int
 gact_net_rand(struct tcf_gact *p) {
        if (net_random()%p->pval)
                return p->action;
        return p->paction;
 }
 
-int
+static int
 gact_determ(struct tcf_gact *p) {
        if (p->bstats.packets%p->pval)
                return p->action;
@@ -71,7 +71,7 @@
 g_rand gact_rand[MAX_RAND]= { NULL,gact_net_rand, gact_determ};
 
 #endif
-int
+static int
 tcf_gact_init(struct rtattr *rta, struct rtattr *est, struct tc_action *a,int 
ovr,int bind)
 {
        struct rtattr *tb[TCA_GACT_MAX];
@@ -129,7 +129,7 @@
        return ret;
 }
 
-int
+static int
 tcf_gact_cleanup(struct tc_action *a, int bind)
 {
        struct tcf_gact *p;
@@ -139,7 +139,7 @@
        return 0;
 }
 
-int
+static int
 tcf_gact(struct sk_buff **pskb, struct tc_action *a)
 {
        struct tcf_gact *p;
@@ -173,7 +173,7 @@
        return action;
 }
 
-int
+static int
 tcf_gact_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref)
 {
        unsigned char *b = skb->tail;
@@ -214,7 +214,7 @@
        return -1;
 }
 
-struct tc_action_ops act_gact_ops = {
+static struct tc_action_ops act_gact_ops = {
        .next           =       NULL,
        .kind           =       "gact",
        .type           =       TCA_ACT_GACT,
<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 2.6 4/5]: gact: mark some functions static, Patrick McHardy <=