From: Frank Lichtenheld <frank@lichtenheld.de>
To: Karsten Keil <kkeil@suse.de>
Cc: linux-kernel@vger.kernel.org,
Frank Lichtenheld <frank@lichtenheld.de>,
Jeff Garzik <jeff@garzik.org>
Subject: [PATCH] [ISDN] sc: Really, really fix warning
Date: Wed, 14 Nov 2007 15:46:20 +0100 [thread overview]
Message-ID: <1195051581-15842-1-git-send-email-frank@lichtenheld.de> (raw)
CC [M] drivers/isdn/sc/shmem.o
drivers/isdn/sc/shmem.c: In function ‘memcpy_toshmem’:
drivers/isdn/sc/shmem.c:53: warning: passing argument 1 of ‘memcpy_toio’ makes pointer from integer without a cast
9317d4313e0cd51b2256ea9a9316f2d8561e37a8 claimed to fix it, but
it didn't.
CC: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.de>
---
drivers/isdn/sc/shmem.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/isdn/sc/shmem.c b/drivers/isdn/sc/shmem.c
index e0331e0..06a5554 100644
--- a/drivers/isdn/sc/shmem.c
+++ b/drivers/isdn/sc/shmem.c
@@ -50,7 +50,7 @@ void memcpy_toshmem(int card, void *dest, const void *src, size_t n)
outb(((sc_adapter[card]->shmem_magic + ch * SRAM_PAGESIZE) >> 14) | 0x80,
sc_adapter[card]->ioport[sc_adapter[card]->shmem_pgport]);
- memcpy_toio(sc_adapter[card]->rambase + dest_rem, src, n);
+ memcpy_toio((void*)(sc_adapter[card]->rambase + dest_rem), src, n);
spin_unlock_irqrestore(&sc_adapter[card]->lock, flags);
pr_debug("%s: set page to %#x\n",sc_adapter[card]->devicename,
((sc_adapter[card]->shmem_magic + ch * SRAM_PAGESIZE)>>14)|0x80);
--
1.5.3.4
next reply other threads:[~2007-11-14 14:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-14 14:46 Frank Lichtenheld [this message]
2007-11-14 14:46 ` [PATCH] [ISDN] sc: Fix sndpkt to have the correct number of arguments Frank Lichtenheld
2007-11-14 15:05 ` [PATCH] [ISDN] sc: Really, really fix warning Karsten Keil
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=1195051581-15842-1-git-send-email-frank@lichtenheld.de \
--to=frank@lichtenheld.de \
--cc=jeff@garzik.org \
--cc=kkeil@suse.de \
--cc=linux-kernel@vger.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®