From: Takashi Iwai Date: Mon, 10 Sep 2007 22:35:06 +0000 (+0200) Subject: [ALSA] Kill useless volatile in pcm.h X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=503fc85a3b15b0e939ad9672e376ffc9c4840591;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [ALSA] Kill useless volatile in pcm.h The volatile prefix is just useless there. Let's kill them, and then gcc will be happier, too. sound/acore/pcm.c:867: warning: passing argument 1 of ‘__constant_c_and_count_memset’ discards qualifiers from pointer target type Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- diff --git a/include/sound/pcm.h b/include/sound/pcm.h index 76b34b5841eb..805d7207f08b 100644 --- a/include/sound/pcm.h +++ b/include/sound/pcm.h @@ -301,8 +301,8 @@ struct snd_pcm_runtime { union snd_pcm_sync_id sync; /* hardware synchronization ID */ /* -- mmap -- */ - volatile struct snd_pcm_mmap_status *status; - volatile struct snd_pcm_mmap_control *control; + struct snd_pcm_mmap_status *status; + struct snd_pcm_mmap_control *control; /* -- locking / scheduling -- */ wait_queue_head_t sleep;