mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-12-26 11:17:44 +01:00
chore[kmpp_ioc]: Disable ioc entry mismatch log
Signed-off-by: Herman Chen <herman.chen@rock-chips.com> Change-Id: Id9d0ae7d6ab968e37e6fdc8afb36750155d42d1d
This commit is contained in:
parent
4db2167ff4
commit
d1f9fdc0fb
2 changed files with 7 additions and 0 deletions
|
|
@ -32,6 +32,7 @@
|
|||
#warning "KMPP_OBJ_ACCESS_DISABLE - disable access function creation"
|
||||
#warning "KMPP_OBJ_SHARE_DISABLE - disable object sharing by /dev/kmpp_objs to userspace"
|
||||
#warning "KMPP_OBJ_HIERARCHY_ENABLE - enable hierarchy name creation"
|
||||
#warning "KMPP_OBJ_MISMATCH_LOG_DISABLE - disable entry query mismatch log"
|
||||
|
||||
#ifndef KMPP_OBJ_NAME
|
||||
#error "KMPP_OBJ_NAME not defined"
|
||||
|
|
@ -292,6 +293,10 @@ static void CONCAT_US(KMPP_OBJ_NAME, register)(void)
|
|||
kmpp_objdef_add_entry(KMPP_OBJ_DEF(KMPP_OBJ_NAME), NULL, NULL);
|
||||
}
|
||||
|
||||
#if defined(KMPP_OBJ_MISMATCH_LOG_DISABLE)
|
||||
kmpp_objdef_set_prop(KMPP_OBJ_DEF(KMPP_OBJ_NAME), "disable_mismatch_log", 1);
|
||||
#endif
|
||||
|
||||
KMPP_OBJ_ENTRY_TABLE(KMPP_OBJ_NAME, ENTRY_QUERY, ENTRY_QUERY,
|
||||
HOOK_QUERY, HOOK_QUERY, ENTRY_NOTHING);
|
||||
|
||||
|
|
@ -518,6 +523,7 @@ KMPP_OBJ_FUNC_IOCTL(KMPP_OBJ_NAME, IOCTL_CTX, IOCTL_IN_, IOCTL_OUT, IOCTL_IO_)
|
|||
#undef KMPP_OBJ_ACCESS_DISABLE
|
||||
#undef KMPP_OBJ_SHARE_DISABLE
|
||||
#undef KMPP_OBJ_HIERARCHY_ENABLE
|
||||
#undef KMPP_OBJ_MISMATCH_LOG_DISABLE
|
||||
|
||||
/* undef tmp macro */
|
||||
#undef ENTRY_TO_TRIE
|
||||
|
|
|
|||
|
|
@ -35,4 +35,5 @@ typedef struct KmppIocImpl_t {
|
|||
#define KMPP_OBJ_IMPL_TYPE KmppIocImpl
|
||||
#define KMPP_OBJ_SGLN_ID MPP_SGLN_KMPP_IOC
|
||||
#define KMPP_OBJ_ENTRY_TABLE KMPP_IOC_ENTRY_TABLE
|
||||
#define KMPP_OBJ_MISMATCH_LOG_DISABLE
|
||||
#include "kmpp_obj_helper.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue