git: 143da26632a9 - main - kern_revoke: remove always UIO_USERSPACE pathseg argument

From: Brooks Davis <brooks_at_FreeBSD.org>
Date: Fri, 13 Nov 2026 15:39:28 UTC
The branch main has been updated by brooks:

URL: https://cgit.FreeBSD.org/src/commit/?id=143da26632a9ece8a789f24fd2c7ed4457783016

commit 143da26632a9ece8a789f24fd2c7ed4457783016
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2026-11-13 15:25:01 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2026-11-13 15:35:42 +0000

    kern_revoke: remove always UIO_USERSPACE pathseg argument
    
    In FreeBSD and CheriBSD pathseg was always UIO_USERSPACE and when I
    extracted the patch for FreeBSD, I failed to propogate it to NAMEI.
    Since it's always the same, remove it as needless generality.
    
    Reported by:    netchild
    Sponsored by:   Innovate UK
    Fixes:          7273d80ba18c ("vfs_syscalls.c: add kern_ and user_ implementations")
---
 sys/kern/vfs_syscalls.c | 4 ++--
 sys/sys/syscallsubr.h   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 782443957e4c..225dd09e6c25 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -4570,11 +4570,11 @@ struct revoke_args {
 int
 sys_revoke(struct thread *td, struct revoke_args *uap)
 {
-	return (kern_revoke(td, uap->path, UIO_USERSPACE));
+	return (kern_revoke(td, uap->path));
 }
 
 int
-kern_revoke(struct thread *td, const char *path, enum uio_seg pathseg)
+kern_revoke(struct thread *td, const char *path)
 {
 	struct vnode *vp;
 	struct vattr vattr;
diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h
index 66c07c59a52f..9698ccf8ebcd 100644
--- a/sys/sys/syscallsubr.h
+++ b/sys/sys/syscallsubr.h
@@ -461,7 +461,7 @@ int	kern_recvit(struct thread *td, int s, struct msghdr *mp,
 	    enum uio_seg fromseg, struct mbuf **controlp);
 int	kern_renameat(struct thread *td, int fromfd, const char *from,
 	    int tofd, const char *to, enum uio_seg pathseg, u_int flags);
-int	kern_revoke(struct thread *td, const char *path, enum uio_seg pathseg);
+int	kern_revoke(struct thread *td, const char *path);
 int	kern_rtprio(struct thread *td, int function, pid_t pid,
 	    struct rtprio *urtp);
 int	kern_rtprio_thread(struct thread *td, int function, lwpid_t lwpid,