kernel: fix compile errors & warnings on android13-5.15 gki

This commit is contained in:
weishu
2022-12-20 10:51:40 +07:00
parent c5da14ae4b
commit 758c8eb845
3 changed files with 36 additions and 21 deletions

View File

@@ -87,13 +87,14 @@ exit:
}
bool ksu_is_allow_uid(uid_t uid) {
struct perm_data *p = NULL;
struct list_head *pos = NULL;
if (uid == 0) {
// already root
return true;
}
struct perm_data *p = NULL;
struct list_head *pos = NULL;
list_for_each(pos, &allow_list) {
p = list_entry(pos, struct perm_data, list);
// pr_info("is_allow_uid uid :%d, allow: %d\n", p->uid, p->allow);
@@ -162,7 +163,6 @@ void do_load_allow_list(struct work_struct *work) {
loff_t off = 0;
ssize_t ret = 0;
struct file *fp = NULL;
int n = 0;
u32 magic;
u32 version;