OSDN Git Service

ALSA: emu10k1: Fix annotation and cast for the recent uapi header change
authorTakashi Iwai <tiwai@suse.de>
Sun, 2 Feb 2020 09:07:23 +0000 (10:07 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sun, 2 Feb 2020 09:08:24 +0000 (10:08 +0100)
commit81b450909bfb4b71b4ae1c07add4feada32892bd
treeac9ca18f563b5546aa18a65e2806d5d3824e0855
parent2acf25f13ebe8beb40e97a1bbe76f36277c64f1e
ALSA: emu10k1: Fix annotation and cast for the recent uapi header change

The recent sound/emu10k1.h uapi header change by the commit
2e4688676392 ("ALSA: emu10k1: Make uapi/emu10k1.h compilable again")
made sparse angry because of the inconsistency of __user annotation
and the own ctl id struct that were changed in uapi header.

This patch addresses those by adjusting the cast and annotations
properly again.

Fixes: 2e4688676392 ("ALSA: emu10k1: Make uapi/emu10k1.h compilable again")
Link: https://lore.kernel.org/r/20200202090724.18232-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/emu10k1/emufx.c