[drm-intel:topic/drm-misc 2/11] drivers/gpu/drm/vgem/vgem_drv.c:238:33: note: in expansion of macro 'pgprot_writecombine'

kbuild test robot fengguang.wu at intel.com
Tue Jul 12 12:31:16 UTC 2016


tree:   git://anongit.freedesktop.org/drm-intel topic/drm-misc
head:   37035e7411fc90d57e4aca83ef654f50c3a0f626
commit: e6f15b763ab2bc47000ec302123e2fb3bf2ad7d4 [2/11] drm/vgem: Enable dmabuf interface for export
config: m68k-allyesconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 4.9.0
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=m68k 

All warnings (new ones prefixed by >>):

   In file included from arch/m68k/include/asm/thread_info.h:5:0,
                    from include/linux/thread_info.h:54,
                    from include/asm-generic/preempt.h:4,
                    from arch/m68k/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:59,
                    from include/linux/spinlock.h:50,
                    from include/linux/seqlock.h:35,
                    from include/linux/time.h:5,
                    from include/linux/stat.h:18,
                    from include/linux/module.h:10,
                    from drivers/gpu/drm/vgem/vgem_drv.c:33:
   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));
                                                        ^
   arch/m68k/include/asm/page.h:37:36: note: in definition of macro '__pgprot'
    #define __pgprot(x) ((pgprot_t) { (x) } )
                                       ^
>> arch/m68k/include/asm/pgtable_mm.h:164:15: note: in expansion of macro 'pgprot_val'
      ? (__pgprot(pgprot_val(prot) | __SUN3_PAGE_NOCACHE))   \
                  ^
>> include/asm-generic/pgtable.h:306:29: note: in expansion of macro 'pgprot_noncached'
    #define pgprot_writecombine pgprot_noncached
                                ^
>> drivers/gpu/drm/vgem/vgem_drv.c:238:33: note: in expansion of macro 'pgprot_writecombine'
     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
     addr = vmap(pages, n_pages, 0, pgprot_writecombine(PAGE_KERNEL_IO));
                                                        ^
   arch/m68k/include/asm/page.h:37:36: note: in definition of macro '__pgprot'
    #define __pgprot(x) ((pgprot_t) { (x) } )
                                       ^
>> arch/m68k/include/asm/pgtable_mm.h:164:15: note: in expansion of macro 'pgprot_val'
      ? (__pgprot(pgprot_val(prot) | __SUN3_PAGE_NOCACHE))   \
                  ^
>> include/asm-generic/pgtable.h:306:29: note: in expansion of macro 'pgprot_noncached'
    #define pgprot_writecombine pgprot_noncached
                                ^
>> drivers/gpu/drm/vgem/vgem_drv.c:238:33: note: in expansion of macro 'pgprot_writecombine'
     addr = vmap(pages, n_pages, 0, pgprot_writecombine(PAGE_KERNEL_IO));
                                    ^

vim +/pgprot_writecombine +238 drivers/gpu/drm/vgem/vgem_drv.c

   222		st = drm_prime_pages_to_sg(pages, obj->size >> PAGE_SHIFT);
   223		drm_gem_put_pages(obj, pages, false, false);
   224	
   225		return st;
   226	}
   227	
   228	static void *vgem_prime_vmap(struct drm_gem_object *obj)
   229	{
   230		long n_pages = obj->size >> PAGE_SHIFT;
   231		struct page **pages;
   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));
   239		drm_gem_put_pages(obj, pages, false, false);
   240	
   241		return addr;
   242	}
   243	
   244	static void vgem_prime_vunmap(struct drm_gem_object *obj, void *vaddr)
   245	{
   246		vunmap(vaddr);

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 37200 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160712/8e507f35/attachment-0001.obj>


More information about the dri-devel mailing list