* [intel-linux-intel-lts:5.4/yocto 3/3] drivers/gpu/drm/hantro_driver/hantro.c:465:23: error: implicit declaration of function 'pgprot_noncached'
@ 2020-07-31 21:02 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-07-31 21:02 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 6566 bytes --]
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: b8b4b73e4f7bffe85610b37cef411bf55b60fbe4
commit: b8b4b73e4f7bffe85610b37cef411bf55b60fbe4 [3/3] drm: Add Keembay media codec driver
config: m68k-randconfig-r011-20200731 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.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 checkout b8b4b73e4f7bffe85610b37cef411bf55b60fbe4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/init.h:5,
from include/linux/io.h:10,
from drivers/gpu/drm/hantro_driver/hantro.c:22:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/m68k/include/asm/page_no.h:33:50: warning: ordered comparison of pointer with null pointer [-Wextra]
33 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/hantro_driver/hantro.c: In function 'hantro_gem_dumb_create_internal':
drivers/gpu/drm/hantro_driver/hantro.c:183:15: warning: variable 'out_size' set but not used [-Wunused-but-set-variable]
183 | int in_size, out_size;
| ^~~~~~~~
drivers/gpu/drm/hantro_driver/hantro.c: In function 'hantro_mmap':
>> drivers/gpu/drm/hantro_driver/hantro.c:465:23: error: implicit declaration of function 'pgprot_noncached' [-Werror=implicit-function-declaration]
465 | vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
| ^~~~~~~~~~~~~~~~
>> drivers/gpu/drm/hantro_driver/hantro.c:465:23: error: incompatible types when assigning to type 'pgprot_t' {aka 'struct <anonymous>'} from type 'int'
drivers/gpu/drm/hantro_driver/hantro.c:416:22: warning: variable 'pscatter' set but not used [-Wunused-but-set-variable]
416 | struct scatterlist *pscatter = NULL;
| ^~~~~~~~
drivers/gpu/drm/hantro_driver/hantro.c: At top level:
drivers/gpu/drm/hantro_driver/hantro.c:1509:6: warning: no previous prototype for 'hantro_gem_vm_close' [-Wmissing-prototypes]
1509 | void hantro_gem_vm_close(struct vm_area_struct *vma)
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/hantro_driver/hantro.c:1952:13: warning: no previous prototype for 'hantro_cleanup' [-Wmissing-prototypes]
1952 | void __exit hantro_cleanup(void)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/hantro_driver/hantro.c:1974:12: warning: no previous prototype for 'hantro_init' [-Wmissing-prototypes]
1974 | int __init hantro_init(void)
| ^~~~~~~~~~~
drivers/gpu/drm/hantro_driver/hantro.c:1943:42: warning: 'hantro_platform_info' defined but not used [-Wunused-const-variable=]
1943 | static const struct platform_device_info hantro_platform_info = {
| ^~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/pgprot_noncached +465 drivers/gpu/drm/hantro_driver/hantro.c
404
405 static int hantro_mmap(
406 struct file *filp,
407 struct vm_area_struct *vma)
408 {
409 int ret = 0;
410 struct drm_gem_object *obj = NULL;
411 struct drm_gem_hantro_object *cma_obj;
412 struct drm_vma_offset_node *node;
413 unsigned long page_num = (vma->vm_end - vma->vm_start) >> PAGE_SHIFT;
414 unsigned long address = 0;
415 int sgtidx = 0;
416 struct scatterlist *pscatter = NULL;
417 struct page **pages = NULL;
418
419 if (mutex_lock_interruptible(&hantro_dev.drm_dev->struct_mutex))
420 return -EBUSY;
421 drm_vma_offset_lock_lookup(hantro_dev.drm_dev->vma_offset_manager);
422 node = drm_vma_offset_exact_lookup_locked(hantro_dev.drm_dev->vma_offset_manager,
423 vma->vm_pgoff,
424 vma_pages(vma));
425
426 if (likely(node)) {
427 obj = container_of(node, struct drm_gem_object, vma_node);
428 if (!kref_get_unless_zero(&obj->refcount))
429 obj = NULL;
430 }
431 drm_vma_offset_unlock_lookup(hantro_dev.drm_dev->vma_offset_manager);
432 hantro_unref_drmobj(obj);
433
434 if (!obj) {
435 mutex_unlock(&hantro_dev.drm_dev->struct_mutex);
436 return -EINVAL;
437 }
438 cma_obj = to_drm_gem_hantro_obj(obj);
439
440 if (page_num > cma_obj->num_pages) {
441 mutex_unlock(&hantro_dev.drm_dev->struct_mutex);
442 return -EINVAL;
443 }
444
445 if ((cma_obj->flag & HANTRO_GEM_FLAG_IMPORT) == 0) {
446 address = (unsigned long)cma_obj->vaddr;
447 if (address == 0) {
448 mutex_unlock(&hantro_dev.drm_dev->struct_mutex);
449 return -EINVAL;
450 }
451 ret = drm_gem_mmap_obj(
452 obj,
453 drm_vma_node_size(node) << PAGE_SHIFT,
454 vma);
455
456 if (ret) {
457 mutex_unlock(&hantro_dev.drm_dev->struct_mutex);
458 return ret;
459 }
460 } else {
461 pscatter = &cma_obj->sgt->sgl[sgtidx];
462 #ifdef __amd64__
463 set_memory_uc((unsigned long)cma_obj->vaddr, (int)page_num);
464 #endif
> 465 vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
466 /*else mmap report uncached error for some importer, e.g. i915*/
467 }
468
469 vma->vm_pgoff = 0;
470 if (cma_obj->ddr_channel == DDR0_CHANNEL)
471 ddr_dev = hantro_dev.drm_dev->dev;
472 else if (cma_obj->ddr_channel == DDR1_CHANNEL)
473 ddr_dev = ddr1.dev;
474
---
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: 24049 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-07-31 21:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-31 21:02 [intel-linux-intel-lts:5.4/yocto 3/3] drivers/gpu/drm/hantro_driver/hantro.c:465:23: error: implicit declaration of function 'pgprot_noncached' kernel test robot
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.