mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
KVM: arm64: Get rid of find_reg_by_id()
This helper doesn't have a user anymore, let's get rid of it. Signed-off-by: Marc Zyngier <maz@kernel.org>
This commit is contained in:
parent
619064afa9
commit
f6dddbb255
2 changed files with 0 additions and 16 deletions
|
@ -2577,17 +2577,6 @@ static bool index_to_params(u64 id, struct sys_reg_params *params)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct sys_reg_desc *find_reg_by_id(u64 id,
|
|
||||||
struct sys_reg_params *params,
|
|
||||||
const struct sys_reg_desc table[],
|
|
||||||
unsigned int num)
|
|
||||||
{
|
|
||||||
if (!index_to_params(id, params))
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
return find_reg(params, table, num);
|
|
||||||
}
|
|
||||||
|
|
||||||
const struct sys_reg_desc *get_reg_by_id(u64 id,
|
const struct sys_reg_desc *get_reg_by_id(u64 id,
|
||||||
const struct sys_reg_desc table[],
|
const struct sys_reg_desc table[],
|
||||||
unsigned int num)
|
unsigned int num)
|
||||||
|
|
|
@ -190,11 +190,6 @@ find_reg(const struct sys_reg_params *params, const struct sys_reg_desc table[],
|
||||||
return __inline_bsearch((void *)pval, table, num, sizeof(table[0]), match_sys_reg);
|
return __inline_bsearch((void *)pval, table, num, sizeof(table[0]), match_sys_reg);
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct sys_reg_desc *find_reg_by_id(u64 id,
|
|
||||||
struct sys_reg_params *params,
|
|
||||||
const struct sys_reg_desc table[],
|
|
||||||
unsigned int num);
|
|
||||||
|
|
||||||
const struct sys_reg_desc *get_reg_by_id(u64 id,
|
const struct sys_reg_desc *get_reg_by_id(u64 id,
|
||||||
const struct sys_reg_desc table[],
|
const struct sys_reg_desc table[],
|
||||||
unsigned int num);
|
unsigned int num);
|
||||||
|
|
Loading…
Reference in a new issue