diff options
author | James Hilliard <[email protected]> | 2022-07-06 05:18:38 -0600 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2022-07-08 15:11:34 -0700 |
commit | 18410251f66aee7e82234073ce6656ca20a732a9 (patch) | |
tree | 2a64b1d5bc1baa1a6a1918814df997de2157d558 /tools/perf/scripts/python/sched-migration.py | |
parent | d1a6edecc1fddfb6ef92c8f720631d2c02bf2744 (diff) |
libbpf: Disable SEC pragma macro on GCC
It seems the gcc preprocessor breaks with pragmas when surrounding
__attribute__.
Disable these pragmas on GCC due to upstream bugs see:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55578
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90400
Fixes errors like:
error: expected identifier or '(' before '#pragma'
106 | SEC("cgroup/bind6")
| ^~~
error: expected '=', ',', ';', 'asm' or '__attribute__' before '#pragma'
114 | char _license[] SEC("license") = "GPL";
| ^~~
Signed-off-by: James Hilliard <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions