Re: [patch net v2] net: fec: fix compile with CONFIG_M5272

From: Fabio Estevam
Date: Mon Dec 05 2016 - 05:02:31 EST


On Mon, Dec 5, 2016 at 6:16 AM, Nikita Yushchenko
<nikita.yoush@xxxxxxxxxxxxxxxxxx> wrote:
> Commit 4dfb80d18d05 ("net: fec: cache statistics while device is down")
> introduced unconditional statistics-related actions.
>
> However, when driver is compiled with CONFIG_M5272, staticsics-related
> definitions do not exist, which results into build errors.
>
> Fix that by adding explicit handling of !defined(CONFIG_M5272) case.
>
> Fixes: 4dfb80d18d05 ("net: fec: cache statistics while device is down")
> Signed-off-by: Nikita Yushchenko <nikita.yoush@xxxxxxxxxxxxxxxxxx>

Looks better now:

Reviewed-by: Fabio Estevam <fabio.estevam@xxxxxxx>