]> code.ossystems Code Review - openembedded-core.git/commit
ltp: replace 'inline' with 'static inline' for gcc 5.x
authorKai Kang <kai.kang@windriver.com>
Fri, 25 Sep 2015 04:30:39 +0000 (12:30 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 28 Sep 2015 10:58:28 +0000 (11:58 +0100)
commit90e28e33c408d1607ebe0afb0db97e39255395d1
tree45f7b894101ffa51d79e51b5c5b2c321f9e125f6
parentd19772d1f3c9d0a06c10dfb246bb156b575a14c5
ltp: replace 'inline' with 'static inline' for gcc 5.x

gcc 5.x defaults to -std=gnu11 instead of -std=gnu89 which causes
semantics for inline functions changes.

The standalone 'inline' causes error with gcc 5 such as:

git/testcases/kernel/syscalls/kill/kill10.c:355: undefined reference to
`k_sigaction'

Replace inline with static inline to be compatible with both gcc 4 and 5.

Found and test with configure:
SELECTED_OPTIMIZATION="-O0  -fno-omit-frame-pointer -g -pipe"

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-extended/ltp/ltp/0001-replace-inline-with-static-inline-for-gcc-5.x.patch [new file with mode: 0644]
meta/recipes-extended/ltp/ltp_20150420.bb