Re: [PATCH 6/8] x86/dump_pagetables: Add support 5-level paging

From: Ingo Molnar
Date: Tue Mar 28 2017 - 02:21:08 EST



* Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx> wrote:

> +#if PTRS_PER_P4D > 1
> +
> +static void walk_p4d_level(struct seq_file *m, struct pg_state *st, pgd_t addr,
> + unsigned long P)

Pretty ugly line break. Either don't break the line, or break it in a more logical
place, like:

static void
walk_p4d_level(struct seq_file *m, struct pg_state *st, pgd_t addr, unsigned long P)

> + start = (p4d_t *) pgd_page_vaddr(addr);

The space between the type cast and the function invocation is not needed.

Thanks,

Ingo