Skip to content

Commit 90ca9a2

Browse files
author
Linus Torvalds
committed
Merge commit master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 of HEAD
* HEAD: [DCCP]: Fix sparse warnings. [TCP]: Remove TCP Compound [BPQ] lockdep: fix false positive [IPV4] inetpeer: Get rid of volatile from peer_total [AX.25]: Get rid of the last volatile.
2 parents 2c87e2c + 9faefb6 commit 90ca9a2

7 files changed

Lines changed: 11 additions & 463 deletions

File tree

‎drivers/net/hamradio/bpqether.c‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@ struct bpqdev {
122122

123123
static LIST_HEAD(bpq_devices);
124124

125+
/*
126+
* bpqether network devices are paired with ethernet devices below them, so
127+
* form a special "super class" of normal ethernet devices; split their locks
128+
* off into a separate class since they always nest.
129+
*/
130+
static struct lock_class_key bpq_netdev_xmit_lock_key;
125131

126132
/* ------------------------------------------------------------------------ */
127133

@@ -528,6 +534,7 @@ static int bpq_new_device(struct net_device *edev)
528534
err = register_netdevice(ndev);
529535
if (err)
530536
goto error;
537+
lockdep_set_class(&ndev->_xmit_lock, &bpq_netdev_xmit_lock_key);
531538

532539
/* List protected by RTNL */
533540
list_add_rcu(&bpq->bpq_list, &bpq_devices);

‎net/ax25/ax25_in.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ static int ax25_rx_fragment(ax25_cb *ax25, struct sk_buff *skb)
102102
int ax25_rx_iframe(ax25_cb *ax25, struct sk_buff *skb)
103103
{
104104
int (*func)(struct sk_buff *, ax25_cb *);
105-
volatile int queued = 0;
106105
unsigned char pid;
106+
int queued = 0;
107107

108108
if (skb == NULL) return 0;
109109

‎net/dccp/proto.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ static int do_dccp_setsockopt(struct sock *sk, int level, int optname,
484484
err = -EINVAL;
485485
else
486486
err = dccp_setsockopt_change(sk, DCCPO_CHANGE_L,
487-
(struct dccp_so_feat *)
487+
(struct dccp_so_feat __user *)
488488
optval);
489489
break;
490490

@@ -493,7 +493,7 @@ static int do_dccp_setsockopt(struct sock *sk, int level, int optname,
493493
err = -EINVAL;
494494
else
495495
err = dccp_setsockopt_change(sk, DCCPO_CHANGE_R,
496-
(struct dccp_so_feat *)
496+
(struct dccp_so_feat __user *)
497497
optval);
498498
break;
499499

‎net/ipv4/Kconfig‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -572,16 +572,6 @@ config TCP_CONG_VENO
572572
loss packets.
573573
See http://www.ntu.edu.sg/home5/ZHOU0022/papers/CPFu03a.pdf
574574

575-
config TCP_CONG_COMPOUND
576-
tristate "TCP Compound"
577-
depends on EXPERIMENTAL
578-
default n
579-
---help---
580-
TCP Compound is a sender-side only change to TCP that uses
581-
a mixed Reno/Vegas approach to calculate the cwnd.
582-
For further details look here:
583-
ftp://ftp.research.microsoft.com/pub/tr/TR-2005-86.pdf
584-
585575
endmenu
586576

587577
config TCP_CONG_BIC

‎net/ipv4/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ obj-$(CONFIG_TCP_CONG_VEGAS) += tcp_vegas.o
4747
obj-$(CONFIG_TCP_CONG_VENO) += tcp_veno.o
4848
obj-$(CONFIG_TCP_CONG_SCALABLE) += tcp_scalable.o
4949
obj-$(CONFIG_TCP_CONG_LP) += tcp_lp.o
50-
obj-$(CONFIG_TCP_CONG_COMPOUND) += tcp_compound.o
5150

5251
obj-$(CONFIG_XFRM) += xfrm4_policy.o xfrm4_state.o xfrm4_input.o \
5352
xfrm4_output.o

‎net/ipv4/inetpeer.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static struct inet_peer *peer_root = peer_avl_empty;
8686
static DEFINE_RWLOCK(peer_pool_lock);
8787
#define PEER_MAXDEPTH 40 /* sufficient for about 2^27 nodes */
8888

89-
static volatile int peer_total;
89+
static int peer_total;
9090
/* Exported for sysctl_net_ipv4. */
9191
int inet_peer_threshold = 65536 + 128; /* start to throw entries more
9292
* aggressively at this stage */

0 commit comments

Comments
 (0)