compile error in drivers/gpu/drm/radeon/radeon_state.o

Dave Airlie airlied at gmail.com
Tue Feb 21 12:16:42 PST 2012


2012/2/21 Toralf Förster <toralf.foerster at gmx.de>:
>
> Hello,
>
> the build of latest git (.config attached) failed, make ends with :
> ...
>  CC [M]  drivers/gpu/drm/radeon/radeon_cp.o
>  CC [M]  drivers/gpu/drm/radeon/radeon_state.o
> In file included from /home/tfoerste/devel/linux/arch/x86/include/asm/uaccess.h:573:0,
>                 from include/drm/drmP.h:64,
>                 from drivers/gpu/drm/radeon/radeon_state.c:30:
> In function 'copy_from_user',
>    inlined from 'radeon_cp_clear' at drivers/gpu/drm/radeon/radeon_state.c:2171:6:
> /home/tfoerste/devel/linux/arch/x86/include/asm/uaccess_32.h:211:26: error: call to 'copy_from_user_overflow' declared with attribute error:
> copy_from_user() buffer size is not provably correct
> make[4]: *** [drivers/gpu/drm/radeon/radeon_state.o] Error 1
> make[3]: *** [drivers/gpu/drm/radeon] Error 2
> make[2]: *** [drivers/gpu/drm] Error 2
> make[1]: *** [drivers/gpu] Error 2
> make: *** [drivers] Error 2
>
turn off CONFIG_DEBUG_STRICT_USER_COPY_CHECKS

Its a bug in gcc's checks code.

Dave.


More information about the dri-devel mailing list