randconfig build error with next-20141121, in drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c

Oded Gabbay oded.gabbay at amd.com
Fri Nov 21 12:06:46 PST 2014



On 11/21/2014 07:04 PM, Jim Davis wrote:
> Building with the attached random configuration file,
> 
> drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c: In function ‘kfd_doorbell_init’:
> drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c:97:2: error: implicit
> declaration of function ‘ioremap’
> [-Werror=implicit-function-declaration]
>   kfd->doorbell_kernel_ptr = ioremap(kfd->doorbell_base,
>   ^
> drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c:97:27: warning: assignment
> makes pointer from integer without a cast [enabled by default]
>   kfd->doorbell_kernel_ptr = ioremap(kfd->doorbell_base,
>                            ^
> drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c: In function ‘write_kernel_doorbell’:
> drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c:217:3: error: implicit declaration of
> function ‘writel’ [-Werror=implicit-function-declaration]
>    writel(value, db);
>    ^
> cc1: some warnings being treated as errors
> make[4]: *** [drivers/gpu/drm/amd/amdkfd/kfd_doorbell.o] Error 1
> 

Thanks, I'm now sending a patch that fixes this problem.

	Oded


More information about the dri-devel mailing list