[PATCH] staging: cxt1e1: fix pointer-integer size mismatch warning

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

 



Fix the pointer-integer size mismatch warning below:
	drivers/staging/cxt1e1/functions.c: In function ‘VMETRO_TRACE’:
	drivers/staging/cxt1e1/functions.c:268:21: warning: cast from pointer
			to integer of different size [-Wpointer-to-int-cast]
	     u_int32_t   y = (u_int32_t) x;
			     ^

Signed-off-by: SeongJae Park <sj38.park@xxxxxxxxx>
---
 drivers/staging/cxt1e1/functions.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/cxt1e1/functions.c b/drivers/staging/cxt1e1/functions.c
index 95218e2..8f19a39 100644
--- a/drivers/staging/cxt1e1/functions.c
+++ b/drivers/staging/cxt1e1/functions.c
@@ -265,7 +265,7 @@ extern ci_t *CI;                /* dummy pointer to board ZERO's data */
 void
 VMETRO_TRACE (void *x)
 {
-    u_int32_t   y = (u_int32_t) x;
+    u_int32_t   y = (u_int32_t)(uintptr_t) x;
 
     pci_write_32 ((u_int32_t *) &CI->cpldbase->leds, y);
 }
-- 
1.8.3.2

_______________________________________________
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