mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 12:16:45 +07:00
arch/parisc/include/asm: use ARRAY_SIZE macro in mmzone.h
Signed-off-by: Nikitas Angelinas <nikitasangelinas@gmail.com> Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
dc5322e5ae
commit
1dda59b4f3
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user