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