-
由 Andrii Nakryiko 提交于
mainline inclusion from mainline-5.13-rc1 commit 0fec7a3c category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I5EUVD CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0fec7a3cee1cf8e4f86ff563d229408ccbdc2d66 ------------------------------------------------- When used on externs SEC() macro will trigger compilation warning about inapplicable `__attribute__((used))`. That's expected for extern declarations, so suppress it with the corresponding _Pragma. Signed-off-by: NAndrii Nakryiko <andrii@kernel.org> Signed-off-by: NAlexei Starovoitov <ast@kernel.org> Acked-by: NYonghong Song <yhs@fb.com> Link: https://lore.kernel.org/bpf/20210423181348.1801389-4-andrii@kernel.org (cherry picked from commit 0fec7a3c) Signed-off-by: NWang Yufen <wangyufen@huawei.com>
9bd3b0f4