From: SeongJae Park <sj38.park@gmail.com>
To: gregkh@linuxfoundation.org, dulshani.gunawardhana89@gmail.com,
shaun@XResource.ca, lisa@xenapiadmin.com, sima.baymani@gmail.com
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org,
SeongJae Park <sj38.park@gmail.com>
Subject: [PATCH] staging: cxt1e1: fix pointer-integer size mismatch warning
Date: Tue, 4 Feb 2014 16:01:26 +0900 [thread overview]
Message-ID: <1391497286-6951-1-git-send-email-sj38.park@gmail.com> (raw)
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@gmail.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
next reply other threads:[~2014-02-04 7:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-04 7:01 SeongJae Park [this message]
2014-02-04 8:23 ` Dan Carpenter
2014-02-04 8:29 ` SeongJae Park
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1391497286-6951-1-git-send-email-sj38.park@gmail.com \
--to=sj38.park@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=dulshani.gunawardhana89@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lisa@xenapiadmin.com \
--cc=shaun@XResource.ca \
--cc=sima.baymani@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®