| 1 | |
| 2 |
|
| 3 | #include <linux/err.h>
|
| 4 |
|
| 5 | __rust_helper __force void *rust_helper_ERR_PTR(long err)
|
| 6 | {
|
| 7 | return ERR_PTR(err);
|
| 8 | }
|
| 9 |
|
| 10 | __rust_helper bool rust_helper_IS_ERR(__force const void *ptr)
|
| 11 | {
|
| 12 | return IS_ERR(ptr);
|
| 13 | }
|
| 14 |
|
| 15 | __rust_helper long rust_helper_PTR_ERR(__force const void *ptr)
|
| 16 | {
|
| 17 | return PTR_ERR(ptr);
|
| 18 | }
|