X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/0a7de7458d150b5d4dffc935ba399be265ef0a1a..eb6b6ca394357805f2bdba989abae309f718b4d8:/bsd/libkern/copyio.h?ds=inline diff --git a/bsd/libkern/copyio.h b/bsd/libkern/copyio.h index 8162ded60..fc782cf05 100644 --- a/bsd/libkern/copyio.h +++ b/bsd/libkern/copyio.h @@ -32,13 +32,13 @@ __BEGIN_DECLS -int copyin(const user_addr_t uaddr, void *kaddr, size_t len); +int copyin(const user_addr_t uaddr, void *kaddr, size_t len) OS_WARN_RESULT; int copyout(const void *kaddr, user_addr_t udaddr, size_t len); #if defined (_FORTIFY_SOURCE) && _FORTIFY_SOURCE == 0 /* FORTIFY_SOURCE disabled */ #else -__attribute__((always_inline)) static inline int +OS_ALWAYS_INLINE OS_WARN_RESULT static inline int __copyin_chk(const user_addr_t uaddr, void *kaddr, size_t len, size_t chk_size) { if (chk_size < len) { @@ -47,7 +47,7 @@ __copyin_chk(const user_addr_t uaddr, void *kaddr, size_t len, size_t chk_size) return copyin(uaddr, kaddr, len); } -__attribute__((always_inline)) static inline int +OS_ALWAYS_INLINE static inline int __copyout_chk(const void *kaddr, user_addr_t uaddr, size_t len, size_t chk_size) { if (chk_size < len) {