projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e78acf6
)
kdb: use ARRAY_SIZE where possible
author
Sasha Levin
<sasha.levin@oracle.com>
Thu, 20 Dec 2012 19:11:27 +0000
(14:11 -0500)
committer
Jason Wessel
<jason.wessel@windriver.com>
Sat, 2 Mar 2013 14:52:17 +0000
(08:52 -0600)
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
kernel/debug/kdb/kdb_main.c
patch
|
blob
|
history
diff --git
a/kernel/debug/kdb/kdb_main.c
b/kernel/debug/kdb/kdb_main.c
index a52493a66cf29705d53be080663f8b15bd2ef556..437b74ddca81e0d2bd1d5c5edd4f6397552167d6 100644
(file)
--- a/
kernel/debug/kdb/kdb_main.c
+++ b/
kernel/debug/kdb/kdb_main.c
@@
-124,7
+124,7
@@
static kdbmsg_t kdbmsgs[] = {
};
#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,
};
-static const int __nenv =
(sizeof(__env) / sizeof(char *)
);
+static const int __nenv =
ARRAY_SIZE(__env
);
struct task_struct *kdb_curr_task(int cpu)
{