1. 16 9月, 2011 1 次提交
  2. 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
  3. 10 5月, 2011 3 次提交
  4. 30 4月, 2011 1 次提交
    • D
      ethtool: Call ethtool's get/set_settings callbacks with cleaned data · 8ae6daca
      David Decotigny 提交于
      This makes sure that when a driver calls the ethtool's
      get/set_settings() callback of another driver, the data passed to it
      is clean. This guarantees that speed_hi will be zeroed correctly if
      the called callback doesn't explicitely set it: we are sure we don't
      get a corrupted speed from the underlying driver. We also take care of
      setting the cmd field appropriately (ETHTOOL_GSET/SSET).
      
      This applies to dev_ethtool_get_settings(), which now makes sure it
      sets up that ethtool command parameter correctly before passing it to
      drivers. This also means that whoever calls dev_ethtool_get_settings()
      does not have to clean the ethtool command parameter. This function
      also becomes an exported symbol instead of an inline.
      
      All drivers visible to make allyesconfig under x86_64 have been
      updated.
      Signed-off-by: NDavid Decotigny <decot@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8ae6daca
  5. 20 4月, 2011 1 次提交
  6. 31 3月, 2011 1 次提交
  7. 25 3月, 2011 1 次提交
    • R
      net: fix pch_gbe section mismatch warning · f7594d42
      Randy Dunlap 提交于
      Fix section mismatch warning by renaming the pci_driver variable to a
      recognized (whitelisted) name.
      
      WARNING: drivers/net/pch_gbe/pch_gbe.o(.data+0x1f8): Section mismatch in reference from the variable pch_gbe_pcidev to the variable .devinit.rodata:pch_gbe_pcidev_id
      The variable pch_gbe_pcidev references
      the variable __devinitconst pch_gbe_pcidev_id
      If the reference is valid then annotate the
      variable with __init* or __refdata (see linux/init.h) or name the variable:
      *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f7594d42
  8. 15 3月, 2011 1 次提交
  9. 15 2月, 2011 1 次提交
    • T
      pch_gbe: Fix the MAC Address load issue. · 98200ec2
      Toshiharu Okada 提交于
      With the specification of hardware,
      the processing at the time of driver starting was modified.
      
      This device write automatically the MAC address read from serial ROM
      into a MAC Adress1A/1B register at the time of power on reset.
      However, when stable clock is not supplied,
      the writing of MAC Adress1A/1B register may not be completed.
      In this case, it is necessary to load MAC address to MAC Address1A/1B register
      by the MAC Address1 load register.
      
      This patch always does the above processing,
      in order not to be dependent on system environment.
      Signed-off-by: NToshiharu Okada <toshiharu-linux@dsn.okisemi.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      98200ec2
  10. 14 2月, 2011 1 次提交
  11. 10 2月, 2011 1 次提交
  12. 25 1月, 2011 1 次提交
  13. 07 12月, 2010 1 次提交
  14. 30 11月, 2010 1 次提交
  15. 28 11月, 2010 1 次提交
  16. 21 10月, 2010 1 次提交
  17. 18 10月, 2010 1 次提交
  18. 12 10月, 2010 1 次提交
  19. 25 9月, 2010 1 次提交