mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-07 13:43:51 +00:00
kdb: use ARRAY_SIZE where possible
Signed-off-by: Sasha Levin <sasha.levin@oracle.com> Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
This commit is contained in:
parent
e78acf67ba
commit
5f784f798c
@ -124,7 +124,7 @@ static kdbmsg_t kdbmsgs[] = {
|
|||||||
};
|
};
|
||||||
#undef KDBMSG
|
#undef KDBMSG
|
||||||
|
|
||||||
static const int __nkdb_err = sizeof(kdbmsgs) / sizeof(kdbmsg_t);
|
static const int __nkdb_err = ARRAY_SIZE(kdbmsgs);
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -175,7 +175,7 @@ static char *__env[] = {
|
|||||||
(char *)0,
|
(char *)0,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const int __nenv = (sizeof(__env) / sizeof(char *));
|
static const int __nenv = ARRAY_SIZE(__env);
|
||||||
|
|
||||||
struct task_struct *kdb_curr_task(int cpu)
|
struct task_struct *kdb_curr_task(int cpu)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user