mirror of
https://github.com/openharmony/kernel_linux_common_modules.git
synced 2026-08-27 01:31:36 -04:00
81f54ec9ed
Signed-off-by: limerence <shituanhui@huawei.com>
30 lines
462 B
C
Executable File
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 */
|