[drm-intel:topic/drm-misc 2/11] arch/ia64/include/asm/pgtable.h:353:45: note: in expansion of macro 'pgprot_val'

kbuild test robot fengguang.wu at intel.com
Tue Jul 12 12:29:19 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: ia64-allyesconfig (attached as .config)
compiler: ia64-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=ia64 

All warnings (new ones prefixed by >>):

   In file included from arch/ia64/include/asm/ptrace.h:45:0,
                    from arch/ia64/include/asm/processor.h:19,
                    from arch/ia64/include/asm/thread_info.h:11,
                    from include/linux/thread_info.h:54,
                    from include/asm-generic/preempt.h:4,
                    from arch/ia64/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/ia64/include/asm/page.h:194:37: note: in definition of macro '__pgprot'
    # define __pgprot(x) ((pgprot_t) { (x) } )
                                        ^
>> arch/ia64/include/asm/pgtable.h:353:45: note: in expansion of macro 'pgprot_val'
    #define pgprot_writecombine(prot) __pgprot((pgprot_val(prot) & ~_PAGE_MA_MASK) | _PAGE_MA_WC)
                                                ^
   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/ia64/include/asm/page.h:194:37: note: in definition of macro '__pgprot'
    # define __pgprot(x) ((pgprot_t) { (x) } )
                                        ^
>> arch/ia64/include/asm/pgtable.h:353:45: note: in expansion of macro 'pgprot_val'
    #define pgprot_writecombine(prot) __pgprot((pgprot_val(prot) & ~_PAGE_MA_MASK) | _PAGE_MA_WC)
                                                ^
   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_val +353 arch/ia64/include/asm/pgtable.h

954ffcb3 include/asm-ia64/pgtable.h KAMEZAWA Hiroyuki 2007-10-16  337  		pte_pfn(*ptep) != pte_pfn(pteval)))
954ffcb3 include/asm-ia64/pgtable.h KAMEZAWA Hiroyuki 2007-10-16  338  		/* load_module() calles flush_icache_range() explicitly*/
954ffcb3 include/asm-ia64/pgtable.h KAMEZAWA Hiroyuki 2007-10-16  339  		__ia64_sync_icache_dcache(pteval);
954ffcb3 include/asm-ia64/pgtable.h KAMEZAWA Hiroyuki 2007-10-16  340  	*ptep = pteval;
954ffcb3 include/asm-ia64/pgtable.h KAMEZAWA Hiroyuki 2007-10-16  341  }
954ffcb3 include/asm-ia64/pgtable.h KAMEZAWA Hiroyuki 2007-10-16  342  
954ffcb3 include/asm-ia64/pgtable.h KAMEZAWA Hiroyuki 2007-10-16  343  #define set_pte_at(mm,addr,ptep,pteval) set_pte(ptep,pteval)
954ffcb3 include/asm-ia64/pgtable.h KAMEZAWA Hiroyuki 2007-10-16  344  
954ffcb3 include/asm-ia64/pgtable.h KAMEZAWA Hiroyuki 2007-10-16  345  /*
32e62c63 include/asm-ia64/pgtable.h Bjorn Helgaas     2006-05-05  346   * Make page protection values cacheable, uncacheable, or write-
32e62c63 include/asm-ia64/pgtable.h Bjorn Helgaas     2006-05-05  347   * combining.  Note that "protection" is really a misnomer here as the
32e62c63 include/asm-ia64/pgtable.h Bjorn Helgaas     2006-05-05  348   * protection value contains the memory attribute bits, dirty bits, and
32e62c63 include/asm-ia64/pgtable.h Bjorn Helgaas     2006-05-05  349   * various other bits as well.
^1da177e include/asm-ia64/pgtable.h Linus Torvalds    2005-04-16  350   */
32e62c63 include/asm-ia64/pgtable.h Bjorn Helgaas     2006-05-05  351  #define pgprot_cacheable(prot)		__pgprot((pgprot_val(prot) & ~_PAGE_MA_MASK) | _PAGE_MA_WB)
^1da177e include/asm-ia64/pgtable.h Linus Torvalds    2005-04-16  352  #define pgprot_noncached(prot)		__pgprot((pgprot_val(prot) & ~_PAGE_MA_MASK) | _PAGE_MA_UC)
^1da177e include/asm-ia64/pgtable.h Linus Torvalds    2005-04-16 @353  #define pgprot_writecombine(prot)	__pgprot((pgprot_val(prot) & ~_PAGE_MA_MASK) | _PAGE_MA_WC)
^1da177e include/asm-ia64/pgtable.h Linus Torvalds    2005-04-16  354  
32e62c63 include/asm-ia64/pgtable.h Bjorn Helgaas     2006-05-05  355  struct file;
32e62c63 include/asm-ia64/pgtable.h Bjorn Helgaas     2006-05-05  356  extern pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn,
32e62c63 include/asm-ia64/pgtable.h Bjorn Helgaas     2006-05-05  357  				     unsigned long size, pgprot_t vma_prot);
32e62c63 include/asm-ia64/pgtable.h Bjorn Helgaas     2006-05-05  358  #define __HAVE_PHYS_MEM_ACCESS_PROT
32e62c63 include/asm-ia64/pgtable.h Bjorn Helgaas     2006-05-05  359  
^1da177e include/asm-ia64/pgtable.h Linus Torvalds    2005-04-16  360  static inline unsigned long
^1da177e include/asm-ia64/pgtable.h Linus Torvalds    2005-04-16  361  pgd_index (unsigned long address)

:::::: The code at line 353 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds at ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds at ppc970.osdl.org>

---
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: 46353 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160712/2c5fb306/attachment-0001.obj>


More information about the dri-devel mailing list