* [linux-next:master 6300/6828] fs/erofs/ishare.c:157:15: error: implicit declaration of function 'security_mmap_backing_file'
@ 2026-03-17 22:29 kernel test robot
2026-03-17 22:44 ` Paul Moore
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2026-03-17 22:29 UTC (permalink / raw)
To: Paul Moore; +Cc: oe-kbuild-all, Amir Goldstein
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 8e5a478b6d6a5bb0a3d52147862b15e4d826af19
commit: 0e2baaf8fed0eba6ae83949b8bd317d808efd220 [6300/6828] lsm: add the security_mmap_backing_file() hook
config: i386-randconfig-003-20260317 (https://download.01.org/0day-ci/archive/20260318/202603180630.HWujluGX-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260318/202603180630.HWujluGX-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/202603180630.HWujluGX-lkp@intel.com/
All errors (new ones prefixed by >>):
fs/erofs/ishare.c: In function 'erofs_ishare_mmap':
>> fs/erofs/ishare.c:157:15: error: implicit declaration of function 'security_mmap_backing_file' [-Wimplicit-function-declaration]
157 | err = security_mmap_backing_file(vma, realfile, file);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/security_mmap_backing_file +157 fs/erofs/ishare.c
149
150 static int erofs_ishare_mmap(struct file *file, struct vm_area_struct *vma)
151 {
152 struct file *realfile = file->private_data;
153 int err;
154
155 vma_set_file(vma, realfile);
156
> 157 err = security_mmap_backing_file(vma, realfile, file);
158 if (err)
159 return err;
160
161 return generic_file_readonly_mmap(file, vma);
162 }
163
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-next:master 6300/6828] fs/erofs/ishare.c:157:15: error: implicit declaration of function 'security_mmap_backing_file'
2026-03-17 22:29 [linux-next:master 6300/6828] fs/erofs/ishare.c:157:15: error: implicit declaration of function 'security_mmap_backing_file' kernel test robot
@ 2026-03-17 22:44 ` Paul Moore
0 siblings, 0 replies; 2+ messages in thread
From: Paul Moore @ 2026-03-17 22:44 UTC (permalink / raw)
To: kernel test robot; +Cc: oe-kbuild-all, Amir Goldstein
On Tue, Mar 17, 2026 at 6:29 PM kernel test robot <lkp@intel.com> wrote:
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head: 8e5a478b6d6a5bb0a3d52147862b15e4d826af19
> commit: 0e2baaf8fed0eba6ae83949b8bd317d808efd220 [6300/6828] lsm: add the security_mmap_backing_file() hook
> config: i386-randconfig-003-20260317 (https://download.01.org/0day-ci/archive/20260318/202603180630.HWujluGX-lkp@intel.com/config)
> compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260318/202603180630.HWujluGX-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/202603180630.HWujluGX-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
> fs/erofs/ishare.c: In function 'erofs_ishare_mmap':
> >> fs/erofs/ishare.c:157:15: error: implicit declaration of function 'security_mmap_backing_file' [-Wimplicit-function-declaration]
> 157 | err = security_mmap_backing_file(vma, realfile, file);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
> vim +/security_mmap_backing_file +157 fs/erofs/ishare.c
>
> 149
> 150 static int erofs_ishare_mmap(struct file *file, struct vm_area_struct *vma)
> 151 {
> 152 struct file *realfile = file->private_data;
> 153 int err;
> 154
> 155 vma_set_file(vma, realfile);
> 156
> > 157 err = security_mmap_backing_file(vma, realfile, file);
> 158 if (err)
> 159 return err;
> 160
> 161 return generic_file_readonly_mmap(file, vma);
> 162 }
> 163
>
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki
Fixed, thanks robot.
https://lore.kernel.org/linux-security-module/CAHC9VhTiB73F9fB1o3K4NfJ-Fa50MsVA_=79kn6X34L62J_TwA@mail.gmail.com
--
paul-moore.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-03-17 22:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-17 22:29 [linux-next:master 6300/6828] fs/erofs/ishare.c:157:15: error: implicit declaration of function 'security_mmap_backing_file' kernel test robot
2026-03-17 22:44 ` Paul Moore
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.