]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ALSA: memalloc: Add fall-through annotation
authorTakashi Iwai <tiwai@suse.de>
Thu, 4 Oct 2018 17:54:51 +0000 (19:54 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 12 Oct 2018 07:31:23 +0000 (09:31 +0200)
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>
sound/core/memalloc.c

index aa266907ec9ba9d8fed775e5196b8cb56ae00ad7..59a4adc286ed77bb647788706a6ebd9323a1b640 100644 (file)
@@ -203,6 +203,7 @@ int snd_dma_alloc_pages(int type, struct device *device, size_t size,
                 */
                dmab->dev.type = SNDRV_DMA_TYPE_DEV;
 #endif /* CONFIG_GENERIC_ALLOCATOR */
+               /* fall through */
        case SNDRV_DMA_TYPE_DEV:
        case SNDRV_DMA_TYPE_DEV_UC:
                snd_malloc_dev_pages(dmab, size);