Files
kernel_linux_common_modules/xpm/include/xpm_debugfs.h
T
limerence 81f54ec9ed fix xpm coding style problem
Signed-off-by: limerence <shituanhui@huawei.com>
2023-06-28 17:01:37 +08:00

30 lines
462 B
C
Executable File

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Copyright (c) 2023 Huawei Device Co., Ltd.
*/
#ifndef _XPM_DEBUGFS_H
#ifdef CONFIG_SECURITY_XPM_DEBUG
int xpm_debugfs_init(void);
void xpm_debugfs_exit(void);
bool xpm_is_permissve_mode(void);
#else
static inline int xpm_debugfs_init(void)
{
return 0;
}
static inline void xpm_debugfs_exit(void)
{
}
static inline bool xpm_is_permissve_mode(void)
{
return true;
}
#endif
#endif /* _XPM_DEBUGFS_H */