projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d135e57
)
mm/shmem.c: mark expected switch fall-through
author
Gustavo A. R. Silva
<
[email protected]
>
Thu, 16 Nov 2017 01:38:45 +0000
(17:38 -0800)
committer
Linus Torvalds
<
[email protected]
>
Thu, 16 Nov 2017 02:21:07 +0000
(18:21 -0800)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Gustavo A. R. Silva <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/shmem.c
patch
|
blob
|
history
diff --git
a/mm/shmem.c
b/mm/shmem.c
index d6947d21f66c5c5dd6d136b64216d810e0ce75bd..ab22eaa2412eac0ef6c0bc434ed56b81cfe19432 100644
(file)
--- 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);