diff options
author | Andrii Nakryiko <[email protected]> | 2020-08-11 19:59:07 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2020-08-12 18:09:45 -0700 |
commit | 8faf7fc597d59b142af41ddd4a2d59485f75f88a (patch) | |
tree | a28cae3c9981bd366b20b36ba05b18281952ad73 /kernel/bpf/stackmap.c | |
parent | 068d9d1eba72423e99162aad3586727180715c2a (diff) |
tools/bpftool: Make skeleton code C++17-friendly by dropping typeof()
Seems like C++17 standard mode doesn't recognize typeof() anymore. This can
be tested by compiling test_cpp test with -std=c++17 or -std=c++1z options.
The use of typeof in skeleton generated code is unnecessary, all types are
well-known at the time of code generation, so remove all typeof()'s to make
skeleton code more future-proof when interacting with C++ compilers.
Fixes: 985ead416df3 ("bpftool: Add skeleton codegen command")
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'kernel/bpf/stackmap.c')
0 files changed, 0 insertions, 0 deletions