Patches contributed by Eötvös Lorand University


commit ff0db0490a2eb6db4f03870987c5c8e3dd81e747
Author: Ingo Molnar <mingo@elte.hu>
Date:   Tue Nov 25 16:58:42 2008 -0800

    sunrpc: fix warning in net/sunrpc/xprtrdma/verbs.c
    
    fix this warning:
    
      net/sunrpc/xprtrdma/verbs.c: In function ‘rpcrdma_conn_upcall’:
      net/sunrpc/xprtrdma/verbs.c:279: warning: unused variable ‘addr’
    
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: David S. Miller <davem@davemloft.net>

diff --git a/net/sunrpc/xprtrdma/verbs.c b/net/sunrpc/xprtrdma/verbs.c
index 78f7f728ef10..3b21e0cc5e69 100644
--- a/net/sunrpc/xprtrdma/verbs.c
+++ b/net/sunrpc/xprtrdma/verbs.c
@@ -276,7 +276,9 @@ rpcrdma_conn_upcall(struct rdma_cm_id *id, struct rdma_cm_event *event)
 	struct rpcrdma_xprt *xprt = id->context;
 	struct rpcrdma_ia *ia = &xprt->rx_ia;
 	struct rpcrdma_ep *ep = &xprt->rx_ep;
+#ifdef RPC_DEBUG
 	struct sockaddr_in *addr = (struct sockaddr_in *) &ep->rep_remote_addr;
+#endif
 	struct ib_qp_attr attr;
 	struct ib_qp_init_attr iattr;
 	int connstate = 0;

commit e14bec2e2b59a6180f04544a867b7e52cd414455
Author: Ingo Molnar <mingo@elte.hu>
Date:   Tue Nov 25 16:58:19 2008 -0800

    ax25: fix warning in net/ax25/sysctl_net_ax25.c
    
    fix this warning:
    
      net/ax25/sysctl_net_ax25.c:27: warning: ‘min_ds_timeout’ defined but not used
      net/ax25/sysctl_net_ax25.c:27: warning: ‘max_ds_timeout’ defined but not used
    
    These are only used in the CONFIG_AX25_DAMA_SLAVE case.
    
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: David S. Miller <davem@davemloft.net>

diff --git a/net/ax25/sysctl_net_ax25.c b/net/ax25/sysctl_net_ax25.c
index c1d877bb5dff..62ee3fb34732 100644
--- a/net/ax25/sysctl_net_ax25.c
+++ b/net/ax25/sysctl_net_ax25.c
@@ -24,7 +24,9 @@ static int min_idle[1],			max_idle[] = {65535000};
 static int min_n2[] = {1},		max_n2[] = {31};
 static int min_paclen[] = {1},		max_paclen[] = {512};
 static int min_proto[1],		max_proto[] = { AX25_PROTO_MAX };
+#ifdef CONFIG_AX25_DAMA_SLAVE
 static int min_ds_timeout[1],		max_ds_timeout[] = {65535000};
+#endif
 
 static struct ctl_table_header *ax25_table_header;
 

commit 509dceef6470442d8c7b8a43ec34125205840b3c
Merge: 1e9b51c28312 14bfc987e395
Author: Ingo Molnar <mingo@elte.hu>
Date:   Wed Nov 26 01:58:05 2008 +0100

    Merge branches 'tracing/hw-branch-tracing' and 'tracing/branch-tracer' into tracing/core

commit e6a176228a38d74c0360ca586146bd45a2ac2d60
Author: Ingo Molnar <mingo@elte.hu>
Date:   Tue Nov 25 16:57:59 2008 -0800

    mlx4: fix warning in drivers/net/mlx4/mcg.c
    
    fix warning:
    
      drivers/net/mlx4/mcg.c: In function ‘mlx4_multicast_attach’:
      drivers/net/mlx4/mcg.c:217: warning: integer overflow in expression
    
    there was no real danger of overflow here though.
    
    md5:
       db8eb55620f886c03854a2abb2ce6c3f  mcg.o.before.asm
       db8eb55620f886c03854a2abb2ce6c3f  mcg.o.after.asm
    
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: David S. Miller <davem@davemloft.net>

diff --git a/drivers/net/mlx4/mcg.c b/drivers/net/mlx4/mcg.c
index b1622062b12d..6053c357a470 100644
--- a/drivers/net/mlx4/mcg.c
+++ b/drivers/net/mlx4/mcg.c
@@ -205,7 +205,7 @@ int mlx4_multicast_attach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16],
 
 	if (block_mcast_loopback)
 		mgm->qp[members_count++] = cpu_to_be32((qp->qpn & MGM_QPN_MASK) |
-						       (1 << MGM_BLCK_LB_BIT));
+						       (1U << MGM_BLCK_LB_BIT));
 	else
 		mgm->qp[members_count++] = cpu_to_be32(qp->qpn & MGM_QPN_MASK);
 

commit 3ed7cc0f8b29da4304825a7bcef25fc83f84c1ae
Author: Ingo Molnar <mingo@elte.hu>
Date:   Tue Nov 25 16:57:30 2008 -0800

    dccp: fix warning in net/dccp/options.c
    
    this warning:
    
      net/dccp/options.c: In function ‘dccp_parse_options’:
      net/dccp/options.c:67: warning: ‘value’ may be used uninitialized in this function
    
    is a bogus GCC warning. The compiler does not recognize the relation
    between "value" and "mandatory" variables: the code flow can ever reach
    the "out_invalid_option:" label if 'mandatory' is set to 1, and when
    'mandatory' is non-zero, we'll always have 'value' initialized.
    
    Help out the compiler by annotating the variable.
    
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: David S. Miller <davem@davemloft.net>

diff --git a/net/dccp/options.c b/net/dccp/options.c
index bfa1cb8f3ef1..20d5c72d1fdb 100644
--- a/net/dccp/options.c
+++ b/net/dccp/options.c
@@ -67,7 +67,7 @@ int dccp_parse_options(struct sock *sk, struct dccp_request_sock *dreq,
 					(dh->dccph_doff * 4);
 	struct dccp_options_received *opt_recv = &dp->dccps_options_received;
 	unsigned char opt, len;
-	unsigned char *value;
+	unsigned char *uninitialized_var(value);
 	u32 elapsed_time;
 	__be32 opt_val;
 	int rc;

commit b71e839f9a33abf8634b1eea4875bc8057fe39e2
Author: Ingo Molnar <mingo@elte.hu>
Date:   Tue Nov 25 16:57:05 2008 -0800

    cassini: fix warning in drivers/net/cassini.c
    
    this warning:
    
      drivers/net/cassini.c: In function ‘cas_rx_ringN’:
      drivers/net/cassini.c:2350: warning: ‘skb’ may be used uninitialized in this function
    
    triggers because GCC does not recognize the (correct) error flow
    between cas_rx_process_pkt() and 'skb'.
    
    Annotate it.
    
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: David S. Miller <davem@davemloft.net>

diff --git a/drivers/net/cassini.c b/drivers/net/cassini.c
index bc84c4ca898e..023d205e9054 100644
--- a/drivers/net/cassini.c
+++ b/drivers/net/cassini.c
@@ -2347,7 +2347,7 @@ static int cas_rx_ringN(struct cas *cp, int ring, int budget)
 	drops = 0;
 	while (1) {
 		struct cas_rx_comp *rxc = rxcs + entry;
-		struct sk_buff *skb;
+		struct sk_buff *uninitialized_var(skb);
 		int type, len;
 		u64 words[4];
 		int i, dring;

commit b58515be978f9377b9546ae98ad6c8bbc2f93ee1
Author: Ingo Molnar <mingo@elte.hu>
Date:   Tue Nov 25 16:53:32 2008 -0800

    mlx4: fix error path in drivers/net/mlx4/en_rx.c
    
    this warning:
    
      drivers/net/mlx4/en_rx.c: In function ‘mlx4_en_activate_rx_rings’:
      drivers/net/mlx4/en_rx.c:412: warning: ‘err’ may be used uninitialized in this function
    
    Triggers because 'err' is uninitialized in the following input
    conditions: priv->rx_ring_num is zero and mlx4_en_fill_rx_buffers()
    fails.
    
    But even if ->rx_ring_num is nonzero, 'err' will be zero if
    mlx4_en_fill_rx_buffers() fails and mlx4_en_activate_rx_rings() returns
    success - incorrectly.
    
    So it's best to keep the error code uptodate on mlx4_en_fill_rx_buffers()
    calls as well.
    
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: David S. Miller <davem@davemloft.net>

diff --git a/drivers/net/mlx4/en_rx.c b/drivers/net/mlx4/en_rx.c
index 944ad47c9519..ffe28089b687 100644
--- a/drivers/net/mlx4/en_rx.c
+++ b/drivers/net/mlx4/en_rx.c
@@ -443,7 +443,8 @@ int mlx4_en_activate_rx_rings(struct mlx4_en_priv *priv)
 		/* Fill Rx buffers */
 		ring->full = 0;
 	}
-	if (mlx4_en_fill_rx_buffers(priv))
+	err = mlx4_en_fill_rx_buffers(priv);
+	if (err)
 		goto err_buffers;
 
 	for (ring_ind = 0; ring_ind < priv->rx_ring_num; ring_ind++) {

commit 4174439ef5894964803c6300e7e88d97e075e4c0
Author: Ingo Molnar <mingo@elte.hu>
Date:   Tue Nov 25 16:53:08 2008 -0800

    z85230: fix warning in drivers/net/wan/z85230.c
    
    this warning:
    
      drivers/net/wan/z85230.c: In function ‘z8530_interrupt’:
      drivers/net/wan/z85230.c:713: warning: ‘intr’ may be used uninitialized in this function
    
    is clearly bogus - annotate it.
    
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: David S. Miller <davem@davemloft.net>

diff --git a/drivers/net/wan/z85230.c b/drivers/net/wan/z85230.c
index 5bf7e01ef0e9..d7bf53a56e17 100644
--- a/drivers/net/wan/z85230.c
+++ b/drivers/net/wan/z85230.c
@@ -710,7 +710,7 @@ EXPORT_SYMBOL(z8530_nop);
 irqreturn_t z8530_interrupt(int irq, void *dev_id)
 {
 	struct z8530_dev *dev=dev_id;
-	u8 intr;
+	u8 uninitialized_var(intr);
 	static volatile int locker=0;
 	int work=0;
 	struct z8530_irqhandler *irqs;

commit ef0cd87ef6326609be8abf19030101be24cc5703
Author: Ingo Molnar <mingo@elte.hu>
Date:   Tue Nov 25 16:52:13 2008 -0800

    sis900: fix warning in drivers/net/sis900.c
    
    this warning:
    
      drivers/net/sis900.c: In function ‘sis900_timer’:
      drivers/net/sis900.c:1280: warning: ‘speed’ may be used uninitialized in this function
    
    triggers because GCC does not recognize the (correct) error flow
    between sis900_read_mode(), 'speed' and 'duplex'.
    
    Annotate it.
    
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: David S. Miller <davem@davemloft.net>

diff --git a/drivers/net/sis900.c b/drivers/net/sis900.c
index de740ebfafb6..eb715f1bcd48 100644
--- a/drivers/net/sis900.c
+++ b/drivers/net/sis900.c
@@ -1281,7 +1281,7 @@ static void sis900_timer(unsigned long data)
 	u16 status;
 
 	if (!sis_priv->autong_complete){
-		int speed, duplex = 0;
+		int uninitialized_var(speed), duplex = 0;
 
 		sis900_read_mode(net_dev, &speed, &duplex);
 		if (duplex){

commit 180b65df7ba1e700e28aabfbddbad84b7beebe4b
Author: Ingo Molnar <mingo@elte.hu>
Date:   Tue Nov 25 16:51:45 2008 -0800

    fix warning in fs/dlm/netlink.c
    
    this warning:
    
      fs/dlm/netlink.c: In function ‘dlm_timeout_warn’:
      fs/dlm/netlink.c:131: warning: ‘send_skb’ may be used uninitialized in this function
    
    triggers because GCC does not recognize the (correct) error flow
    between prepare_data() and send_skb.
    
    Annotate it.
    
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: David S. Miller <davem@davemloft.net>

diff --git a/fs/dlm/netlink.c b/fs/dlm/netlink.c
index 18bda83cc892..aa2a5775a027 100644
--- a/fs/dlm/netlink.c
+++ b/fs/dlm/netlink.c
@@ -127,8 +127,8 @@ static void fill_data(struct dlm_lock_data *data, struct dlm_lkb *lkb)
 
 void dlm_timeout_warn(struct dlm_lkb *lkb)
 {
+	struct sk_buff *uninitialized_var(send_skb);
 	struct dlm_lock_data *data;
-	struct sk_buff *send_skb;
 	size_t size;
 	int rv;