Skip to contentSkip to conversation

cobalt/posix/io: Privatize some select helpers

PATCH New Jan Kiszka 1 participant 1 message Sep 13, 2021

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 cobalt/posix/io: Privatize some select helpers

From: Jan Kiszka <[email protected]>

This was missed in c4c2fc21a32d.

---
 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
index 0c17f55bf3..be8a2d3f0f 100644
@@ -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
index d9f29fa595..c02595b4f3 100644
@@ -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