Commit 5f784f79 authored by Sasha Levin's avatar Sasha Levin Committed by Jason Wessel

kdb: use ARRAY_SIZE where possible

Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
Signed-off-by: default avatarJason Wessel <jason.wessel@windriver.com>
parent e78acf67
...@@ -124,7 +124,7 @@ static kdbmsg_t kdbmsgs[] = { ...@@ -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[] = { ...@@ -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)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment