[PATCH] 2.6.9-rc3 fix warnings in sound/drivers/opl3/opl3_lib.c
From: Borislav Petkov (petkov_at_uni-muenster.de)
Date: 09/30/04
- Previous message: Frederic Dumoulin: "building external library under 2.6"
- Next in thread: viro_at_parcelfarce.linux.theplanet.co.uk: "Re: [PATCH] 2.6.9-rc3 fix warnings in sound/drivers/opl3/opl3_lib.c"
- Reply: viro_at_parcelfarce.linux.theplanet.co.uk: "Re: [PATCH] 2.6.9-rc3 fix warnings in sound/drivers/opl3/opl3_lib.c"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Sep 2004 14:28:53 +0200 To: linux-kernel@vger.kernel.org
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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Frederic Dumoulin: "building external library under 2.6"
- Next in thread: viro_at_parcelfarce.linux.theplanet.co.uk: "Re: [PATCH] 2.6.9-rc3 fix warnings in sound/drivers/opl3/opl3_lib.c"
- Reply: viro_at_parcelfarce.linux.theplanet.co.uk: "Re: [PATCH] 2.6.9-rc3 fix warnings in sound/drivers/opl3/opl3_lib.c"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: 2.4.22 hangs with pcmcia and linux-wlan
... If I use the kernel tree's code, I can insmod okay, but my ... >> Regards,
... Nigel Cunningham ... send the line "unsubscribe linux-kernel" in ...
(Linux-Kernel) - Re: [2.6 patch] SCSI_SATA has to be a tristate
... > Thanks for this report, the fix is below. ... Best regards,
... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - [PATCH] loop: fixing cryptoloop troubles.
... Here is the trivial but important fix. ... Regards, Clemens ...
send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - Assalam Alaikum
... health i hope fine, i want to ask you if your interesting to help me, ... positive
response i will forward all the documents to you base on interest. ... extend my regards
to your family. ... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - Re: [PATCH] 2.6, 2.4, Nforce2, Experimental idle halt workaround instead of apic ack delay.
... never seem to turn your boxes off, but maybe it could proof useful in the ...
Regards, ... including having one less fan sucking air out the back of the ...
send the line "unsubscribe linux-kernel" in ... (Linux-Kernel)