at v6.12 19 lines 309 B view raw
1// SPDX-License-Identifier: GPL-2.0 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 11bool rust_helper_IS_ERR(__force const void *ptr) 12{ 13 return IS_ERR(ptr); 14} 15 16long rust_helper_PTR_ERR(__force const void *ptr) 17{ 18 return PTR_ERR(ptr); 19}