/ 详情

【arm】gcc添加限制max-inline-insns-single-O2=30导致aarch64上kernel-devel原子操作编译报错

Backlog
Task
Opened this issue  
2021-01-29 10:27

环境:
aarch64
gcc-c++-9.3.1-20210115.15.oe1
kernel-devel-5.10.0-1.0.0.8.oe1

报错接口:atomic_dec

[ 4119s] In file included from ./include/linux/atomic.h:7,
[ 4119s]                  from ./include/asm-generic/bitops/atomic.h:5,
[ 4119s]                  from ./arch/arm64/include/asm/bitops.h:26,
[ 4119s]                  from ./include/linux/bitops.h:29,
[ 4119s]                  from ./include/linux/kernel.h:12,
[ 4119s]                  from ./include/linux/list.h:9,
[ 4119s]                  from ./include/linux/rculist.h:10,
[ 4119s]                  from ./include/linux/pid.h:5,
[ 4119s]                  from ./include/linux/sched.h:14,
[ 4119s]                  from ./include/linux/ratelimit.h:6,
[ 4119s]                  from ./include/linux/dev_printk.h:16,
[ 4119s]                  from ./include/linux/device.h:15,
[ 4119s]                  from /home/abuild/rpmbuild/BUILD/dpdk-19.11/arm64-armv8a-linux-gcc/build/kernel/linux/igb_uio/igb_uio.c:8:
[ 4119s] ./include/linux/atomic-arch-fallback.h: In function 'igbuio_pci_open':
[ 4119s] ./arch/arm64/include/asm/atomic.h:20:20: error: inlining failed in call to 'arch_atomic_sub.constprop': --param max-inline-insns-single-O2 limit reached [-Werror=inline]
[ 4119s]    20 | static inline void arch_##op(int i, atomic_t *v)   \
[ 4119s]       |                    ^~~~~
[ 4119s] ./arch/arm64/include/asm/atomic.h:30:1: note: in expansion of macro 'ATOMIC_OP'
[ 4119s]    30 | ATOMIC_OP(atomic_sub)
[ 4119s]       | ^~~~~~~~~
Attachments

Comments (1)

LemmyHuang created任务
LemmyHuang set related repository to openEuler/kernel
展开全部操作日志

Hey LemmyHuang, Welcome to openEuler Community.
All of the projects in openEuler Community are maintained by @openeuler-ci-bot .
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md to find the details.

Sign in to comment

状态
Assignees
Labels
Projects
Milestones
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(2)
5329419 openeuler ci bot 1578984659 7499664 lemmyhuang 1611995445