cobalt/posix/io: Privatize some select helpers
PATCH 1/1 cobalt/posix/io: Privatize some select helpers
From: Jan Kiszka <[email protected]>
This was missed in c4c2fc21a32d.
Signed-off-by Jan Kiszka <[email protected]>
--- kernel/cobalt/posix/io.c | 6 +++--- kernel/cobalt/posix/io.h | 5 ----- 2 files changed, 3 insertions(+), 8 deletions(-)
kernel/cobalt/posix/io.c +3 -3
@@ -167,7 +167,7 @@ COBALT_SYSCALL(mmap, lostage,return cobalt_copy_to_user (u_addrp, &u_addr,sizeof (u_addr)); } -int __cobalt_first_fd_valid_p (fd_set *fds[XNSELECT_MAX_TYPES ],int nfds) +static int __cobalt_first_fd_valid_p (fd_set *fds[XNSELECT_MAX_TYPES ],int nfds) {int i, fd;
@@ -181,8 +181,8 @@ int __cobalt_first_fd_valid_p(fd_set *fds[XNSELECT_MAX_TYPES], int nfds)return 1 ; } -int __cobalt_select_bind_all (struct xnselector *selector, -fd_set *fds[XNSELECT_MAX_TYPES ],int nfds) +static int __cobalt_select_bind_all (struct xnselector *selector, +fd_set *fds[XNSELECT_MAX_TYPES ],int nfds) {bool first_fd = true;unsigned fd, type;
kernel/cobalt/posix/io.h +0 -5
@@ -23,11 +23,6 @@#include <xenomai/posix/syscall.h> #include <cobalt/kernel/select.h> -int __cobalt_first_fd_valid_p (fd_set *fds[XNSELECT_MAX_TYPES ],int nfds); - -int __cobalt_select_bind_all (struct xnselector *selector, -fd_set *fds[XNSELECT_MAX_TYPES ],int nfds); -int __cobalt_select (int nfds,void __user *u_rfds,void __user *u_wfds,void __user *u_xfds,void __user *u_tv,bool compat);
Signature · 1 line
2.31.1