[PATCH] lib: bzip2: remove inlining

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Thu Feb 23 08:15:25 CET 2023


Compiling sandbox_defconfig with CONFIG_CC_OPTIMIZE_FOR_DEBUG=y and
gcc 12.2.0-14ubuntu1 leads to a build error:

    lib/bzip2/bzlib.c: In function 'BZ2_decompress':
    lib/bzip2/bzlib.c:726:18: error: inlining failed in call to
    'always_inline' 'BZ2_indexIntoF': function not considered for inlining
      726 | __inline__ Int32 BZ2_indexIntoF ( Int32 indx, Int32 *cftab )
          |                  ^

Leave it to the compiler if it inlines or not.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
 lib/bzip2/bzlib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bzip2/bzlib.c b/lib/bzip2/bzlib.c
index bd589aa810..b28f14b540 100644
--- a/lib/bzip2/bzlib.c
+++ b/lib/bzip2/bzlib.c
@@ -723,7 +723,7 @@ void unRLE_obuf_to_output_FAST ( DState* s )
 
 
 /*---------------------------------------------------*/
-__inline__ Int32 BZ2_indexIntoF ( Int32 indx, Int32 *cftab )
+Int32 BZ2_indexIntoF(Int32 indx, Int32 *cftab)
 {
    Int32 nb, na, mid;
    nb = 0;
-- 
2.38.1



More information about the U-Boot mailing list