projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc5322e
)
arch/parisc/include/asm: use ARRAY_SIZE macro in mmzone.h
author
Nikitas Angelinas
<nikitasangelinas@gmail.com>
Wed, 8 Sep 2010 21:11:13 +0000
(21:11 +0000)
committer
Helge Deller
<deller@gmx.de>
Wed, 20 Feb 2013 21:57:49 +0000
(22:57 +0100)
Signed-off-by: Nikitas Angelinas <nikitasangelinas@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/mmzone.h
patch
|
blob
|
history
diff --git
a/arch/parisc/include/asm/mmzone.h
b/arch/parisc/include/asm/mmzone.h
index 31835b998a5a4ea00d75c27c2f2ee3fe32bbcab5..0e625ab9aaec90df20e3a5059ad792cd8f293a10 100644
(file)
--- a/
arch/parisc/include/asm/mmzone.h
+++ b/
arch/parisc/include/asm/mmzone.h
@@
-45,7
+45,7
@@
static inline int pfn_to_nid(unsigned long pfn)
return 0;
i = pfn >> PFNNID_SHIFT;
- BUG_ON(i >=
sizeof(pfnnid_map) / sizeof(pfnnid_map[0]
));
+ BUG_ON(i >=
ARRAY_SIZE(pfnnid_map
));
r = pfnnid_map[i];
BUG_ON(r == 0xff);