]> code.ossystems Code Review - openembedded-core.git/commit
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>
Mon, 17 Jun 2013 16:02:46 +0000 (17:02 +0100)
commitd0af30c92fdea6f48afb4ab1fde69f1b636e8203
tree4c044863dd3119701571e85e17740a1dc64cefe6
parent682861166f39fbdcd0c9b923139faab2d40362cf
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.

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