Skip to content

Commit

Permalink
ALSA: sh: Fix compile warning wrt const
Browse files Browse the repository at this point in the history
A long-standing compile warning was seen during build test:
  sound/sh/aica.c: In function 'load_aica_firmware':
  sound/sh/aica.c:521:25: warning: passing argument 2 of 'spu_memload' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

Fixes: 198de43 ("[ALSA] Add ALSA support for the SEGA Dreamcast PCM device")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai committed Jan 5, 2020
1 parent cabc046 commit f1dd479
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/sh/aica.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ static void spu_memset(u32 toi, u32 what, int length)
}

/* spu_memload - write to SPU address space */
static void spu_memload(u32 toi, void *from, int length)
static void spu_memload(u32 toi, const void *from, int length)
{
unsigned long flags;
u32 *froml = from;
const u32 *froml = from;
u32 __iomem *to = (u32 __iomem *) (SPU_MEMORY_BASE + toi);
int i;
u32 val;
Expand Down

0 comments on commit f1dd479

Please sign in to comment.