Loading...
Note: File does not exist in v4.17.
1// SPDX-License-Identifier: GPL-2.0
2
3#include <linux/err.h>
4
5__force void *rust_helper_ERR_PTR(long err)
6{
7 return ERR_PTR(err);
8}
9
10bool rust_helper_IS_ERR(__force const void *ptr)
11{
12 return IS_ERR(ptr);
13}
14
15long rust_helper_PTR_ERR(__force const void *ptr)
16{
17 return PTR_ERR(ptr);
18}