1. 24 Oct, 2012 1 commit
    • Mark Einon's avatar
      staging: et131x: Fix i386 build warnings from use of dma_addr_t · 983e4b35
      Mark Einon authored
      dma_addr_t can be of size 64 or 32bits, depending on the architecture.
      
      This fixes these build warnings for ARCH=i386, and also tested on x86_64:
      
      drivers/staging/et131x/et131x.c: In function ‘et131x_rx_dma_memory_alloc’:
      drivers/staging/et131x/et131x.c:2356:11: warning: passing argument 2 of ‘et131x_align_allocated_memory’ from incompatible pointer type [enabled by default]
      drivers/staging/et131x/et131x.c:2260:13: note: expected ‘u64 *’ but argument is of type ‘dma_addr_t *’
      drivers/staging/et131x/et131x.c:2378:11: warning: passing argument 2 of ‘et131x_align_allocated_memory’ from incompatible pointer type [enabled by default]
      drivers/staging/et131x/et131x.c:2260:13: note: expected ‘u64 *’ but argument is of type ‘dma_addr_t *’
      drivers/staging/et131x/et131x.c: In function ‘free_send_packet’:
      drivers/staging/et131x/et131x.c:3540:5: warning: left shift count >= width of type [enabled by default]
      Reported-by: default avatarFengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: default avatarMark Einon <mark.einon@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      983e4b35
  2. 22 Oct, 2012 39 commits