* [iommu:arm/omap 4/4] drivers/gpu/drm/rockchip/rockchip_drm_gem.c:134:20: error: implicit declaration of function 'vmap'; did you mean 'bmap'?
@ 2020-03-05 0:59 ` kbuild test robot
0 siblings, 0 replies; 6+ messages in thread
From: kbuild test robot @ 2020-03-05 0:59 UTC (permalink / raw)
To: Krzysztof Kozlowski; +Cc: iommu, Joerg Roedel, kbuild-all
[-- Attachment #1: Type: text/plain, Size: 8551 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git arm/omap
head: e93a1695d7fb551376b1c1220a267d032b6ad159
commit: e93a1695d7fb551376b1c1220a267d032b6ad159 [4/4] iommu: Enable compile testing for some of drivers
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout e93a1695d7fb551376b1c1220a267d032b6ad159
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/rockchip/rockchip_drm_gem.c: In function 'rockchip_gem_alloc_iommu':
>> drivers/gpu/drm/rockchip/rockchip_drm_gem.c:134:20: error: implicit declaration of function 'vmap'; did you mean 'bmap'? [-Werror=implicit-function-declaration]
rk_obj->kvaddr = vmap(rk_obj->pages, rk_obj->num_pages, VM_MAP,
^~~~
bmap
>> drivers/gpu/drm/rockchip/rockchip_drm_gem.c:134:59: error: 'VM_MAP' undeclared (first use in this function); did you mean 'VM_MPX'?
rk_obj->kvaddr = vmap(rk_obj->pages, rk_obj->num_pages, VM_MAP,
^~~~~~
VM_MPX
drivers/gpu/drm/rockchip/rockchip_drm_gem.c:134:59: note: each undeclared identifier is reported only once for each function it appears in
drivers/gpu/drm/rockchip/rockchip_drm_gem.c: In function 'rockchip_gem_free_iommu':
>> drivers/gpu/drm/rockchip/rockchip_drm_gem.c:190:2: error: implicit declaration of function 'vunmap'; did you mean 'iounmap'? [-Werror=implicit-function-declaration]
vunmap(rk_obj->kvaddr);
^~~~~~
iounmap
drivers/gpu/drm/rockchip/rockchip_drm_gem.c: In function 'rockchip_gem_prime_vmap':
drivers/gpu/drm/rockchip/rockchip_drm_gem.c:547:49: error: 'VM_MAP' undeclared (first use in this function); did you mean 'VM_MPX'?
return vmap(rk_obj->pages, rk_obj->num_pages, VM_MAP,
^~~~~~
VM_MPX
cc1: some warnings being treated as errors
vim +134 drivers/gpu/drm/rockchip/rockchip_drm_gem.c
38f993b7c59e261 Tomasz Figa 2016-06-24 119
38f993b7c59e261 Tomasz Figa 2016-06-24 120 static int rockchip_gem_alloc_iommu(struct rockchip_gem_object *rk_obj,
38f993b7c59e261 Tomasz Figa 2016-06-24 121 bool alloc_kmap)
38f993b7c59e261 Tomasz Figa 2016-06-24 122 {
38f993b7c59e261 Tomasz Figa 2016-06-24 123 int ret;
38f993b7c59e261 Tomasz Figa 2016-06-24 124
38f993b7c59e261 Tomasz Figa 2016-06-24 125 ret = rockchip_gem_get_pages(rk_obj);
38f993b7c59e261 Tomasz Figa 2016-06-24 126 if (ret < 0)
38f993b7c59e261 Tomasz Figa 2016-06-24 127 return ret;
38f993b7c59e261 Tomasz Figa 2016-06-24 128
38f993b7c59e261 Tomasz Figa 2016-06-24 129 ret = rockchip_gem_iommu_map(rk_obj);
38f993b7c59e261 Tomasz Figa 2016-06-24 130 if (ret < 0)
38f993b7c59e261 Tomasz Figa 2016-06-24 131 goto err_free;
38f993b7c59e261 Tomasz Figa 2016-06-24 132
38f993b7c59e261 Tomasz Figa 2016-06-24 133 if (alloc_kmap) {
38f993b7c59e261 Tomasz Figa 2016-06-24 @134 rk_obj->kvaddr = vmap(rk_obj->pages, rk_obj->num_pages, VM_MAP,
38f993b7c59e261 Tomasz Figa 2016-06-24 135 pgprot_writecombine(PAGE_KERNEL));
38f993b7c59e261 Tomasz Figa 2016-06-24 136 if (!rk_obj->kvaddr) {
38f993b7c59e261 Tomasz Figa 2016-06-24 137 DRM_ERROR("failed to vmap() buffer\n");
38f993b7c59e261 Tomasz Figa 2016-06-24 138 ret = -ENOMEM;
38f993b7c59e261 Tomasz Figa 2016-06-24 139 goto err_unmap;
38f993b7c59e261 Tomasz Figa 2016-06-24 140 }
38f993b7c59e261 Tomasz Figa 2016-06-24 141 }
38f993b7c59e261 Tomasz Figa 2016-06-24 142
38f993b7c59e261 Tomasz Figa 2016-06-24 143 return 0;
38f993b7c59e261 Tomasz Figa 2016-06-24 144
38f993b7c59e261 Tomasz Figa 2016-06-24 145 err_unmap:
38f993b7c59e261 Tomasz Figa 2016-06-24 146 rockchip_gem_iommu_unmap(rk_obj);
38f993b7c59e261 Tomasz Figa 2016-06-24 147 err_free:
38f993b7c59e261 Tomasz Figa 2016-06-24 148 rockchip_gem_put_pages(rk_obj);
38f993b7c59e261 Tomasz Figa 2016-06-24 149
38f993b7c59e261 Tomasz Figa 2016-06-24 150 return ret;
38f993b7c59e261 Tomasz Figa 2016-06-24 151 }
38f993b7c59e261 Tomasz Figa 2016-06-24 152
38f993b7c59e261 Tomasz Figa 2016-06-24 153 static int rockchip_gem_alloc_dma(struct rockchip_gem_object *rk_obj,
f76c83b580043d5 Daniel Kurtz 2015-01-12 154 bool alloc_kmap)
2048e3286f347db Mark Yao 2014-08-22 155 {
2048e3286f347db Mark Yao 2014-08-22 156 struct drm_gem_object *obj = &rk_obj->base;
2048e3286f347db Mark Yao 2014-08-22 157 struct drm_device *drm = obj->dev;
2048e3286f347db Mark Yao 2014-08-22 158
00085f1efa387a8 Krzysztof Kozlowski 2016-08-03 159 rk_obj->dma_attrs = DMA_ATTR_WRITE_COMBINE;
2048e3286f347db Mark Yao 2014-08-22 160
f76c83b580043d5 Daniel Kurtz 2015-01-12 161 if (!alloc_kmap)
00085f1efa387a8 Krzysztof Kozlowski 2016-08-03 162 rk_obj->dma_attrs |= DMA_ATTR_NO_KERNEL_MAPPING;
f76c83b580043d5 Daniel Kurtz 2015-01-12 163
2048e3286f347db Mark Yao 2014-08-22 164 rk_obj->kvaddr = dma_alloc_attrs(drm->dev, obj->size,
2048e3286f347db Mark Yao 2014-08-22 165 &rk_obj->dma_addr, GFP_KERNEL,
00085f1efa387a8 Krzysztof Kozlowski 2016-08-03 166 rk_obj->dma_attrs);
4b9a90c0b374f8f Daniel Kurtz 2015-01-07 167 if (!rk_obj->kvaddr) {
913bb40a45f18f9 Brian Norris 2016-06-09 168 DRM_ERROR("failed to allocate %zu byte dma buffer", obj->size);
4b9a90c0b374f8f Daniel Kurtz 2015-01-07 169 return -ENOMEM;
2048e3286f347db Mark Yao 2014-08-22 170 }
2048e3286f347db Mark Yao 2014-08-22 171
2048e3286f347db Mark Yao 2014-08-22 172 return 0;
2048e3286f347db Mark Yao 2014-08-22 173 }
2048e3286f347db Mark Yao 2014-08-22 174
38f993b7c59e261 Tomasz Figa 2016-06-24 175 static int rockchip_gem_alloc_buf(struct rockchip_gem_object *rk_obj,
38f993b7c59e261 Tomasz Figa 2016-06-24 176 bool alloc_kmap)
38f993b7c59e261 Tomasz Figa 2016-06-24 177 {
38f993b7c59e261 Tomasz Figa 2016-06-24 178 struct drm_gem_object *obj = &rk_obj->base;
38f993b7c59e261 Tomasz Figa 2016-06-24 179 struct drm_device *drm = obj->dev;
38f993b7c59e261 Tomasz Figa 2016-06-24 180 struct rockchip_drm_private *private = drm->dev_private;
38f993b7c59e261 Tomasz Figa 2016-06-24 181
38f993b7c59e261 Tomasz Figa 2016-06-24 182 if (private->domain)
38f993b7c59e261 Tomasz Figa 2016-06-24 183 return rockchip_gem_alloc_iommu(rk_obj, alloc_kmap);
38f993b7c59e261 Tomasz Figa 2016-06-24 184 else
38f993b7c59e261 Tomasz Figa 2016-06-24 185 return rockchip_gem_alloc_dma(rk_obj, alloc_kmap);
38f993b7c59e261 Tomasz Figa 2016-06-24 186 }
38f993b7c59e261 Tomasz Figa 2016-06-24 187
38f993b7c59e261 Tomasz Figa 2016-06-24 188 static void rockchip_gem_free_iommu(struct rockchip_gem_object *rk_obj)
38f993b7c59e261 Tomasz Figa 2016-06-24 189 {
38f993b7c59e261 Tomasz Figa 2016-06-24 @190 vunmap(rk_obj->kvaddr);
38f993b7c59e261 Tomasz Figa 2016-06-24 191 rockchip_gem_iommu_unmap(rk_obj);
38f993b7c59e261 Tomasz Figa 2016-06-24 192 rockchip_gem_put_pages(rk_obj);
38f993b7c59e261 Tomasz Figa 2016-06-24 193 }
38f993b7c59e261 Tomasz Figa 2016-06-24 194
:::::: The code at line 134 was first introduced by commit
:::::: 38f993b7c59e261b8ff7deb66c96c7dff4017f7b drm/rockchip: Do not use DMA mapping API if attached to IOMMU domain
:::::: TO: Tomasz Figa <tfiga@chromium.org>
:::::: CC: Mark Yao <mark.yao@rock-chips.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 61296 bytes --]
[-- Attachment #3: Type: text/plain, Size: 156 bytes --]
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply [flat|nested] 6+ messages in thread
* [iommu:arm/omap 4/4] drivers/gpu/drm/rockchip/rockchip_drm_gem.c:134:20: error: implicit declaration of function 'vmap'; did you mean 'bmap'?
@ 2020-03-05 0:59 ` kbuild test robot
0 siblings, 0 replies; 6+ messages in thread
From: kbuild test robot @ 2020-03-05 0:59 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 8680 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git arm/omap
head: e93a1695d7fb551376b1c1220a267d032b6ad159
commit: e93a1695d7fb551376b1c1220a267d032b6ad159 [4/4] iommu: Enable compile testing for some of drivers
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout e93a1695d7fb551376b1c1220a267d032b6ad159
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/rockchip/rockchip_drm_gem.c: In function 'rockchip_gem_alloc_iommu':
>> drivers/gpu/drm/rockchip/rockchip_drm_gem.c:134:20: error: implicit declaration of function 'vmap'; did you mean 'bmap'? [-Werror=implicit-function-declaration]
rk_obj->kvaddr = vmap(rk_obj->pages, rk_obj->num_pages, VM_MAP,
^~~~
bmap
>> drivers/gpu/drm/rockchip/rockchip_drm_gem.c:134:59: error: 'VM_MAP' undeclared (first use in this function); did you mean 'VM_MPX'?
rk_obj->kvaddr = vmap(rk_obj->pages, rk_obj->num_pages, VM_MAP,
^~~~~~
VM_MPX
drivers/gpu/drm/rockchip/rockchip_drm_gem.c:134:59: note: each undeclared identifier is reported only once for each function it appears in
drivers/gpu/drm/rockchip/rockchip_drm_gem.c: In function 'rockchip_gem_free_iommu':
>> drivers/gpu/drm/rockchip/rockchip_drm_gem.c:190:2: error: implicit declaration of function 'vunmap'; did you mean 'iounmap'? [-Werror=implicit-function-declaration]
vunmap(rk_obj->kvaddr);
^~~~~~
iounmap
drivers/gpu/drm/rockchip/rockchip_drm_gem.c: In function 'rockchip_gem_prime_vmap':
drivers/gpu/drm/rockchip/rockchip_drm_gem.c:547:49: error: 'VM_MAP' undeclared (first use in this function); did you mean 'VM_MPX'?
return vmap(rk_obj->pages, rk_obj->num_pages, VM_MAP,
^~~~~~
VM_MPX
cc1: some warnings being treated as errors
vim +134 drivers/gpu/drm/rockchip/rockchip_drm_gem.c
38f993b7c59e261 Tomasz Figa 2016-06-24 119
38f993b7c59e261 Tomasz Figa 2016-06-24 120 static int rockchip_gem_alloc_iommu(struct rockchip_gem_object *rk_obj,
38f993b7c59e261 Tomasz Figa 2016-06-24 121 bool alloc_kmap)
38f993b7c59e261 Tomasz Figa 2016-06-24 122 {
38f993b7c59e261 Tomasz Figa 2016-06-24 123 int ret;
38f993b7c59e261 Tomasz Figa 2016-06-24 124
38f993b7c59e261 Tomasz Figa 2016-06-24 125 ret = rockchip_gem_get_pages(rk_obj);
38f993b7c59e261 Tomasz Figa 2016-06-24 126 if (ret < 0)
38f993b7c59e261 Tomasz Figa 2016-06-24 127 return ret;
38f993b7c59e261 Tomasz Figa 2016-06-24 128
38f993b7c59e261 Tomasz Figa 2016-06-24 129 ret = rockchip_gem_iommu_map(rk_obj);
38f993b7c59e261 Tomasz Figa 2016-06-24 130 if (ret < 0)
38f993b7c59e261 Tomasz Figa 2016-06-24 131 goto err_free;
38f993b7c59e261 Tomasz Figa 2016-06-24 132
38f993b7c59e261 Tomasz Figa 2016-06-24 133 if (alloc_kmap) {
38f993b7c59e261 Tomasz Figa 2016-06-24 @134 rk_obj->kvaddr = vmap(rk_obj->pages, rk_obj->num_pages, VM_MAP,
38f993b7c59e261 Tomasz Figa 2016-06-24 135 pgprot_writecombine(PAGE_KERNEL));
38f993b7c59e261 Tomasz Figa 2016-06-24 136 if (!rk_obj->kvaddr) {
38f993b7c59e261 Tomasz Figa 2016-06-24 137 DRM_ERROR("failed to vmap() buffer\n");
38f993b7c59e261 Tomasz Figa 2016-06-24 138 ret = -ENOMEM;
38f993b7c59e261 Tomasz Figa 2016-06-24 139 goto err_unmap;
38f993b7c59e261 Tomasz Figa 2016-06-24 140 }
38f993b7c59e261 Tomasz Figa 2016-06-24 141 }
38f993b7c59e261 Tomasz Figa 2016-06-24 142
38f993b7c59e261 Tomasz Figa 2016-06-24 143 return 0;
38f993b7c59e261 Tomasz Figa 2016-06-24 144
38f993b7c59e261 Tomasz Figa 2016-06-24 145 err_unmap:
38f993b7c59e261 Tomasz Figa 2016-06-24 146 rockchip_gem_iommu_unmap(rk_obj);
38f993b7c59e261 Tomasz Figa 2016-06-24 147 err_free:
38f993b7c59e261 Tomasz Figa 2016-06-24 148 rockchip_gem_put_pages(rk_obj);
38f993b7c59e261 Tomasz Figa 2016-06-24 149
38f993b7c59e261 Tomasz Figa 2016-06-24 150 return ret;
38f993b7c59e261 Tomasz Figa 2016-06-24 151 }
38f993b7c59e261 Tomasz Figa 2016-06-24 152
38f993b7c59e261 Tomasz Figa 2016-06-24 153 static int rockchip_gem_alloc_dma(struct rockchip_gem_object *rk_obj,
f76c83b580043d5 Daniel Kurtz 2015-01-12 154 bool alloc_kmap)
2048e3286f347db Mark Yao 2014-08-22 155 {
2048e3286f347db Mark Yao 2014-08-22 156 struct drm_gem_object *obj = &rk_obj->base;
2048e3286f347db Mark Yao 2014-08-22 157 struct drm_device *drm = obj->dev;
2048e3286f347db Mark Yao 2014-08-22 158
00085f1efa387a8 Krzysztof Kozlowski 2016-08-03 159 rk_obj->dma_attrs = DMA_ATTR_WRITE_COMBINE;
2048e3286f347db Mark Yao 2014-08-22 160
f76c83b580043d5 Daniel Kurtz 2015-01-12 161 if (!alloc_kmap)
00085f1efa387a8 Krzysztof Kozlowski 2016-08-03 162 rk_obj->dma_attrs |= DMA_ATTR_NO_KERNEL_MAPPING;
f76c83b580043d5 Daniel Kurtz 2015-01-12 163
2048e3286f347db Mark Yao 2014-08-22 164 rk_obj->kvaddr = dma_alloc_attrs(drm->dev, obj->size,
2048e3286f347db Mark Yao 2014-08-22 165 &rk_obj->dma_addr, GFP_KERNEL,
00085f1efa387a8 Krzysztof Kozlowski 2016-08-03 166 rk_obj->dma_attrs);
4b9a90c0b374f8f Daniel Kurtz 2015-01-07 167 if (!rk_obj->kvaddr) {
913bb40a45f18f9 Brian Norris 2016-06-09 168 DRM_ERROR("failed to allocate %zu byte dma buffer", obj->size);
4b9a90c0b374f8f Daniel Kurtz 2015-01-07 169 return -ENOMEM;
2048e3286f347db Mark Yao 2014-08-22 170 }
2048e3286f347db Mark Yao 2014-08-22 171
2048e3286f347db Mark Yao 2014-08-22 172 return 0;
2048e3286f347db Mark Yao 2014-08-22 173 }
2048e3286f347db Mark Yao 2014-08-22 174
38f993b7c59e261 Tomasz Figa 2016-06-24 175 static int rockchip_gem_alloc_buf(struct rockchip_gem_object *rk_obj,
38f993b7c59e261 Tomasz Figa 2016-06-24 176 bool alloc_kmap)
38f993b7c59e261 Tomasz Figa 2016-06-24 177 {
38f993b7c59e261 Tomasz Figa 2016-06-24 178 struct drm_gem_object *obj = &rk_obj->base;
38f993b7c59e261 Tomasz Figa 2016-06-24 179 struct drm_device *drm = obj->dev;
38f993b7c59e261 Tomasz Figa 2016-06-24 180 struct rockchip_drm_private *private = drm->dev_private;
38f993b7c59e261 Tomasz Figa 2016-06-24 181
38f993b7c59e261 Tomasz Figa 2016-06-24 182 if (private->domain)
38f993b7c59e261 Tomasz Figa 2016-06-24 183 return rockchip_gem_alloc_iommu(rk_obj, alloc_kmap);
38f993b7c59e261 Tomasz Figa 2016-06-24 184 else
38f993b7c59e261 Tomasz Figa 2016-06-24 185 return rockchip_gem_alloc_dma(rk_obj, alloc_kmap);
38f993b7c59e261 Tomasz Figa 2016-06-24 186 }
38f993b7c59e261 Tomasz Figa 2016-06-24 187
38f993b7c59e261 Tomasz Figa 2016-06-24 188 static void rockchip_gem_free_iommu(struct rockchip_gem_object *rk_obj)
38f993b7c59e261 Tomasz Figa 2016-06-24 189 {
38f993b7c59e261 Tomasz Figa 2016-06-24 @190 vunmap(rk_obj->kvaddr);
38f993b7c59e261 Tomasz Figa 2016-06-24 191 rockchip_gem_iommu_unmap(rk_obj);
38f993b7c59e261 Tomasz Figa 2016-06-24 192 rockchip_gem_put_pages(rk_obj);
38f993b7c59e261 Tomasz Figa 2016-06-24 193 }
38f993b7c59e261 Tomasz Figa 2016-06-24 194
:::::: The code at line 134 was first introduced by commit
:::::: 38f993b7c59e261b8ff7deb66c96c7dff4017f7b drm/rockchip: Do not use DMA mapping API if attached to IOMMU domain
:::::: TO: Tomasz Figa <tfiga@chromium.org>
:::::: CC: Mark Yao <mark.yao@rock-chips.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 61296 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [iommu:arm/omap 4/4] drivers/gpu/drm/rockchip/rockchip_drm_gem.c:134:20: error: implicit declaration of function 'vmap'; did you mean 'bmap'?
2020-03-05 0:59 ` kbuild test robot
@ 2020-03-05 8:50 ` Krzysztof Kozlowski
-1 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2020-03-05 8:50 UTC (permalink / raw)
To: kbuild test robot; +Cc: iommu, Joerg Roedel, kbuild-all, Heiko Stuebner
On Thu, 5 Mar 2020 at 02:00, kbuild test robot <lkp@intel.com> wrote:
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git arm/omap
> head: e93a1695d7fb551376b1c1220a267d032b6ad159
> commit: e93a1695d7fb551376b1c1220a267d032b6ad159 [4/4] iommu: Enable compile testing for some of drivers
> config: sparc-allyesconfig (attached as .config)
> compiler: sparc64-linux-gcc (GCC) 7.5.0
> reproduce:
> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> git checkout e93a1695d7fb551376b1c1220a267d032b6ad159
> # save the attached .config to linux build tree
> GCC_VERSION=7.5.0 make.cross ARCH=sparc
>
> If you fix the issue, kindly add following tag
> Reported-by: kbuild test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>):
>
> drivers/gpu/drm/rockchip/rockchip_drm_gem.c: In function 'rockchip_gem_alloc_iommu':
> >> drivers/gpu/drm/rockchip/rockchip_drm_gem.c:134:20: error: implicit declaration of function 'vmap'; did you mean 'bmap'? [-Werror=implicit-function-declaration]
> rk_obj->kvaddr = vmap(rk_obj->pages, rk_obj->num_pages, VM_MAP,
> ^~~~
> bmap
> >> drivers/gpu/drm/rockchip/rockchip_drm_gem.c:134:59: error: 'VM_MAP' undeclared (first use in this function); did you mean 'VM_MPX'?
> rk_obj->kvaddr = vmap(rk_obj->pages, rk_obj->num_pages, VM_MAP,
> ^~~~~~
> VM_MPX
> drivers/gpu/drm/rockchip/rockchip_drm_gem.c:134:59: note: each undeclared identifier is reported only once for each function it appears in
> drivers/gpu/drm/rockchip/rockchip_drm_gem.c: In function 'rockchip_gem_free_iommu':
> >> drivers/gpu/drm/rockchip/rockchip_drm_gem.c:190:2: error: implicit declaration of function 'vunmap'; did you mean 'iounmap'? [-Werror=implicit-function-declaration]
> vunmap(rk_obj->kvaddr);
> ^~~~~~
> iounmap
> drivers/gpu/drm/rockchip/rockchip_drm_gem.c: In function 'rockchip_gem_prime_vmap':
> drivers/gpu/drm/rockchip/rockchip_drm_gem.c:547:49: error: 'VM_MAP' undeclared (first use in this function); did you mean 'VM_MPX'?
> return vmap(rk_obj->pages, rk_obj->num_pages, VM_MAP,
> ^~~~~~
> VM_MPX
> cc1: some warnings being treated as errors
>
> vim +134 drivers/gpu/drm/rockchip/rockchip_drm_gem.c
Hi,
+Cc Heiko,
This is already fixed in drm-misc here:
https://patchwork.freedesktop.org/patch/347106/
Best regards,
Krzysztof
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [iommu:arm/omap 4/4] drivers/gpu/drm/rockchip/rockchip_drm_gem.c:134:20: error: implicit declaration of function 'vmap'; did you mean 'bmap'?
@ 2020-03-05 8:50 ` Krzysztof Kozlowski
0 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2020-03-05 8:50 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2776 bytes --]
On Thu, 5 Mar 2020 at 02:00, kbuild test robot <lkp@intel.com> wrote:
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git arm/omap
> head: e93a1695d7fb551376b1c1220a267d032b6ad159
> commit: e93a1695d7fb551376b1c1220a267d032b6ad159 [4/4] iommu: Enable compile testing for some of drivers
> config: sparc-allyesconfig (attached as .config)
> compiler: sparc64-linux-gcc (GCC) 7.5.0
> reproduce:
> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> git checkout e93a1695d7fb551376b1c1220a267d032b6ad159
> # save the attached .config to linux build tree
> GCC_VERSION=7.5.0 make.cross ARCH=sparc
>
> If you fix the issue, kindly add following tag
> Reported-by: kbuild test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>):
>
> drivers/gpu/drm/rockchip/rockchip_drm_gem.c: In function 'rockchip_gem_alloc_iommu':
> >> drivers/gpu/drm/rockchip/rockchip_drm_gem.c:134:20: error: implicit declaration of function 'vmap'; did you mean 'bmap'? [-Werror=implicit-function-declaration]
> rk_obj->kvaddr = vmap(rk_obj->pages, rk_obj->num_pages, VM_MAP,
> ^~~~
> bmap
> >> drivers/gpu/drm/rockchip/rockchip_drm_gem.c:134:59: error: 'VM_MAP' undeclared (first use in this function); did you mean 'VM_MPX'?
> rk_obj->kvaddr = vmap(rk_obj->pages, rk_obj->num_pages, VM_MAP,
> ^~~~~~
> VM_MPX
> drivers/gpu/drm/rockchip/rockchip_drm_gem.c:134:59: note: each undeclared identifier is reported only once for each function it appears in
> drivers/gpu/drm/rockchip/rockchip_drm_gem.c: In function 'rockchip_gem_free_iommu':
> >> drivers/gpu/drm/rockchip/rockchip_drm_gem.c:190:2: error: implicit declaration of function 'vunmap'; did you mean 'iounmap'? [-Werror=implicit-function-declaration]
> vunmap(rk_obj->kvaddr);
> ^~~~~~
> iounmap
> drivers/gpu/drm/rockchip/rockchip_drm_gem.c: In function 'rockchip_gem_prime_vmap':
> drivers/gpu/drm/rockchip/rockchip_drm_gem.c:547:49: error: 'VM_MAP' undeclared (first use in this function); did you mean 'VM_MPX'?
> return vmap(rk_obj->pages, rk_obj->num_pages, VM_MAP,
> ^~~~~~
> VM_MPX
> cc1: some warnings being treated as errors
>
> vim +134 drivers/gpu/drm/rockchip/rockchip_drm_gem.c
Hi,
+Cc Heiko,
This is already fixed in drm-misc here:
https://patchwork.freedesktop.org/patch/347106/
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [iommu:arm/omap 4/4] drivers/gpu/drm/rockchip/rockchip_drm_gem.c:134:20: error: implicit declaration of function 'vmap'; did you mean 'bmap'?
2020-03-05 8:50 ` Krzysztof Kozlowski
@ 2020-03-10 9:25 ` Joerg Roedel
-1 siblings, 0 replies; 6+ messages in thread
From: Joerg Roedel @ 2020-03-10 9:25 UTC (permalink / raw)
To: Krzysztof Kozlowski; +Cc: iommu, kbuild-all, kbuild test robot, Heiko Stuebner
On Thu, Mar 05, 2020 at 09:50:57AM +0100, Krzysztof Kozlowski wrote:
> +Cc Heiko,
>
> This is already fixed in drm-misc here:
> https://patchwork.freedesktop.org/patch/347106/
Is it possible to carry this fix in the IOMMU tree?
Regards,
Joerg
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [iommu:arm/omap 4/4] drivers/gpu/drm/rockchip/rockchip_drm_gem.c:134:20: error: implicit declaration of function 'vmap'; did you mean 'bmap'?
@ 2020-03-10 9:25 ` Joerg Roedel
0 siblings, 0 replies; 6+ messages in thread
From: Joerg Roedel @ 2020-03-10 9:25 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 259 bytes --]
On Thu, Mar 05, 2020 at 09:50:57AM +0100, Krzysztof Kozlowski wrote:
> +Cc Heiko,
>
> This is already fixed in drm-misc here:
> https://patchwork.freedesktop.org/patch/347106/
Is it possible to carry this fix in the IOMMU tree?
Regards,
Joerg
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-03-10 9:25 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-05 0:59 [iommu:arm/omap 4/4] drivers/gpu/drm/rockchip/rockchip_drm_gem.c:134:20: error: implicit declaration of function 'vmap'; did you mean 'bmap'? kbuild test robot
2020-03-05 0:59 ` kbuild test robot
2020-03-05 8:50 ` Krzysztof Kozlowski
2020-03-05 8:50 ` Krzysztof Kozlowski
2020-03-10 9:25 ` Joerg Roedel
2020-03-10 9:25 ` Joerg Roedel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.