projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[POWERPC] PPC: Use ARRAY_SIZE macro when appropriate
[powerpc.git]
/
arch
/
ppc
/
lib
/
rheap.c
diff --git
a/arch/ppc/lib/rheap.c
b/arch/ppc/lib/rheap.c
index
31e5118
..
d407007
100644
(file)
--- a/
arch/ppc/lib/rheap.c
+++ b/
arch/ppc/lib/rheap.c
@@
-14,6
+14,7
@@
*/
#include <linux/types.h>
#include <linux/errno.h>
*/
#include <linux/types.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/slab.h>
@@
-654,7
+655,7
@@
void rh_dump(rh_info_t * info)
int maxnr;
int i, nr;
int maxnr;
int i, nr;
- maxnr =
sizeof(st) / sizeof(st[0]
);
+ maxnr =
ARRAY_SIZE(st
);
printk(KERN_INFO
"info @0x%p (%d slots empty / %d max)\n",
printk(KERN_INFO
"info @0x%p (%d slots empty / %d max)\n",