summaryrefslogtreecommitdiff
path: root/tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorJose E. Marchesi <jose.marchesi@oracle.com>2026-01-06 18:36:50 +0100
committerAlexei Starovoitov <ast@kernel.org>2026-01-06 21:04:11 -0800
commit681600647c59050546939da5e490c736e567fe91 (patch)
tree5cb84f892acfadaaa1121c29a076c45e0d08dc51 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
parent97fb54d86d2194ea8a4cbe6cf074e6ba47b054ea (diff)
bpf: GCC requires function attributes before the declarator
GCC insists in placing attributes before the declarators in function declarations. Now that GCC supports btf_decl_tag and therefore __tag1 and __tag2 expand to actual attributes, the compiler is complaining about it for static __noinline int foo(int x __tag1 __tag2) __tag1 __tag2 progs/test_btf_decl_tag.c:36:1: error: attributes should be specified \ before the declarator in a function definition This patch simply places the tags before the declarator. Signed-off-by: Jose E. Marchesi <jose.marchesi@oracle.com> Cc: david.faust@oracle.com Cc: cupertino.miranda@oracle.com Cc: Eduard Zingerman <eddyz87@gmail.com> Cc: Yonghong Song <yonghong.song@linux.dev> Link: https://lore.kernel.org/r/20260106173650.18191-3-jose.marchesi@oracle.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions