]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
security: Remove unused declaration cap_mmap_file()
authorYue Haibing <yuehaibing@huawei.com>
Tue, 24 Jun 2025 01:41:08 +0000 (09:41 +0800)
committerPaul Moore <paul@paul-moore.com>
Tue, 24 Jun 2025 23:32:47 +0000 (19:32 -0400)
Commit 3f4f1f8a1ab7 ("capabilities: remove cap_mmap_file()")
removed the implementation but leave declaration.

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Reviewed-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
include/linux/security.h

index dba349629229c1f7f58801a07a03d4d1ca4b8991..e8d9f6069f0c458f7d86df80ec879c9da1e4f0fd 100644 (file)
@@ -193,8 +193,6 @@ int cap_inode_getsecurity(struct mnt_idmap *idmap,
                          struct inode *inode, const char *name, void **buffer,
                          bool alloc);
 extern int cap_mmap_addr(unsigned long addr);
-extern int cap_mmap_file(struct file *file, unsigned long reqprot,
-                        unsigned long prot, unsigned long flags);
 extern int cap_task_fix_setuid(struct cred *new, const struct cred *old, int flags);
 extern int cap_task_prctl(int option, unsigned long arg2, unsigned long arg3,
                          unsigned long arg4, unsigned long arg5);