lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202108010447.31rp5mT5-lkp@intel.com>
Date:   Sun, 1 Aug 2021 04:16:01 +0800
From:   kernel test robot <lkp@...el.com>
To:     Laurent Pinchart <laurent.pinchart+renesas@...asonboard.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [pinchartl-media:drm/du/compile-test 11/12]
 drivers/gpu/drm/tegra/gem.c:144:10: error: implicit declaration of function
 'vmap'; did you mean 'kmap'?

Hi Laurent,

First bad commit (maybe != root cause):

tree:   git://linuxtv.org/pinchartl/media.git drm/du/compile-test
head:   e5afcf496f9bd487419c7ee0c258da75d0d1dae6
commit: 38c621b82b0e47d9fd0ce837b3c0f8c5c8156727 [11/12] drm/tegra: Enable COMPILE_TEST on all architectures
config: parisc-allyesconfig (attached as .config)
compiler: hppa-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git remote add pinchartl-media git://linuxtv.org/pinchartl/media.git
        git fetch --no-tags pinchartl-media drm/du/compile-test
        git checkout 38c621b82b0e47d9fd0ce837b3c0f8c5c8156727
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=parisc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

   drivers/gpu/drm/tegra/gem.c: In function 'tegra_bo_mmap':
>> drivers/gpu/drm/tegra/gem.c:144:10: error: implicit declaration of function 'vmap'; did you mean 'kmap'? [-Werror=implicit-function-declaration]
     144 |   return vmap(obj->pages, obj->num_pages, VM_MAP,
         |          ^~~~
         |          kmap
>> drivers/gpu/drm/tegra/gem.c:144:43: error: 'VM_MAP' undeclared (first use in this function); did you mean 'VM_MTE'?
     144 |   return vmap(obj->pages, obj->num_pages, VM_MAP,
         |                                           ^~~~~~
         |                                           VM_MTE
   drivers/gpu/drm/tegra/gem.c:144:43: note: each undeclared identifier is reported only once for each function it appears in
   drivers/gpu/drm/tegra/gem.c: In function 'tegra_bo_munmap':
>> drivers/gpu/drm/tegra/gem.c:159:3: error: implicit declaration of function 'vunmap'; did you mean 'kunmap'? [-Werror=implicit-function-declaration]
     159 |   vunmap(addr);
         |   ^~~~~~
         |   kunmap
   drivers/gpu/drm/tegra/gem.c: In function 'tegra_bo_mmap':
   drivers/gpu/drm/tegra/gem.c:147:1: error: control reaches end of non-void function [-Werror=return-type]
     147 | }
         | ^
   cc1: some warnings being treated as errors
--
   drivers/gpu/drm/tegra/fb.c: In function 'tegra_fbdev_probe':
>> drivers/gpu/drm/tegra/fb.c:273:15: error: implicit declaration of function 'vmap'; did you mean 'kmap'? [-Werror=implicit-function-declaration]
     273 |   bo->vaddr = vmap(bo->pages, bo->num_pages, VM_MAP,
         |               ^~~~
         |               kmap
>> drivers/gpu/drm/tegra/fb.c:273:46: error: 'VM_MAP' undeclared (first use in this function); did you mean 'VM_MTE'?
     273 |   bo->vaddr = vmap(bo->pages, bo->num_pages, VM_MAP,
         |                                              ^~~~~~
         |                                              VM_MTE
   drivers/gpu/drm/tegra/fb.c:273:46: note: each undeclared identifier is reported only once for each function it appears in
   drivers/gpu/drm/tegra/fb.c: In function 'tegra_fbdev_exit':
>> drivers/gpu/drm/tegra/fb.c:357:4: error: implicit declaration of function 'vunmap'; did you mean 'kunmap'? [-Werror=implicit-function-declaration]
     357 |    vunmap(bo->vaddr);
         |    ^~~~~~
         |    kunmap
   cc1: some warnings being treated as errors


vim +144 drivers/gpu/drm/tegra/gem.c

de2ba664c30fcd drivers/gpu/host1x/drm/gem.c Arto Merilainen   2013-03-22  131  
de2ba664c30fcd drivers/gpu/host1x/drm/gem.c Arto Merilainen   2013-03-22  132  static void *tegra_bo_mmap(struct host1x_bo *bo)
de2ba664c30fcd drivers/gpu/host1x/drm/gem.c Arto Merilainen   2013-03-22  133  {
3be8274341499c drivers/gpu/host1x/drm/gem.c Thierry Reding    2013-09-24  134  	struct tegra_bo *obj = host1x_to_tegra_bo(bo);
6619ccf1bb1d0e drivers/gpu/drm/tegra/gem.c  Thomas Zimmermann 2020-09-25  135  	struct dma_buf_map map;
6619ccf1bb1d0e drivers/gpu/drm/tegra/gem.c  Thomas Zimmermann 2020-09-25  136  	int ret;
de2ba664c30fcd drivers/gpu/host1x/drm/gem.c Arto Merilainen   2013-03-22  137  
6619ccf1bb1d0e drivers/gpu/drm/tegra/gem.c  Thomas Zimmermann 2020-09-25  138  	if (obj->vaddr) {
de2ba664c30fcd drivers/gpu/host1x/drm/gem.c Arto Merilainen   2013-03-22  139  		return obj->vaddr;
6619ccf1bb1d0e drivers/gpu/drm/tegra/gem.c  Thomas Zimmermann 2020-09-25  140  	} else if (obj->gem.import_attach) {
6619ccf1bb1d0e drivers/gpu/drm/tegra/gem.c  Thomas Zimmermann 2020-09-25  141  		ret = dma_buf_vmap(obj->gem.import_attach->dmabuf, &map);
6619ccf1bb1d0e drivers/gpu/drm/tegra/gem.c  Thomas Zimmermann 2020-09-25  142  		return ret ? NULL : map.vaddr;
6619ccf1bb1d0e drivers/gpu/drm/tegra/gem.c  Thomas Zimmermann 2020-09-25  143  	} else {
7ecada3cc44798 drivers/gpu/drm/tegra/gem.c  Arto Merilainen   2016-11-08 @144  		return vmap(obj->pages, obj->num_pages, VM_MAP,
7ecada3cc44798 drivers/gpu/drm/tegra/gem.c  Arto Merilainen   2016-11-08  145  			    pgprot_writecombine(PAGE_KERNEL));
de2ba664c30fcd drivers/gpu/host1x/drm/gem.c Arto Merilainen   2013-03-22  146  	}
6619ccf1bb1d0e drivers/gpu/drm/tegra/gem.c  Thomas Zimmermann 2020-09-25  147  }
de2ba664c30fcd drivers/gpu/host1x/drm/gem.c Arto Merilainen   2013-03-22  148  
de2ba664c30fcd drivers/gpu/host1x/drm/gem.c Arto Merilainen   2013-03-22  149  static void tegra_bo_munmap(struct host1x_bo *bo, void *addr)
de2ba664c30fcd drivers/gpu/host1x/drm/gem.c Arto Merilainen   2013-03-22  150  {
7ecada3cc44798 drivers/gpu/drm/tegra/gem.c  Arto Merilainen   2016-11-08  151  	struct tegra_bo *obj = host1x_to_tegra_bo(bo);
20e76f1a705965 drivers/gpu/drm/tegra/gem.c  Thomas Zimmermann 2020-09-25  152  	struct dma_buf_map map = DMA_BUF_MAP_INIT_VADDR(addr);
7ecada3cc44798 drivers/gpu/drm/tegra/gem.c  Arto Merilainen   2016-11-08  153  
7ecada3cc44798 drivers/gpu/drm/tegra/gem.c  Arto Merilainen   2016-11-08  154  	if (obj->vaddr)
7ecada3cc44798 drivers/gpu/drm/tegra/gem.c  Arto Merilainen   2016-11-08  155  		return;
7ecada3cc44798 drivers/gpu/drm/tegra/gem.c  Arto Merilainen   2016-11-08  156  	else if (obj->gem.import_attach)
20e76f1a705965 drivers/gpu/drm/tegra/gem.c  Thomas Zimmermann 2020-09-25  157  		dma_buf_vunmap(obj->gem.import_attach->dmabuf, &map);
7ecada3cc44798 drivers/gpu/drm/tegra/gem.c  Arto Merilainen   2016-11-08  158  	else
7ecada3cc44798 drivers/gpu/drm/tegra/gem.c  Arto Merilainen   2016-11-08 @159  		vunmap(addr);
de2ba664c30fcd drivers/gpu/host1x/drm/gem.c Arto Merilainen   2013-03-22  160  }
de2ba664c30fcd drivers/gpu/host1x/drm/gem.c Arto Merilainen   2013-03-22  161  

:::::: The code at line 144 was first introduced by commit
:::::: 7ecada3cc44798c88d2c3deed38746b9a7a9b746 drm/tegra: Support kernel mappings with IOMMU

:::::: TO: Arto Merilainen <amerilainen@...dia.com>
:::::: CC: Thierry Reding <treding@...dia.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (68545 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ