diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-11-16 02:38:45 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-16 03:21:07 +0100 |
commit | c8402871d54a8e00016e040c1b8f5d31e96fcd94 (patch) | |
tree | 2e0fa6f7ba6c3c6bce8990ead49bdee64089951f /mm | |
parent | mm/page_alloc.c: broken deferred calculation (diff) | |
download | linux-c8402871d54a8e00016e040c1b8f5d31e96fcd94.tar.xz linux-c8402871d54a8e00016e040c1b8f5d31e96fcd94.zip |
mm/shmem.c: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Link: http://lkml.kernel.org/r/20171020191058.GA24427@embeddedor.com
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/shmem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index d6947d21f66c..ab22eaa2412e 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -4098,6 +4098,7 @@ bool shmem_huge_enabled(struct vm_area_struct *vma) if (i_size >= HPAGE_PMD_SIZE && i_size >> PAGE_SHIFT >= off) return true; + /* fall through */ case SHMEM_HUGE_ADVISE: /* TODO: implement fadvise() hints */ return (vma->vm_flags & VM_HUGEPAGE); |