* [tobetter:odroid-6.10.y 37/56] drivers/char/aml-gpiomem.c:129:29: error: implicit declaration of function 'phys_mem_access_prot'; did you mean 'phys_mem_access_prot_allowed'?
@ 2024-09-07 7:47 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-09-07 7:47 UTC (permalink / raw)
To: Steve Jeong; +Cc: oe-kbuild-all, Dongjin Kim
tree: https://github.com/tobetter/linux odroid-6.10.y
head: d464381853b77cfca0cc9bdd19b3edf4bac8f0c0
commit: 5c70fa7bdce06ef372ba87e68f1c1b8bb2174d76 [37/56] ODROID-N2/C4: char: Add /dev/gpiomem device
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20240907/202409071543.gReRuTLg-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240907/202409071543.gReRuTLg-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409071543.gReRuTLg-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/char/aml-gpiomem.c: In function 'aml_gpiomem_mmap':
>> drivers/char/aml-gpiomem.c:129:29: error: implicit declaration of function 'phys_mem_access_prot'; did you mean 'phys_mem_access_prot_allowed'? [-Werror=implicit-function-declaration]
129 | vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_pgoff,
| ^~~~~~~~~~~~~~~~~~~~
| phys_mem_access_prot_allowed
>> drivers/char/aml-gpiomem.c:129:29: error: incompatible types when assigning to type 'pgprot_t' from type 'int'
cc1: some warnings being treated as errors
vim +129 drivers/char/aml-gpiomem.c
112
113 static int aml_gpiomem_mmap(struct file *file, struct vm_area_struct *vma)
114 {
115 int gpio_area = 0;
116 unsigned long start = vma->vm_pgoff << PAGE_SHIFT;
117 unsigned long end = start + vma->vm_end - vma->vm_start;
118
119 while (gpio_area < inst->gpio_area_count) {
120 if ((inst->gpio_regs_phys[gpio_area].start >= start) &&
121 (inst->gpio_regs_phys[gpio_area].end <= end))
122 goto found;
123 gpio_area++;
124 }
125
126 return -EACCES;
127
128 found:
> 129 vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_pgoff,
130 vma->vm_end - vma->vm_start,
131 vma->vm_page_prot);
132
133 vma->vm_ops = &aml_gpiomem_vm_ops;
134
135 if (remap_pfn_range(vma, vma->vm_start,
136 vma->vm_pgoff,
137 vma->vm_end - vma->vm_start,
138 vma->vm_page_prot)) {
139 return -EAGAIN;
140 }
141
142 return 0;
143 }
144
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-09-07 7:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-07 7:47 [tobetter:odroid-6.10.y 37/56] drivers/char/aml-gpiomem.c:129:29: error: implicit declaration of function 'phys_mem_access_prot'; did you mean 'phys_mem_access_prot_allowed'? 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.