Re: [RFC PATCH v4 01/12] __wr_after_init: Core and default arch

From: Matthew Wilcox
Date: Mon Feb 11 2019 - 21:40:03 EST


On Tue, Feb 12, 2019 at 01:27:38AM +0200, Igor Stoppa wrote:
> +#ifndef CONFIG_PRMEM
[...]
> +#else
> +
> +#include <linux/mm.h>

It's a mistake to do conditional includes like this. That way you see
include loops with some configs and not others. Our headers are already
so messy, better to just include mm.h unconditionally.