[drm-intel:for-linux-next 1/1] include/linux/io-mapping.h:126:2: error: implicit declaration of function 'pgprot_writecombine'

kbuild test robot fengguang.wu at intel.com
Tue Aug 23 18:22:29 UTC 2016


tree:   git://anongit.freedesktop.org/drm-intel for-linux-next
head:   ac96b5566926af83463ddcf4655856033c092f26
commit: ac96b5566926af83463ddcf4655856033c092f26 [1/1] io-mapping.h: s/PAGE_KERNEL_IO/PAGE_KERNEL/
config: microblaze-nommu_defconfig (attached as .config)
compiler: microblaze-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 ac96b5566926af83463ddcf4655856033c092f26
        # save the attached .config to linux build tree
        make.cross ARCH=microblaze 

All errors (new ones prefixed by >>):

   In file included from drivers/gpio/gpiolib-of.c:19:0:
   include/linux/io-mapping.h: In function 'io_mapping_init_wc':
>> include/linux/io-mapping.h:126:2: error: implicit declaration of function 'pgprot_writecombine' [-Werror=implicit-function-declaration]
     iomap->prot = pgprot_writecombine(PAGE_KERNEL);
     ^
>> include/linux/io-mapping.h:126:14: error: incompatible types when assigning to type 'pgprot_t' from type 'int'
     iomap->prot = pgprot_writecombine(PAGE_KERNEL);
                 ^
   cc1: some warnings being treated as errors

vim +/pgprot_writecombine +126 include/linux/io-mapping.h

   120			   resource_size_t base,
   121			   unsigned long size)
   122	{
   123		iomap->base = base;
   124		iomap->size = size;
   125		iomap->iomem = ioremap_wc(base, size);
 > 126		iomap->prot = pgprot_writecombine(PAGE_KERNEL);
   127	
   128		return iomap;
   129	}

---
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: 12151 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160824/0254a71e/attachment.obj>


More information about the dri-devel mailing list