1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 3 * Copyright (c) 2023 Huawei Device Co., Ltd. 4 */ 5 6 #ifndef _XPM_DEBUGFS_H 7 8 #ifdef CONFIG_SECURITY_XPM_DEBUG 9 int xpm_debugfs_init(void); 10 void xpm_debugfs_exit(void); 11 bool xpm_is_permissve_mode(void); 12 13 #else xpm_debugfs_init(void)14static inline int xpm_debugfs_init(void) 15 { 16 return 0; 17 } 18 xpm_debugfs_exit(void)19static inline void xpm_debugfs_exit(void) 20 { 21 } 22 xpm_is_permissve_mode(void)23static inline bool xpm_is_permissve_mode(void) 24 { 25 return true; 26 } 27 #endif 28 29 #endif /* _XPM_DEBUGFS_H */ 30