Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1441060
| From | Vinod Koul <vinod.koul@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] dmaengine: zynqmp: avoid cast warning |
| Date | 2016-07-12 06:30 +0200 |
| Message-ID | <rTXux-8oe-3@gated-at.bofh.it> (permalink) |
| References | <rTRfr-4dj-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Jul 11, 2016 at 11:46:09PM +0200, Arnd Bergmann wrote: > The newly added zynqmp_dma driver produces a warning on 32-bit architectures > when dma_addr_t is 64-bit wide: > > drivers/dma/xilinx/zynqmp_dma.c: In function 'zynqmp_dma_config_sg_ll_desc': > drivers/dma/xilinx/zynqmp_dma.c:321:9: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] > ((dma_addr_t)sdesc - (dma_addr_t)chan->desc_pool_v); > ^ > drivers/dma/xilinx/zynqmp_dma.c:321:29: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] > ((dma_addr_t)sdesc - (dma_addr_t)chan->desc_pool_v); > > This changes the cast to the more appropriate uintptr_t. Applied, thanks -- ~Vinod
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] dmaengine: zynqmp: avoid cast warning Arnd Bergmann <arnd@arndb.de> - 2016-07-11 23:50 +0200 Re: [PATCH] dmaengine: zynqmp: avoid cast warning Vinod Koul <vinod.koul@intel.com> - 2016-07-12 06:30 +0200
csiph-web