diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-02-06 17:31:52 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-02-10 08:26:38 +0100 |
commit | f4caf8993e92e65cf716cbd7c30091ab6dbeb8c7 (patch) | |
tree | 41026ddd3094e44b6b62098076ce6c8406ddc3e4 /sound/isa/sb | |
parent | 6a7322df2c2825bb2f45d247432a3b7d3f3ed233 (diff) | |
download | linux-stable-f4caf8993e92e65cf716cbd7c30091ab6dbeb8c7.tar.gz linux-stable-f4caf8993e92e65cf716cbd7c30091ab6dbeb8c7.tar.bz2 linux-stable-f4caf8993e92e65cf716cbd7c30091ab6dbeb8c7.zip |
ALSA: emu8000: Fix the cast to __user pointer
Fixes the sparse warnings. The cast to __user pointer needs __force:
sound/isa/sb/emu8000_pcm.c:528:9: warning: cast removes address space '<asn:1>' of expression
No functional changes, just sparse warning fixes.
Link: https://lore.kernel.org/r/20200206163152.6073-4-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa/sb')
-rw-r--r-- | sound/isa/sb/emu8000_pcm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/isa/sb/emu8000_pcm.c b/sound/isa/sb/emu8000_pcm.c index e377ac93f37f..8e8257c574b0 100644 --- a/sound/isa/sb/emu8000_pcm.c +++ b/sound/isa/sb/emu8000_pcm.c @@ -435,7 +435,7 @@ enum { #define LOOP_WRITE(rec, offset, _buf, count, mode) \ do { \ struct snd_emu8000 *emu = (rec)->emu; \ - unsigned short *buf = (unsigned short *)(_buf); \ + unsigned short *buf = (__force unsigned short *)(_buf); \ snd_emu8000_write_wait(emu, 1); \ EMU8000_SMALW_WRITE(emu, offset); \ while (count > 0) { \ @@ -492,7 +492,7 @@ static int emu8k_pcm_silence(struct snd_pcm_substream *subs, #define LOOP_WRITE(rec, pos, _buf, count, mode) \ do { \ struct snd_emu8000 *emu = rec->emu; \ - unsigned short *buf = (unsigned short *)(_buf); \ + unsigned short *buf = (__force unsigned short *)(_buf); \ snd_emu8000_write_wait(emu, 1); \ EMU8000_SMALW_WRITE(emu, pos + rec->loop_start[0]); \ if (rec->voices > 1) \ |