diff options
author | Ahmed S. Darwish <darwish.07@gmail.com> | 2007-02-06 01:14:09 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-02-08 06:08:18 +0100 |
commit | 3839a5943977674d224cca541fd0914b942aa466 (patch) | |
tree | e680a69c5052e8746539ebc2e3561f62f92f0b50 /arch/powerpc/lib | |
parent | [POWERPC] Fix ppc64's writing to struct file_operations (diff) | |
download | linux-3839a5943977674d224cca541fd0914b942aa466.tar.xz linux-3839a5943977674d224cca541fd0914b942aa466.zip |
[POWERPC] Use ARRAY_SIZE macro when appropriate
Use ARRAY_SIZE macro already defined in linux/kernel.h
Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/lib')
-rw-r--r-- | arch/powerpc/lib/rheap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/lib/rheap.c b/arch/powerpc/lib/rheap.c index 4bbda6b2be45..6c5c5dd183ee 100644 --- a/arch/powerpc/lib/rheap.c +++ b/arch/powerpc/lib/rheap.c @@ -14,6 +14,7 @@ */ #include <linux/types.h> #include <linux/errno.h> +#include <linux/kernel.h> #include <linux/mm.h> #include <linux/slab.h> @@ -671,7 +672,7 @@ void rh_dump(rh_info_t * info) 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", |