1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 2 3 #include <linux/err.h> 3 #include <linux/err.h> 4 #include <linux/export.h> 4 #include <linux/export.h> 5 5 6 __force void *rust_helper_ERR_PTR(long err) 6 __force void *rust_helper_ERR_PTR(long err) 7 { 7 { 8 return ERR_PTR(err); 8 return ERR_PTR(err); 9 } 9 } 10 10 11 bool rust_helper_IS_ERR(__force const void *pt 11 bool rust_helper_IS_ERR(__force const void *ptr) 12 { 12 { 13 return IS_ERR(ptr); 13 return IS_ERR(ptr); 14 } 14 } 15 15 16 long rust_helper_PTR_ERR(__force const void *p 16 long rust_helper_PTR_ERR(__force const void *ptr) 17 { 17 { 18 return PTR_ERR(ptr); 18 return PTR_ERR(ptr); 19 } 19 } 20 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.