Skip to content

Commit

Permalink
dmaengine: ioatdma: fix zero day warning on incompatible pointer type
Browse files Browse the repository at this point in the history
The 32bit build is creating this warning. Since we don't expect anyone
actually use this on 32bit, restrict ioatdma to be built only on x86_64.
This issue has long existed and only reason it's surfacing due to code
refactoring.

   drivers/dma/ioat/dma.c: In function 'ioat_timer_event':
>> drivers/dma/ioat/dma.c:870:39: warning: passing argument 2 of 'ioat_cleanup_preamble' from incompatible pointer type
     if (ioat_cleanup_preamble(ioat_chan, &phys_complete))
                                          ^
   drivers/dma/ioat/dma.c:577:13: note: expected 'u64 *' but argument is of type 'dma_addr_t *'
    static bool ioat_cleanup_preamble(struct ioatdma_chan *ioat_chan,
                ^

Signed-off-by: Dave Jiang <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
  • Loading branch information
davejiang authored and Vinod Koul committed Aug 21, 2015
1 parent 23a1ec3 commit aaecdeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ config LPC18XX_DMAMUX

config INTEL_IOATDMA
tristate "Intel I/OAT DMA support"
depends on PCI && X86
depends on PCI && X86_64
select DMA_ENGINE
select DMA_ENGINE_RAID
select DCA
Expand Down

0 comments on commit aaecdeb

Please sign in to comment.