lkml.org 
[lkml]   [2004]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH-2.4.26] cmpci cleanup

WIlly,

We have a cmpci update pending and this error is really harmless,
so lets wait on this one.

On Sun, Mar 28, 2004 at 01:57:18PM +0200, Willy TARREAU wrote:
> Hi Marcelo,
>
> compiling cmpci in 2.4.26-rc1 complains :
>
> cmpci.c: In function `cm_probe':
> cmpci.c:3308: warning: unused variable `reg_mask'
>
> Here is the patch. Please apply,
> Willy
>
> --- ./drivers/sound/cmpci.c.orig Sun Mar 28 11:19:12 2004
> +++ ./drivers/sound/cmpci.c Sun Mar 28 11:19:44 2004
> @@ -3305,7 +3305,6 @@
> struct cm_state *s;
> mm_segment_t fs;
> int i, val, ret;
> - unsigned char reg_mask = 0;
> struct {
> unsigned short deviceid;
> char *devicename;
> @@ -3381,6 +3380,7 @@
> printk(KERN_ERR "cmpci: io ports %#x-%#x in use\n", s->iomidi, s->iomidi+CM_EXTENT_MIDI-1);
> s->iomidi = 0;
> } else {
> + unsigned char reg_mask = 0;
> /* set IO based at 0x330 */
> switch (s->iomidi) {
> case 0x330:
> @@ -3415,6 +3415,7 @@
> printk(KERN_ERR "cmpci: io ports %#x-%#x in use\n", s->iosynth, s->iosynth+CM_EXTENT_SYNTH-1);
> s->iosynth = 0;
> } else {
> + unsigned char reg_mask = 0;
> /* set IO based at 0x388 */
> switch (s->iosynth) {
> case 0x388:
-
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/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:1.720 / U:0.600 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site