numa: change address argument type from unsigned long to kernel_ureg_t

* numa.c (print_nodemask): Change address argument type from
unsigned long to kernel_ureg_t.
This commit is contained in:
Дмитрий Левин 2016-12-23 19:59:46 +00:00
parent d7f98585ef
commit ef0d6e4699

3
numa.c
View File

@ -43,7 +43,8 @@ print_node(struct tcb *tcp, void *elem_buf, size_t elem_size, void *data)
}
static void
print_nodemask(struct tcb *tcp, unsigned long addr, unsigned long maxnodes)
print_nodemask(struct tcb *const tcp, const kernel_ureg_t addr,
const unsigned long maxnodes)
{
const unsigned long nmemb =
(maxnodes + 8 * current_wordsize - 2) / (8 * current_wordsize);