Re: [RFC PATCH] sna: Fix build with gcc 5.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 24, 2015 at 09:43:37AM +0200, Olivier Fourdan wrote:
> gcc generates an error at build time because it fails to inline some
> functions:
> 
>   blt.c: In function 'affine_blt':
>   blt.c:980:1: error: inlining failed in call to always_inline
>   'bilinear_weight': optimization level attribute mismatch
>    bilinear_weight(pixman_fixed_t x)
> 
>   blt.c:1164:7: error: called from here
>       fy = bilinear_weight(y1);
>          ^
>   blt.c:980:1: error: inlining failed in call to always_inline
>   'bilinear_weight': optimization level attribute mismatch
>    bilinear_weight(pixman_fixed_t x)
> 
>   blt.c:1163:7: error: called from here
>       fx = bilinear_weight(x1);
>          ^
>   blt.c:989:1: error: inlining failed in call to always_inline
>   'bilinear_interpolation': optimization level attribute mismatch
>    bilinear_interpolation(uint32_t tl, uint32_t tr,
>    ^
>   blt.c:1207:11: error: called from here
>       b[i] = bilinear_interpolation(tl, tr, bl, br, fx, fy);
>            ^
> 
> Do not force inlining of these functions and let the compiler decide to
> avoid the compilation failure.
> 
> Signed-off-by: Olivier Fourdan <ofourdan@xxxxxxxxxx>

Fixed up the other two force_inlines there and pushed,

commit 9b9643171359194478ab9f7126012b659d2ae7a1
Author: Olivier Fourdan <ofourdan@xxxxxxxxxx>
Date:   Fri Apr 24 09:43:37 2015 +0200

    sna: Fix build with gcc 5.0

Thanks,
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx





[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux