Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752346AbcLEKC3 (ORCPT ); Mon, 5 Dec 2016 05:02:29 -0500 Received: from mail-oi0-f68.google.com ([209.85.218.68]:35738 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752288AbcLEKC1 (ORCPT ); Mon, 5 Dec 2016 05:02:27 -0500 MIME-Version: 1.0 In-Reply-To: <1480925763-20254-1-git-send-email-nikita.yoush@cogentembedded.com> References: <1480925763-20254-1-git-send-email-nikita.yoush@cogentembedded.com> From: Fabio Estevam Date: Mon, 5 Dec 2016 08:02:10 -0200 Message-ID: Subject: Re: [patch net v2] net: fec: fix compile with CONFIG_M5272 To: Nikita Yushchenko Cc: "David S. Miller" , Fugang Duan , Troy Kisky , Andrew Lunn , Eric Nelson , Philippe Reynes , Johannes Berg , "netdev@vger.kernel.org" , Chris Healy , Fabio Estevam , linux-kernel Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 645 Lines: 16 On Mon, Dec 5, 2016 at 6:16 AM, Nikita Yushchenko 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 Looks better now: Reviewed-by: Fabio Estevam