mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 01:13:11 +00:00
bpftool: Replace "__fallthrough" by a comment to address merge conflict
The recent support for inline annotations in control flow graphs generated by bpftool introduced the usage of the "__fallthrough" macro in a switch/case block in btf_dumper.c. This change went through the bpf-next tree, but resulted in a merge conflict in linux-next, because this macro has been renamed "fallthrough" (no underscores) in the meantime. To address the conflict, we temporarily switch to a simple comment instead of a macro. Related: commitf7a858bffc("tools: Rename __fallthrough to fallthrough") Fixes:9fd496848b("bpftool: Support inline annotations when dumping the CFG of a program") Reported-by: Sven Schnelle <[email protected]> Reported-by: Thomas Richter <[email protected]> Suggested-by: Daniel Borkmann <[email protected]> Signed-off-by: Quentin Monnet <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/all/[email protected]/ Link: https://lore.kernel.org/bpf/[email protected]/ Link: https://lore.kernel.org/bpf/[email protected]
This commit is contained in:
committed by
Andrii Nakryiko
parent
780c69830e
commit
4b7ef71ac9
@@ -835,7 +835,7 @@ static void dotlabel_puts(const char *s)
|
||||
case '|':
|
||||
case ' ':
|
||||
putchar('\\');
|
||||
__fallthrough;
|
||||
/* fallthrough */
|
||||
default:
|
||||
putchar(*s);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user