mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [tobetter:odroid-5.15.y 21/74] drivers/char/exynos-gpiomem.c:121:29: error: implicit declaration of function 'phys_mem_access_prot'; did you mean 'phys_mem_access_prot_allowed'?
@ 2021-11-03  9:22 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-03  9:22 UTC (permalink / raw)
  To: Brian Kim; +Cc: kbuild-all, linux-kernel, Dongjin Kim, memeka, Yang Deokgyu

[-- Attachment #1: Type: text/plain, Size: 2647 bytes --]

tree:   https://github.com/tobetter/linux odroid-5.15.y
head:   bcf324ec70af843cc1e6a88e67a8b7f44c4739bb
commit: 61f45d975621becb00c0aef303769f10428b9cd8 [21/74] ODROID-XU4: char: exynos: add /dev/gpiomem device for rootless user GPIO access
config: parisc-buildonly-randconfig-r003-20211103 (attached as .config)
compiler: hppa-linux-gcc (GCC) 11.2.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
        # https://github.com/tobetter/linux/commit/61f45d975621becb00c0aef303769f10428b9cd8
        git remote add tobetter https://github.com/tobetter/linux
        git fetch --no-tags tobetter odroid-5.15.y
        git checkout 61f45d975621becb00c0aef303769f10428b9cd8
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=parisc 

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 >>):

   drivers/char/exynos-gpiomem.c: In function 'exynos_gpiomem_mmap':
>> drivers/char/exynos-gpiomem.c:121:29: error: implicit declaration of function 'phys_mem_access_prot'; did you mean 'phys_mem_access_prot_allowed'? [-Werror=implicit-function-declaration]
     121 |         vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_pgoff,
         |                             ^~~~~~~~~~~~~~~~~~~~
         |                             phys_mem_access_prot_allowed
>> drivers/char/exynos-gpiomem.c:121:29: error: incompatible types when assigning to type 'pgprot_t' from type 'int'
   cc1: all warnings being treated as errors


vim +121 drivers/char/exynos-gpiomem.c

   106	
   107	static int exynos_gpiomem_mmap(struct file *file, struct vm_area_struct *vma)
   108	{
   109		int gpio_area = 0;
   110	
   111		while (gpio_area < inst->gpio_area_count) {
   112			if ((inst->gpio_regs_phys[gpio_area] >> PAGE_SHIFT) == vma->vm_pgoff)
   113				goto found;
   114	
   115			gpio_area++;
   116		}
   117	
   118		return -EACCES;
   119	
   120	found:
 > 121		vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_pgoff,
   122				PAGE_SIZE,
   123				vma->vm_page_prot);
   124	
   125		vma->vm_ops = &exynos_gpiomem_vm_ops;
   126	
   127		if (remap_pfn_range(vma, vma->vm_start,
   128					vma->vm_pgoff,
   129					PAGE_SIZE,
   130					vma->vm_page_prot)) {
   131			return -EAGAIN;
   132		}
   133	
   134		return 0;
   135	}
   136	

---
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: 31044 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-03  9:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-03  9:22 [tobetter:odroid-5.15.y 21/74] drivers/char/exynos-gpiomem.c:121:29: error: implicit declaration of function 'phys_mem_access_prot'; did you mean 'phys_mem_access_prot_allowed'? kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome