Skip to content

Commit 0679d29

Browse files
rddunlapguoren83
authored andcommitted
csky: fix syscache.c fallthrough warning
This case of the switch statement falls through to the following case. This appears to be on purpose, so declare it as OK. ../arch/csky/mm/syscache.c: In function '__do_sys_cacheflush': ../arch/csky/mm/syscache.c:17:3: warning: this statement may fall through [-Wimplicit-fallthrough=] 17 | flush_icache_mm_range(current->mm, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 18 | (unsigned long)addr, | ~~~~~~~~~~~~~~~~~~~~ 19 | (unsigned long)addr + bytes); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/csky/mm/syscache.c:20:2: note: here 20 | case DCACHE: | ^~~~ Fixes: 997153b ("csky: Add flush_icache_mm to defer flush icache all") Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Guo Ren <[email protected]> Cc: [email protected] Cc: Arnd Bergmann <[email protected]>
1 parent 0b1f557 commit 0679d29

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/csky/mm/syscache.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ SYSCALL_DEFINE3(cacheflush,
1717
flush_icache_mm_range(current->mm,
1818
(unsigned long)addr,
1919
(unsigned long)addr + bytes);
20+
fallthrough;
2021
case DCACHE:
2122
dcache_wb_range((unsigned long)addr,
2223
(unsigned long)addr + bytes);

0 commit comments

Comments
 (0)