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