1. 23 5月, 2011 8 次提交
  2. 21 5月, 2011 2 次提交
    • L
      sanitize <linux/prefetch.h> usage · 268bb0ce
      Linus Torvalds 提交于
      Commit e66eed65 ("list: remove prefetching from regular list
      iterators") removed the include of prefetch.h from list.h, which
      uncovered several cases that had apparently relied on that rather
      obscure header file dependency.
      
      So this fixes things up a bit, using
      
         grep -L linux/prefetch.h $(git grep -l '[^a-z_]prefetchw*(' -- '*.[ch]')
         grep -L 'prefetchw*(' $(git grep -l 'linux/prefetch.h' -- '*.[ch]')
      
      to guide us in finding files that either need <linux/prefetch.h>
      inclusion, or have it despite not needing it.
      
      There are more of them around (mostly network drivers), but this gets
      many core ones.
      Reported-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      268bb0ce
    • E
      macvlan: fix panic if lowerdev in a bond · d9351561
      Eric Dumazet 提交于
      commit a35e2c1b (macvlan: use rx_handler_data pointer to store
      macvlan_port pointer V2) added a bug in macvlan_port_create()
      
      Steps to reproduce the bug:
      
      # ifenslave bond0 eth0 eth1
      
      # ip link add link eth0 up name eth0#1 type macvlan
      ->error EBUSY
      
      # ip link add link eth0 up name eth0#1 type macvlan
      ->panic
      
      
      Fix: Dont set IFF_MACVLAN_PORT in error case.
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d9351561
  3. 20 5月, 2011 19 次提交
  4. 19 5月, 2011 5 次提交
  5. 18 5月, 2011 2 次提交
    • D
      sfc: Don't use enums as a bitmask. · b5626946
      David S. Miller 提交于
      This fixes:
      
      drivers/net/sfc/mcdi_mac.c: In function ‘efx_mcdi_set_mac’:
      drivers/net/sfc/mcdi_mac.c:36:2: warning: case value ‘3’ not in enumerated type ‘enum efx_fc_type’
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b5626946
    • I
      xen: netback: use __CONST_RING_SIZE not __RING_SIZE · 11e73de7
      Ian Campbell 提交于
      The later causes warnings with gcc 4.5+. __CONST_RING_SIZE was introduced in
      667c78af to fix this but as netback wasn't upstream at the time it did not
      benefit, hence:
      
        CC      drivers/net/xen-netback/netback.o
      drivers/net/xen-netback/netback.c:110:37: warning: variably modified 'grant_copy_op' at file scope [enabled by default]
      drivers/net/xen-netback/netback.c:111:30: warning: variably modified 'meta' at file scope [enabled by default]
      drivers/net/xen-netback/netback.c: In function 'xen_netbk_rx_action':
      drivers/net/xen-netback/netback.c:584:6: warning: variable 'irq' set but not used [-Wunused-but-set-variable]
      
      Thanks to Witold Baryluk for pointing this out.
      Signed-off-by: NIan Campbell <ian.campbell@citrix.com>
      Cc: Witold Baryluk <baryluk@smp.if.uj.edu.pl>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      11e73de7
  6. 17 5月, 2011 4 次提交