From: Borislav Petkov <petkov@uni-muenster.de>
To: linux-kernel@vger.kernel.org
Cc: bbpetkov@yahoo.de
Subject: [PATCH] 2.6.9-rc3 fix warnings in sound/drivers/opl3/opl3_lib.c
Date: Thu, 30 Sep 2004 14:28:53 +0200 [thread overview]
Message-ID: <20040930122853.GA28332@none> (raw)
Hi there,
I get these warnings while compiling 2.6.9-rc3:
sound/drivers/opl3/opl3_lib.c: In function `snd_opl3_cs4281_command':
sound/drivers/opl3/opl3_lib.c:101: warning: passing arg 2 of `writel' makes pointer from integer without a cast
sound/drivers/opl3/opl3_lib.c:104: warning: passing arg 2 of `writel' makes pointer from integer without a cast
Hope this fix is correct.
Regards,
Boris.
--- sound/drivers/opl3/opl3_lib.c.orig 2004-09-30 14:22:08.000000000 +0200
+++ sound/drivers/opl3/opl3_lib.c 2004-09-30 14:23:50.000000000 +0200
@@ -98,10 +98,10 @@ void snd_opl3_cs4281_command(opl3_t * op
spin_lock_irqsave(&opl3->reg_lock, flags);
- writel((unsigned int)cmd, port << 2);
+ writel((unsigned int)cmd, (void __iomem *)(port << 2));
udelay(10);
- writel((unsigned int)val, (port + 1) << 2);
+ writel((unsigned int)val, (void __iomem *)((port + 1) << 2));
udelay(30);
spin_unlock_irqrestore(&opl3->reg_lock, flags);
next reply other threads:[~2004-09-30 12:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-30 12:28 Borislav Petkov [this message]
2004-09-30 15:25 ` [PATCH] 2.6.9-rc3 fix warnings in sound/drivers/opl3/opl3_lib.c viro
2004-09-30 15:52 ` viro
2004-09-30 16:07 ` Takashi Iwai
2004-09-30 16:50 ` Takashi Iwai
2004-09-30 17:12 ` Takashi Iwai
2004-09-30 17:01 ` Borislav Petkov
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=20040930122853.GA28332@none \
--to=petkov@uni-muenster.de \
--cc=bbpetkov@yahoo.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