[libbsd 21/22] Make rtems_bsd_iop_to_file() static

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Jun 24 06:33:49 UTC 2022


Update #4475.
---
 rtemsbsd/include/machine/rtems-bsd-libio.h | 2 --
 rtemsbsd/rtems/rtems-bsd-syscall-api.c     | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/rtemsbsd/include/machine/rtems-bsd-libio.h b/rtemsbsd/include/machine/rtems-bsd-libio.h
index 6dd75394..1d2cd0d2 100644
--- a/rtemsbsd/include/machine/rtems-bsd-libio.h
+++ b/rtemsbsd/include/machine/rtems-bsd-libio.h
@@ -120,8 +120,6 @@ rtems_bsd_knote_to_file(const struct knote *kn)
 	return (kn->kn_fp->data1);
 }
 
-struct file *rtems_bsd_iop_to_file(const rtems_libio_t *iop);
-
 /*
  * Set the vnode in the libio location.
  */
diff --git a/rtemsbsd/rtems/rtems-bsd-syscall-api.c b/rtemsbsd/rtems/rtems-bsd-syscall-api.c
index fc554fad..be5c615f 100644
--- a/rtemsbsd/rtems/rtems-bsd-syscall-api.c
+++ b/rtemsbsd/rtems/rtems-bsd-syscall-api.c
@@ -146,7 +146,7 @@ const rtems_filesystem_file_handlers_r rtems_bsd_sysgen_nodeops = {
 	.mmap_h = rtems_filesystem_default_mmap
 };
 
-struct file *
+static struct file *
 rtems_bsd_iop_to_file(const rtems_libio_t *iop)
 {
 
-- 
2.35.3



More information about the devel mailing list