lkml.org 
[lkml]   [2009]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] snd: aica - fix annoying compiler warning
From
Date
On Mon, 2009-03-16 at 07:31 +0100, Takashi Iwai wrote:
> At Sun, 15 Mar 2009 22:05:40 +0000,
> Adrian McMenamin wrote:
> >
> > Cast pointer to data member of struct firmware as a void to end an
> > annoying compiler warning.
> >
> > fix annoying compiler warning
> >
> > Signed-off-by: Adrian McMenamin <adrian@mcmen.demon.co.uk>
> > ---
> >
> > diff --git a/sound/sh/aica.c b/sound/sh/aica.c
> > index 7c920f3..822b119 100644
> > --- a/sound/sh/aica.c
> > +++ b/sound/sh/aica.c
> > @@ -567,7 +567,7 @@ static int load_aica_firmware(void)
> > return err;
> > /* write firware into memory */
> > spu_disable();
> > - spu_memload(0, fw_entry->data, fw_entry->size);
> > + spu_memload(0, (void *)fw_entry->data, fw_entry->size);
>
> IMO, it's better to fix spu_memload() to take const pointer instead of
> cast.
>

If that's what you want I can do that but it adds to kernel bloat by
having two functions essentially do the same thing.



\
 
 \ /
  Last update: 2009-03-16 08:57    [W:0.098 / U:0.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site