1. 26 6月, 2009 3 次提交
    • P
      clarify get_user_pages() prototype · 9d73777e
      Peter Zijlstra 提交于
      Currently the 4th parameter of get_user_pages() is called len, but its
      in pages, not bytes. Rename the thing to nr_pages to avoid future
      confusion.
      Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      9d73777e
    • P
      UML: Fix some apparent bitrot · ab420e6d
      Paul Menage 提交于
      UML: Fix some apparent bitrot
      
      - migration of net_device methods into net_device_ops
      - dma_sync_single() changes
      Signed-off-by: NPaul Menage <menage@google.com>
      Acked-by: NAmerigo Wang <xiyou.wangcong@gmail.com>
      --
      
      This version is split from my earlier patch, including just the
      portions that ar required for Linus' tree.
      
      Fixes the following compile errors:
      
      include/linux/dma-mapping.h:113: error: redefinition of 'dma_sync_single'
      arch/um/include/asm/dma-mapping.h:84: error: previous definition of 'dma_sync_single' was here
      include/linux/dma-mapping.h: In function 'dma_sync_single':
      include/linux/dma-mapping.h:117: error: implicit declaration of function 'dma_sync_single_for_cpu'
      include/linux/dma-mapping.h: At top level:
      include/linux/dma-mapping.h:120: error: redefinition of 'dma_sync_sg'
      arch/um/include/asm/dma-mapping.h:91: error: previous definition of 'dma_sync_sg' was here
      include/linux/dma-mapping.h: In function 'dma_sync_sg':
      include/linux/dma-mapping.h:124: error: implicit declaration of function 'dma_sync_sg_for_cpu'
      
      arch/um/drivers/slirp_kern.c: In function 'slirp_init':
      arch/um/drivers/slirp_kern.c:35: error: 'struct net_device' has no member named 'init'
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      ab420e6d
    • I
      i2c: fix build bug in i2c-designware.c · 47749b14
      Ingo Molnar 提交于
      This build error triggers on x86:
      
       drivers/built-in.o: In function `i2c_dw_init':
       i2c-designware.c:(.text+0x4e37ca): undefined reference to `clk_get_rate'
       drivers/built-in.o: In function `dw_i2c_probe':
       i2c-designware.c:(.devinit.text+0x51f5e): undefined reference to `clk_get'
       i2c-designware.c:(.devinit.text+0x51f76): undefined reference to `clk_enable'
       i2c-designware.c:(.devinit.text+0x520ff): undefined reference to `clk_disable'
       i2c-designware.c:(.devinit.text+0x52108): undefined reference to `clk_put'
      
      Because this new driver uses the clk_*() facilities which is an
      ARM-only thing currently.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Acked-by: NBaruch Siach <baruch@tkos.co.il>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      47749b14
  2. 25 6月, 2009 37 次提交