1 // SPDX-License-Identifier: GPL-2.0 1 2 3 #include <linux/err.h> 4 #include <linux/export.h> 5 6 __force void *rust_helper_ERR_PTR(long err) 7 { 8 return ERR_PTR(err); 9 } 10 11 bool rust_helper_IS_ERR(__force const void *pt 12 { 13 return IS_ERR(ptr); 14 } 15 16 long rust_helper_PTR_ERR(__force const void *p 17 { 18 return PTR_ERR(ptr); 19 } 20
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.