ucopysize.h 451 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __LINUX_UCOPYSIZE_H__
  3. #define __LINUX_UCOPYSIZE_H__
  4. #include <linux/bug.h>
  5. static inline void check_object_size(const void *ptr, unsigned long n,
  6. bool to_user)
  7. { }
  8. static inline void copy_overflow(int size, unsigned long count)
  9. {
  10. }
  11. static __always_inline __must_check bool
  12. check_copy_size(const void *addr, size_t bytes, bool is_source)
  13. {
  14. return true;
  15. }
  16. #endif /* __LINUX_UCOPYSIZE_H__ */