The branch main has been updated by markj:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=3509dcd11a982107d957b99f6740704e9c522bd8

commit 3509dcd11a982107d957b99f6740704e9c522bd8
Author:     Mark Johnston <[email protected]>
AuthorDate: 2025-10-15 20:15:51 +0000
Commit:     Mark Johnston <[email protected]>
CommitDate: 2025-10-15 20:15:51 +0000

    socket: Annotate sooptcopyin() and sooptcopyout() with __result_use_check
    
    Just like we do with copyin() and copyout().
    
    Reviewed by:    glebius
    MFC after:      2 weeks
    Differential Revision:  https://reviews.freebsd.org/D53114
---
 sys/sys/sockopt.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sys/sys/sockopt.h b/sys/sys/sockopt.h
index bfe12d8510d7..d2b0ff5ed2c8 100644
--- a/sys/sys/sockopt.h
+++ b/sys/sys/sockopt.h
@@ -57,8 +57,10 @@ struct       sockopt {
 
 int    sosetopt(struct socket *so, struct sockopt *sopt);
 int    sogetopt(struct socket *so, struct sockopt *sopt);
-int    sooptcopyin(struct sockopt *sopt, void *buf, size_t len, size_t minlen);
-int    sooptcopyout(struct sockopt *sopt, const void *buf, size_t len);
+int __result_use_check sooptcopyin(struct sockopt *sopt, void *buf, size_t len,
+    size_t minlen);
+int __result_use_check sooptcopyout(struct sockopt *sopt, const void *buf,
+    size_t len);
 int    soopt_getm(struct sockopt *sopt, struct mbuf **mp);
 int    soopt_mcopyin(struct sockopt *sopt, struct mbuf *m);
 int    soopt_mcopyout(struct sockopt *sopt, struct mbuf *m);

Reply via email to