mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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: 198de43d75
("[ALSA] Add ALSA support for the SEGA Dreamcast PCM device")
Link: https://lore.kernel.org/r/20200105144823.29547-69-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
cabc046807
commit
f1dd4795b1
1 changed files with 2 additions and 2 deletions
|
@ -101,10 +101,10 @@ static void spu_memset(u32 toi, u32 what, int length)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* spu_memload - write to SPU address space */
|
/* 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;
|
unsigned long flags;
|
||||||
u32 *froml = from;
|
const u32 *froml = from;
|
||||||
u32 __iomem *to = (u32 __iomem *) (SPU_MEMORY_BASE + toi);
|
u32 __iomem *to = (u32 __iomem *) (SPU_MEMORY_BASE + toi);
|
||||||
int i;
|
int i;
|
||||||
u32 val;
|
u32 val;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue