Re: [PATCH] staging: wilc1000: modify type casting warning

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

 





On 2015년 06월 16일 16:09, Sudip Mukherjee wrote:
On Tue, Jun 16, 2015 at 03:46:04PM +0900, Dean Lee wrote:
modify message "warning: cast from pointer to integer of different size".
add type cast 'uintptr_t'.
---
[]
@@ -620,7 +621,7 @@ static s32 Handle_SetChannel(void *drvHandler, tstrHostIFSetChan *pstrHostIFSetC
PRINT_D(HOSTINF_DBG, "Setting channel\n");
  	/*Sending Cfg*/
-	s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, (u32)pstrWFIDrv);
+	s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, (u32)(uintptr_t)pstrWFIDrv);
two typecasts??? there has to be a better solution than this.

regards
sudip
i see your message when after send mail...:'-(
i try change them use your comment.

(u32)(uintptr_t) -> (uintptr_t)

build works is fine.
but i try test in real target board.

i'll send patch after check real target work.

thanks your comment.
B.R
dean.
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux