diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-02-13 01:43:25 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-02-13 01:43:25 -0500 |
commit | d9bc125caf592b7d081021f32ce5b717efdf70c8 (patch) | |
tree | 263b7066ba22ddce21db610c0300f6eaac6f2064 /net/ipv6/proc.c | |
parent | 43d78ef2ba5bec26d0315859e8324bfc0be23766 (diff) | |
parent | ec2f9d1331f658433411c58077871e1eef4ee1b4 (diff) |
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/
Conflicts:
net/sunrpc/auth_gss/gss_krb5_crypto.c
net/sunrpc/auth_gss/gss_spkm3_token.c
net/sunrpc/clnt.c
Merge with mainline and fix conflicts.
Diffstat (limited to 'net/ipv6/proc.c')
-rw-r--r-- | net/ipv6/proc.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/net/ipv6/proc.c b/net/ipv6/proc.c index 35249d8487bb..c82257dd04b6 100644 --- a/net/ipv6/proc.c +++ b/net/ipv6/proc.c | |||
@@ -50,7 +50,7 @@ static int sockstat6_seq_show(struct seq_file *seq, void *v) | |||
50 | seq_printf(seq, "UDP6: inuse %d\n", | 50 | seq_printf(seq, "UDP6: inuse %d\n", |
51 | fold_prot_inuse(&udpv6_prot)); | 51 | fold_prot_inuse(&udpv6_prot)); |
52 | seq_printf(seq, "UDPLITE6: inuse %d\n", | 52 | seq_printf(seq, "UDPLITE6: inuse %d\n", |
53 | fold_prot_inuse(&udplitev6_prot)); | 53 | fold_prot_inuse(&udplitev6_prot)); |
54 | seq_printf(seq, "RAW6: inuse %d\n", | 54 | seq_printf(seq, "RAW6: inuse %d\n", |
55 | fold_prot_inuse(&rawv6_prot)); | 55 | fold_prot_inuse(&rawv6_prot)); |
56 | seq_printf(seq, "FRAG6: inuse %d memory %d\n", | 56 | seq_printf(seq, "FRAG6: inuse %d memory %d\n", |
@@ -89,7 +89,7 @@ static struct snmp_mib snmp6_icmp6_list[] = { | |||
89 | /* icmpv6 mib according to RFC 2466 | 89 | /* icmpv6 mib according to RFC 2466 |
90 | 90 | ||
91 | Exceptions: {In|Out}AdminProhibs are removed, because I see | 91 | Exceptions: {In|Out}AdminProhibs are removed, because I see |
92 | no good reasons to account them separately | 92 | no good reasons to account them separately |
93 | of another dest.unreachs. | 93 | of another dest.unreachs. |
94 | OutErrs is zero identically. | 94 | OutErrs is zero identically. |
95 | OutEchos too. | 95 | OutEchos too. |
@@ -146,14 +146,14 @@ static struct snmp_mib snmp6_udplite6_list[] = { | |||
146 | static unsigned long | 146 | static unsigned long |
147 | fold_field(void *mib[], int offt) | 147 | fold_field(void *mib[], int offt) |
148 | { | 148 | { |
149 | unsigned long res = 0; | 149 | unsigned long res = 0; |
150 | int i; | 150 | int i; |
151 | 151 | ||
152 | for_each_possible_cpu(i) { | 152 | for_each_possible_cpu(i) { |
153 | res += *(((unsigned long *)per_cpu_ptr(mib[0], i)) + offt); | 153 | res += *(((unsigned long *)per_cpu_ptr(mib[0], i)) + offt); |
154 | res += *(((unsigned long *)per_cpu_ptr(mib[1], i)) + offt); | 154 | res += *(((unsigned long *)per_cpu_ptr(mib[1], i)) + offt); |
155 | } | 155 | } |
156 | return res; | 156 | return res; |
157 | } | 157 | } |
158 | 158 | ||
159 | static inline void | 159 | static inline void |
@@ -161,7 +161,7 @@ snmp6_seq_show_item(struct seq_file *seq, void **mib, struct snmp_mib *itemlist) | |||
161 | { | 161 | { |
162 | int i; | 162 | int i; |
163 | for (i=0; itemlist[i].name; i++) | 163 | for (i=0; itemlist[i].name; i++) |
164 | seq_printf(seq, "%-32s\t%lu\n", itemlist[i].name, | 164 | seq_printf(seq, "%-32s\t%lu\n", itemlist[i].name, |
165 | fold_field(mib, itemlist[i].entry)); | 165 | fold_field(mib, itemlist[i].entry)); |
166 | } | 166 | } |
167 | 167 | ||
@@ -187,7 +187,7 @@ static int sockstat6_seq_open(struct inode *inode, struct file *file) | |||
187 | return single_open(file, sockstat6_seq_show, NULL); | 187 | return single_open(file, sockstat6_seq_show, NULL); |
188 | } | 188 | } |
189 | 189 | ||
190 | static struct file_operations sockstat6_seq_fops = { | 190 | static const struct file_operations sockstat6_seq_fops = { |
191 | .owner = THIS_MODULE, | 191 | .owner = THIS_MODULE, |
192 | .open = sockstat6_seq_open, | 192 | .open = sockstat6_seq_open, |
193 | .read = seq_read, | 193 | .read = seq_read, |
@@ -200,7 +200,7 @@ static int snmp6_seq_open(struct inode *inode, struct file *file) | |||
200 | return single_open(file, snmp6_seq_show, PDE(inode)->data); | 200 | return single_open(file, snmp6_seq_show, PDE(inode)->data); |
201 | } | 201 | } |
202 | 202 | ||
203 | static struct file_operations snmp6_seq_fops = { | 203 | static const struct file_operations snmp6_seq_fops = { |
204 | .owner = THIS_MODULE, | 204 | .owner = THIS_MODULE, |
205 | .open = snmp6_seq_open, | 205 | .open = snmp6_seq_open, |
206 | .read = seq_read, | 206 | .read = seq_read, |