1. 29 11月, 2011 22 次提交
  2. 28 11月, 2011 14 次提交
  3. 27 11月, 2011 4 次提交
    • D
      ifenslave: Fix unused variable warnings. · 450faacc
      David S. Miller 提交于
      Documentation/networking/ifenslave.c: In function ‘if_getconfig’:
      Documentation/networking/ifenslave.c:508:14: warning: variable ‘mtu’ set but not used [-Wunused-but-set-variable]
      Documentation/networking/ifenslave.c:508:6: warning: variable ‘metric’ set but not used [-Wunused-but-set-variable]
      
      The purpose of this function is to simply print out the values
      it probes, so...
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      450faacc
    • C
    • R
      virtio_net: return already tracked tx_fifo_errors via virtnet_getstats() · 021ac8d3
      Rick Jones 提交于
      Tx_fifo_errors are tracked in start_xmit_ for virtio_net, but not
      reported in the tallies returned by virtnet_stats().  Return them
      as the rx "sub-stats" rx_length_errors and rx_frame_errors are.
      Signed-off-by: NRick Jones <rick.jones2@hp.com>
      Acked-by: NRusty Russell <rusty@rustcorp.com.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      021ac8d3
    • D
      ray_cs: Fix array bounds warnings. · b4c0e72e
      David S. Miller 提交于
      rx_msg is defined to have a 1 entry array at the end, so gcc warns:
      
      drivers/net/wireless/ray_cs.c: In function ‘rx_authenticate’:
      drivers/net/wireless/ray_cs.c:2436:3: warning: array subscript is above array bounds [-Warray-bounds]
      drivers/net/wireless/ray_cs.c:2436:3: warning: array subscript is above array bounds [-Warray-bounds]
      drivers/net/wireless/ray_cs.c:2436:3: warning: array subscript is above array bounds [-Warray-bounds]
      drivers/net/wireless/ray_cs.c:2436:3: warning: array subscript is above array bounds [-Warray-bounds]
      drivers/net/wireless/ray_cs.c:2436:3: warning: array subscript is above array bounds [-Warray-bounds]
      drivers/net/wireless/ray_cs.c:2439:15: warning: array subscript is above array bounds [-Warray-bounds]
      drivers/net/wireless/ray_cs.c:2452:16: warning: array subscript is above array bounds [-Warray-bounds]
      drivers/net/wireless/ray_cs.c:2453:18: warning: array subscript is above array bounds [-Warray-bounds]
      drivers/net/wireless/ray_cs.c:2453:32: warning: array subscript is above array bounds [-Warray-bounds]
      
      Use a zero length array and rename to "ray_rx_msg" to make sure we hit all
      of the necessary cases.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b4c0e72e