1. 16 9月, 2011 1 次提交
  2. 18 8月, 2011 1 次提交
  3. 12 8月, 2011 1 次提交
  4. 22 7月, 2011 3 次提交
  5. 19 7月, 2011 2 次提交
  6. 20 6月, 2011 1 次提交
  7. 14 6月, 2011 1 次提交
  8. 23 5月, 2011 2 次提交
    • P
      Add appropriate <linux/prefetch.h> include for prefetch users · 70c71606
      Paul Gortmaker 提交于
      After discovering that wide use of prefetch on modern CPUs
      could be a net loss instead of a win, net drivers which were
      relying on the implicit inclusion of prefetch.h via the list
      headers showed up in the resulting cleanup fallout.  Give
      them an explicit include via the following $0.02 script.
      
       =========================================
       #!/bin/bash
       MANUAL=""
       for i in `git grep -l 'prefetch(.*)' .` ; do
       	grep -q '<linux/prefetch.h>' $i
       	if [ $? = 0 ] ; then
       		continue
       	fi
      
       	(	echo '?^#include <linux/?a'
       		echo '#include <linux/prefetch.h>'
       		echo .
       		echo w
       		echo q
       	) | ed -s $i > /dev/null 2>&1
       	if [ $? != 0 ]; then
       		echo $i needs manual fixup
       		MANUAL="$i $MANUAL"
       	fi
       done
       echo ------------------- 8\<----------------------
       echo vi $MANUAL
       =========================================
      Signed-off-by: NPaul <paul.gortmaker@windriver.com>
      [ Fixed up some incorrect #include placements, and added some
        non-network drivers and the fib_trie.c case    - Linus ]
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      70c71606
    • P
      drivers/net: add prefetch header for prefetch users · c0cba59e
      Paul Gortmaker 提交于
      After discovering that wide use of prefetch on modern CPUs
      could be a net loss instead of a win, net drivers which were
      relying on the implicit inclusion of prefetch.h via the list
      headers showed up in the resulting cleanup fallout.  Give
      them an explicit include via the following $0.02 script.
      
       =========================================
       #!/bin/bash
       MANUAL=""
       for i in `git grep -l 'prefetch(.*)' .` ; do
       	grep -q '<linux/prefetch.h>' $i
       	if [ $? = 0 ] ; then
       		continue
       	fi
      
       	(	echo '?^#include <linux/?a'
       		echo '#include <linux/prefetch.h>'
       		echo .
       		echo w
       		echo q
       	) | ed -s $i > /dev/null 2>&1
       	if [ $? != 0 ]; then
       		echo $i needs manual fixup
       		MANUAL="$i $MANUAL"
       	fi
       done
       echo ------------------- 8\<----------------------
       echo vi $MANUAL
       =========================================
      Signed-off-by: NPaul <paul.gortmaker@windriver.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c0cba59e
  9. 06 5月, 2011 1 次提交
  10. 12 4月, 2011 2 次提交
  11. 11 4月, 2011 1 次提交
  12. 14 2月, 2011 1 次提交
  13. 22 12月, 2010 1 次提交
  14. 11 12月, 2010 1 次提交
  15. 07 12月, 2010 1 次提交
  16. 03 12月, 2010 1 次提交
  17. 29 11月, 2010 1 次提交
  18. 25 11月, 2010 3 次提交
  19. 29 10月, 2010 1 次提交
  20. 25 9月, 2010 1 次提交
  21. 18 9月, 2010 2 次提交
  22. 08 9月, 2010 1 次提交
  23. 03 9月, 2010 1 次提交
  24. 31 8月, 2010 1 次提交
    • D
      stmmac: Fix build warnings. · 1f0f6388
      David S. Miller 提交于
      In file included from drivers/net/stmmac/stmmac_ethtool.c:30:
      drivers/net/stmmac/stmmac.h:111: warning: 'struct platform_device' declared inside parameter list
      drivers/net/stmmac/stmmac.h:111: warning: its scope is only this definition or declaration, which is probably not what you want
      drivers/net/stmmac/stmmac_main.c: In function 'stmmac_dvr_probe':
      drivers/net/stmmac/stmmac_main.c:1744: warning: cast from pointer to integer of different size
      In file included from drivers/net/stmmac/stmmac_mdio.c:31:
      drivers/net/stmmac/stmmac.h:111: warning: 'struct platform_device' declared inside parameter list
      drivers/net/stmmac/stmmac.h:111: warning: its scope is only this definition or declaration, which is probably not what you want
      drivers/net/stmmac/dwmac1000_core.c: In function 'dwmac1000_dump_regs':
      drivers/net/stmmac/dwmac1000_core.c:56: warning: cast from pointer to integer of different size
      Reported-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1f0f6388
  25. 26 8月, 2010 2 次提交
  26. 28 7月, 2010 2 次提交
    • G
      stmmac: fix automatic PAD/FCS stripping · 3eeb2997
      Giuseppe CAVALLARO 提交于
      For Simple Ethernet frames (802.2 and 802.3) the GMAC Core
      never strips pad and fcs. This means the ACS has no effect
      on IPv4/6 frames.
      The FL bits, in the RDES0, include the FCS so the driver
      has to remove it in SW.
      For 802.3 frame format with LLC or LLC-SNAP, when set the ACS
      bit, the HW strips both PAD and FCS.
      The FL bits, in the RDES0, actually represents the frame length
      already stripped.
      This patch fixes this logic within the device driver that
      erroneously removed 4byte from 802.3 frames already stripped
      corrupting the payload.
      Signed-off-by: NGiuseppe Cavallaro <peppe.cavallaro@st.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3eeb2997
    • G
      stmmac: fix timer setup when use dual mac Kconfig · ca09c976
      Giuseppe CAVALLARO 提交于
      The driver erroneously sets the tmrate to zero when the
      TMU initialisation fails. This actually generates problems
      while using the dual GMAC configuration.
      
      With this patch, enabling both the dual gmac and the timer
      optimisation, the first interface opened will use the tmu
      channel 2, the second one won't be able to use the timer but
      will continue to work without mitigating the interrupts by
      using the external timer (i.e. TMU channel 2).
      Signed-off-by: NGiuseppe Cavallaro <peppe.cavallaro@st.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ca09c976
  27. 23 7月, 2010 1 次提交
  28. 19 7月, 2010 1 次提交
  29. 14 5月, 2010 1 次提交
    • J
      drivers/net: Remove unnecessary returns from void function()s · a4b77097
      Joe Perches 提交于
      This patch removes from drivers/net/ all the unnecessary
      return; statements that precede the last closing brace of
      void functions.
      
      It does not remove the returns that are immediately
      preceded by a label as gcc doesn't like that.
      
      It also does not remove null void functions with return.
      
      Done via:
      $ grep -rP --include=*.[ch] -l "return;\n}" net/ | \
        xargs perl -i -e 'local $/ ; while (<>) { s/\n[ \t\n]+return;\n}/\n}/g; print; }'
      
      with some cleanups by hand.
      
      Compile tested x86 allmodconfig only.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a4b77097
  30. 14 4月, 2010 1 次提交