1. 09 5月, 2007 6 次提交
  2. 08 5月, 2007 1 次提交
    • H
      Introduce CONFIG_HAS_DMA · 411f0f3e
      Heiko Carstens 提交于
      Architectures that don't support DMA can say so by adding a config NO_DMA
      to their Kconfig file.  This will prevent compilation of some dma specific
      driver code.  Also dma-mapping-broken.h isn't needed anymore on at least
      s390.  This avoids compilation and linking of otherwise dead/broken code.
      
      Other architectures that include dma-mapping-broken.h are arm26, h8300,
      m68k, m68knommu and v850.  If these could be converted as well we could get
      rid of the header file.
      Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      "John W. Linville" <linville@tuxdriver.com>
      Cc: Kyle McMartin <kyle@parisc-linux.org>
      Cc: <James.Bottomley@SteelEye.com>
      Cc: Tejun Heo <htejun@gmail.com>
      Cc: Jeff Garzik <jeff@garzik.org>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: <geert@linux-m68k.org>
      Cc: <zippel@linux-m68k.org>
      Cc: <spyro@f2s.com>
      Cc: <uclinux-v850@lsi.nec.co.jp>
      Cc: <ysato@users.sourceforge.jp>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      411f0f3e
  3. 05 5月, 2007 4 次提交
  4. 04 5月, 2007 1 次提交
  5. 03 5月, 2007 2 次提交
  6. 29 4月, 2007 1 次提交
  7. 27 4月, 2007 15 次提交
  8. 26 4月, 2007 2 次提交
    • D
      [S390]: Fix build on 31-bit. · cb8c181f
      David S. Miller 提交于
      Allow s390 to properly override the generic
      __div64_32() implementation by:
      
      1) Using obj-y for div64.o in s390's makefile instead
         of lib-y
      
      2) Adding the weak attribute to the generic implementation.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      cb8c181f
    • R
      [NET]: Inline net_device_stats · c45d286e
      Rusty Russell 提交于
      Network drivers which keep stats allocate their own stats structure
      then write a get_stats() function to return them.  It would be nice if
      this were done by default.
      
      1) Add a new "stats" field to "struct net_device".
      2) Add a new feature field to say "this driver uses the internal one"
      3) Have a default "get_stats" which returns NULL if that feature not set.
      4) Change callers to check result of get_stats call for NULL, not if
         ->get_stats is set.
      
      This should not break backwards compatibility with older drivers, yet
      allow modern drivers to shed some boilerplate code.
      
      Lightly tested: works for a modified lguest network driver.
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c45d286e
  9. 27 3月, 2007 1 次提交
    • D
      [S390] kprobes: Align probe address. · b70842df
      David Wilder 提交于
      Running a probe on s390 with a probe address that is not 4 byte aligned
      results in a Kernel BUG.  The problem is that the stura instruction used
      by swap_instruction requires the destination address to be 4 byte aligned.
      As stura only writes 4 bytes, aligning to the next 4 byte aligned address
      results in the breakpoint instruction being stored past the probe address.
      The fix is to align the address backward (to the previous 4 byte aligned
      address) and writing the two byte breakpoint instruction in the appropriate
      bytes.
      
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Signed-off-by: NDavid Wilder <dwilder@us.ibm.com>
      Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      b70842df
  10. 19 3月, 2007 5 次提交
  11. 15 3月, 2007 1 次提交
  12. 06 3月, 2007 1 次提交
    • G
      [S390] Fixed handling of access register mode faults. · 482b05dd
      Gerald Schaefer 提交于
      Replaced check_user_space() + __check_access_register with the new
      check_space(). The old functions made wrong assumptions about kernel
      and user space when the kernel and user address spaces are switched
      (kernel in home space, user in primary/secondary space).
      Secondly the user process can switch to the accress register mode if
      it is running in primary or secondary mode. In addition it can load
      an arbitrary value to the access registers. If any other value than
      0 for primary space or 1 for secondary space is loaded and memory
      is accessed using the base register related to the access register,
      the program should be terminated with a SIGSEGV. To achieve that the
      DUALD pointer in the DUCT and the PSALD pointer in the PASTE need
      to point to an array of 8 invalid access-list entries to get a
      ALEN-translation exception if an invalid alet is used.
      Signed-off-by: NGerald Schaefer <geraldsc@de.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      482b05dd