Re: [PATCH v2] spi: s3c64xx: fix casting warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 17, 2013 at 05:54:11PM +0900, Jingoo Han wrote:
> sdd->ops->request is unsigned int, not unsigned long.
> Also, sdd->rx_dma.ch is a 'struct dma_chan *'.
> Thus, (void *) is converted to (struct dma_chan *)(unsigned long),
> in order to fix possible sparse warnings.

Applied, though only the cast to unsigned long should actually be needed
- casting to void * should be good for any pointer so changing to the
specific struct shouldn't be essential (might catch issues due to
future API changes though).

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux