1. 15 10月, 2014 2 次提交
  2. 11 10月, 2014 3 次提交
  3. 02 9月, 2014 1 次提交
    • G
      drivers: net: NET_XGENE should depend on HAS_DMA · e148e1bf
      Geert Uytterhoeven 提交于
      If NO_DMA=y:
      
      drivers/built-in.o: In function `xgene_enet_delete_ring':
      xgene_enet_main.c:(.text+0x28755a): undefined reference to `dma_free_coherent'
      drivers/built-in.o: In function `xgene_enet_setup_tx_desc':
      xgene_enet_main.c:(.text+0x287774): undefined reference to `dma_map_single'
      xgene_enet_main.c:(.text+0x287780): undefined reference to `dma_mapping_error'
      drivers/built-in.o: In function `xgene_enet_tx_completion':
      xgene_enet_main.c:(.text+0x2878e6): undefined reference to `dma_unmap_single'
      drivers/built-in.o: In function `xgene_enet_refill_bufpool':
      xgene_enet_main.c:(.text+0x2879d4): undefined reference to `dma_map_single'
      xgene_enet_main.c:(.text+0x2879e0): undefined reference to `dma_mapping_error'
      drivers/built-in.o: In function `xgene_enet_rx_frame':
      xgene_enet_main.c:(.text+0x287aaa): undefined reference to `dma_unmap_single'
      drivers/built-in.o: In function `xgene_enet_free_desc_ring':
      xgene_enet_main.c:(.text+0x287f98): undefined reference to `dma_free_coherent'
      drivers/built-in.o: In function `xgene_enet_create_desc_ring':
      xgene_enet_main.c:(.text+0x28808e): undefined reference to `dma_alloc_coherent'
      drivers/built-in.o: In function `xgene_enet_probe':
      xgene_enet_main.c:(.text+0x2883d4): undefined reference to `dma_set_mask'
      xgene_enet_main.c:(.text+0x2883ec): undefined reference to `dma_supported'
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e148e1bf
  4. 23 8月, 2014 1 次提交
  5. 15 8月, 2014 1 次提交
    • T
      net: xgene: Check negative return value of xgene_enet_get_ring_size() · 9b9ba821
      Tobias Klauser 提交于
      xgene_enet_get_ring_size() returns a negative value in case of an error,
      but its only caller in xgene_enet_create_desc_ring() currently uses the
      return value directly as u32. Instead, check for a negative value first and
      error out in case. Also move the call to xgene_enet_get_ring_size() before
      devm_kzalloc() so we don't need to free anything in the error path.
      
      This fixes the following issue reported by the Coverity Scanner:
      
      ** CID 1231336:  Improper use of negative value  (NEGATIVE_RETURNS)
      /drivers/net/ethernet/apm/xgene/xgene_enet_main.c: 596 in xgene_enet_create_desc_ring()
      Signed-off-by: NTobias Klauser <tklauser@distanz.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9b9ba821
  6. 12 8月, 2014 1 次提交