1. 25 9月, 2008 1 次提交
    • T
      gianfar: Fix error in mdio reset timeout · baac03d9
      Trent Piepho 提交于
      The loop with the timeout used "while (...  && timeout--)", which means
      than when the timeout occurs, "timeout" will be -1 after the loop has
      exited.  The code that checks if the looped exited because of a timeout
      used "if (timeout <= 0)".  Seems ok, except timeout is unsigned, and
      (unsigned)-1 isn't less than zero!
      
      Using "--timeout" in the loop fixes this problem, as now "timeout" will be
      0 when the loop times out.
      
      This also fixes a bug in the existing code, where it will erroneously think
      a timeout occurred if the condition the loop was waiting for is satisfied
      on the final iteration before a timeout.
      Signed-off-by: NTrent Piepho <tpiepho@freescale.com>
      Acked-by: NAndy Fleming <afleming@freescale.com>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      baac03d9
  2. 29 4月, 2008 1 次提交
  3. 17 4月, 2008 1 次提交
  4. 15 2月, 2008 1 次提交
  5. 06 2月, 2008 1 次提交
  6. 31 7月, 2007 1 次提交
  7. 17 7月, 2007 1 次提交
  8. 09 7月, 2007 1 次提交
  9. 15 2月, 2007 1 次提交
    • T
      [PATCH] remove many unneeded #includes of sched.h · cd354f1a
      Tim Schmielau 提交于
      After Al Viro (finally) succeeded in removing the sched.h #include in module.h
      recently, it makes sense again to remove other superfluous sched.h includes.
      There are quite a lot of files which include it but don't actually need
      anything defined in there.  Presumably these includes were once needed for
      macros that used to live in sched.h, but moved to other header files in the
      course of cleaning it up.
      
      To ease the pain, this time I did not fiddle with any header files and only
      removed #includes from .c-files, which tend to cause less trouble.
      
      Compile tested against 2.6.20-rc2 and 2.6.20-rc2-mm2 (with offsets) on alpha,
      arm, i386, ia64, mips, powerpc, and x86_64 with allnoconfig, defconfig,
      allmodconfig, and allyesconfig as well as a few randconfigs on x86_64 and all
      configs in arch/arm/configs on arm.  I also checked that no new warnings were
      introduced by the patch (actually, some warnings are removed that were emitted
      by unnecessarily included header files).
      Signed-off-by: NTim Schmielau <tim@physik3.uni-rostock.de>
      Acked-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      cd354f1a
  10. 14 9月, 2006 1 次提交
  11. 01 7月, 2006 1 次提交
  12. 07 2月, 2006 1 次提交
  13. 13 1月, 2006 1 次提交
  14. 14 11月, 2005 1 次提交
  15. 11 11月, 2005 1 次提交
  16. 09 11月, 2005 1 次提交
    • O
      [PATCH] changing CONFIG_LOCALVERSION rebuilds too much, for no good reason · 733482e4
      Olaf Hering 提交于
      This patch removes almost all inclusions of linux/version.h.  The 3
      #defines are unused in most of the touched files.
      
      A few drivers use the simple KERNEL_VERSION(a,b,c) macro, which is
      unfortunatly in linux/version.h.
      
      There are also lots of #ifdef for long obsolete kernels, this was not
      touched.  In a few places, the linux/version.h include was move to where
      the LINUX_VERSION_CODE was used.
      
      quilt vi `find * -type f -name "*.[ch]"|xargs grep -El '(UTS_RELEASE|LINUX_VERSION_CODE|KERNEL_VERSION|linux/version.h)'|grep -Ev '(/(boot|coda|drm)/|~$)'`
      
      search pattern:
      /UTS_RELEASE\|LINUX_VERSION_CODE\|KERNEL_VERSION\|linux\/\(utsname\|version\).h
      Signed-off-by: NOlaf Hering <olh@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      733482e4
  17. 30 10月, 2005 1 次提交
  18. 24 9月, 2005 1 次提交