Re: [drm-intel:topic/drm-misc 2/2] drivers/gpu/drm/vgem/vgem_drv.c:238:53: error: 'PAGE_KERNEL_IO' undeclared

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

 



On Tue, Jul 12, 2016 at 07:23:55PM +0800, kbuild test robot wrote:
> tree:   git://anongit.freedesktop.org/drm-intel topic/drm-misc
> head:   e6f15b763ab2bc47000ec302123e2fb3bf2ad7d4
> commit: e6f15b763ab2bc47000ec302123e2fb3bf2ad7d4 [2/2] drm/vgem: Enable dmabuf interface for export
> config: sparc64-allmodconfig (attached as .config)
> compiler: sparc64-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205
> reproduce:
>         wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         git checkout e6f15b763ab2bc47000ec302123e2fb3bf2ad7d4
>         # save the attached .config to linux build tree
>         make.cross ARCH=sparc64 
> 
> All errors (new ones prefixed by >>):
> 
>    drivers/gpu/drm/vgem/vgem_drv.c: In function 'vgem_prime_vmap':
> >> drivers/gpu/drm/vgem/vgem_drv.c:238:53: error: 'PAGE_KERNEL_IO' undeclared (first use in this function)
>      addr = vmap(pages, n_pages, 0, pgprot_writecombine(PAGE_KERNEL_IO));
>                                                         ^
>    drivers/gpu/drm/vgem/vgem_drv.c:238:53: note: each undeclared identifier is reported only once for each function it appears in
> 
> vim +/PAGE_KERNEL_IO +238 drivers/gpu/drm/vgem/vgem_drv.c
> 
>    232		void *addr;
>    233	
>    234		pages = drm_gem_get_pages(obj);
>    235		if (IS_ERR(pages))
>    236			return NULL;
>    237	
>  > 238		addr = vmap(pages, n_pages, 0, pgprot_writecombine(PAGE_KERNEL_IO));

sparc64

I guess we need an ifdef PAGE_KERNEL_IO ?

or just rely on pgprot_writecombine(PAGE_KERNEL) being good enough
-Chris


-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux