diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-10-04 13:54:51 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-10-12 03:31:23 -0400 |
commit | 3c4cfa7bf6075be035cff3cac0986395f6fca32b (patch) | |
tree | 51534b235f31be0d9ab7c94db116a24588d1634f /sound/core/memalloc.c | |
parent | e953c7ecdf07f23310cd631913ee829c38de3aa2 (diff) |
ALSA: memalloc: Add fall-through annotation
As a preparatory patch for the upcoming -Wimplicit-fallthrough
compiler checks, add the "fall through" annotation in
snd_dma_alloc_pages(). Note that this seems necessary to be put
exactly before the next label, so it's outside the ifdef block.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/memalloc.c')
-rw-r--r-- | sound/core/memalloc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/core/memalloc.c b/sound/core/memalloc.c index aa266907ec9b..59a4adc286ed 100644 --- a/sound/core/memalloc.c +++ b/sound/core/memalloc.c | |||
@@ -203,6 +203,7 @@ int snd_dma_alloc_pages(int type, struct device *device, size_t size, | |||
203 | */ | 203 | */ |
204 | dmab->dev.type = SNDRV_DMA_TYPE_DEV; | 204 | dmab->dev.type = SNDRV_DMA_TYPE_DEV; |
205 | #endif /* CONFIG_GENERIC_ALLOCATOR */ | 205 | #endif /* CONFIG_GENERIC_ALLOCATOR */ |
206 | /* fall through */ | ||
206 | case SNDRV_DMA_TYPE_DEV: | 207 | case SNDRV_DMA_TYPE_DEV: |
207 | case SNDRV_DMA_TYPE_DEV_UC: | 208 | case SNDRV_DMA_TYPE_DEV_UC: |
208 | snd_malloc_dev_pages(dmab, size); | 209 | snd_malloc_dev_pages(dmab, size); |