From: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
To: Samuel Ortiz <sameo@linux.intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-kernel@vger.kernel.org, trivial@kernel.org
Subject: [PATCH][TRIVIAL] mfd: twl6030: Add intermediate cast to uintptr_t before casting to pointer.
Date: Thu, 26 Apr 2012 00:32:30 +0100 [thread overview]
Message-ID: <1335396750-18950-1-git-send-email-krzysztof.wilczynski@linux.com> (raw)
This is to address the following warning during compilation time:
drivers/mfd/twl6030-irq.c: In function ‘twl6030_init_irq’:
drivers/mfd/twl6030-irq.c:398: warning: cast to pointer from integer of different size
drivers/mfd/twl6030-irq.c:415: warning: cast to pointer from integer of different size
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
---
drivers/mfd/twl6030-irq.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mfd/twl6030-irq.c b/drivers/mfd/twl6030-irq.c
index b76902f..ddaed2d 100644
--- a/drivers/mfd/twl6030-irq.c
+++ b/drivers/mfd/twl6030-irq.c
@@ -395,7 +395,7 @@ int twl6030_init_irq(struct device *dev, int irq_num)
for (i = irq_base; i < irq_end; i++) {
irq_set_chip_and_handler(i, &twl6030_irq_chip,
handle_simple_irq);
- irq_set_chip_data(i, (void *)irq_num);
+ irq_set_chip_data(i, (void *)(uintptr_t)irq_num);
activate_irq(i);
}
@@ -412,7 +412,7 @@ int twl6030_init_irq(struct device *dev, int irq_num)
goto fail_irq;
}
- task = kthread_run(twl6030_irq_thread, (void *)irq_num, "twl6030-irq");
+ task = kthread_run(twl6030_irq_thread, (void *)(uintptr_t)irq_num, "twl6030-irq");
if (IS_ERR(task)) {
dev_err(dev, "could not create irq %d thread!\n", irq_num);
status = PTR_ERR(task);
--
1.7.7.1
next reply other threads:[~2012-04-25 23:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-25 23:32 Krzysztof Wilczynski [this message]
2012-04-26 0:06 ` Thomas Gleixner
2012-04-26 14:51 ` Krzysztof Wilczynski
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=1335396750-18950-1-git-send-email-krzysztof.wilczynski@linux.com \
--to=krzysztof.wilczynski@linux.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sameo@linux.intel.com \
--cc=trivial@kernel.org \
/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®