Skip to content

Commit f1dd479

Browse files
committed
ALSA: sh: Fix compile warning wrt const
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]>
1 parent cabc046 commit f1dd479

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/sh/aica.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ static void spu_memset(u32 toi, u32 what, int length)
101101
}
102102

103103
/* spu_memload - write to SPU address space */
104-
static void spu_memload(u32 toi, void *from, int length)
104+
static void spu_memload(u32 toi, const void *from, int length)
105105
{
106106
unsigned long flags;
107-
u32 *froml = from;
107+
const u32 *froml = from;
108108
u32 __iomem *to = (u32 __iomem *) (SPU_MEMORY_BASE + toi);
109109
int i;
110110
u32 val;

0 commit comments

Comments
 (0)