[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1391497286-6951-1-git-send-email-sj38.park@gmail.com>
Date: Tue, 4 Feb 2014 16:01:26 +0900
From: SeongJae Park <sj38.park@...il.com>
To: gregkh@...uxfoundation.org, dulshani.gunawardhana89@...il.com,
shaun@...source.ca, lisa@...apiadmin.com, sima.baymani@...il.com
Cc: devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
SeongJae Park <sj38.park@...il.com>
Subject: [PATCH] staging: cxt1e1: fix pointer-integer size mismatch warning
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@...il.com>
---
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists