alsa-lib: Change function type to "static __inline__"
authorJesse Zhang <sen.zhang@windriver.com>
Mon, 17 Jun 2013 12:22:38 +0000 (12:22 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 18 Jun 2013 16:33:14 +0000 (17:33 +0100)
commitfc607c9fd24a0b39d6f91f57f2ab3f7488f90050
tree5813f447a7f77597ff46220031cdf337b8c03a6b
parent0607869441b9c0066782d0f29779719b163626ab
alsa-lib: Change function type to "static __inline__"

"extern __inline__ function()" is the inlined version that
can be used in this compilation unit, but there will be another
definition of this function somewhere, so compiler will not emit
any code for the function body. This causes problem in -O0,
where functions are never inlined, the function call is preserved,
but linker can't find the symbol, thus the error happens.

since no packages provide atomic_add and atomic_sub, and -O0
Optimize is hoped to keep for debug, we can change extern to
static to fix this problem.

(From OE-Core rev: d0af30c92fdea6f48afb4ab1fde69f1b636e8203)

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Jesse Zhang <sen.zhang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-multimedia/alsa/alsa-lib/fix-O0-Optimize-unable-inline-function.patch [new file with mode: 0644]
meta/recipes-multimedia/alsa/alsa-lib_1.0.26.bb