From patchwork Tue Jan 8 03:20:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 210286 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id EE2172C0093 for ; Tue, 8 Jan 2013 14:26:27 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753168Ab3AHD0Z (ORCPT ); Mon, 7 Jan 2013 22:26:25 -0500 Received: from mail-yh0-f54.google.com ([209.85.213.54]:35823 "EHLO mail-yh0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751568Ab3AHD0Y (ORCPT ); Mon, 7 Jan 2013 22:26:24 -0500 X-Greylist: delayed 334 seconds by postgrey-1.27 at vger.kernel.org; Mon, 07 Jan 2013 22:26:24 EST Received: by mail-yh0-f54.google.com with SMTP id i57so1547632yha.13 for ; Mon, 07 Jan 2013 19:26:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=P5RJUz1Jr/leqiKJeR6WT6IrD5rN4BQaFNQAEqCt2B0=; b=VWBMXo0FJ4WmCzC6KTSEH9y3q5DwuKLpzUobAj/J/jinPxBWTmC7weBRpT907O78sU Y8x+GJfEg4IVsP61ALgMi0Jvno+MXezSPbczr4DSBWAFqcKZ+PoCWQ/1uc3dtXSPFxNy IKQii5Kh0YdEA8iUkEOw9qYcUuXkMi0/jrAxtHvRjSrghpOrNxfjOzEjaPeYhtyQuEJh nljbebm3+1BEDGzgZxbPztgd10g31GUtxvRXRl9XLMgCpGXNaDRtqUuuHBHNihUIGwAH f9EoLRk1yATKw01gSHH1WvgWGfPJ5yJWf1xAnlxXhZIZneWFrwSP11MnR7k7gz4E86+q wRVQ== X-Received: by 10.236.126.135 with SMTP id b7mr12879359yhi.18.1357615249891; Mon, 07 Jan 2013 19:20:49 -0800 (PST) Received: from fabio-Latitude-E6410.cps.virtua.com.br ([189.61.223.46]) by mx.google.com with ESMTPS id e39sm46226584ani.16.2013.01.07.19.20.47 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Jan 2013 19:20:48 -0800 (PST) From: Fabio Estevam To: davem@davemloft.net Cc: shawn.guo@linaro.org, netdev@vger.kernel.org, Fabio Estevam Subject: [PATCH] net: fec: Place 'inline' in the beginning of declaration Date: Tue, 8 Jan 2013 01:20:33 -0200 Message-Id: <1357615233-30241-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Fabio Estevam Fix the following warning when building with W=1 option: drivers/net/ethernet/freescale/fec.c:810:1: warning: '__inline__' is not at beginning of declaration [-Wold-style-declaration] Putting __inline__ in the beggining then checkpath complains: WARNING: plain inline is preferred over __inline__ #24: FILE: drivers/net/ethernet/freescale/fec.c:810: +static __inline__ void fec_get_mac(struct net_device *ndev) ,so use 'inline' in the beginning and make gcc and checkpath happy. Signed-off-by: Fabio Estevam --- drivers/net/ethernet/freescale/fec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/fec.c b/drivers/net/ethernet/freescale/fec.c index a379319..4624f6b 100644 --- a/drivers/net/ethernet/freescale/fec.c +++ b/drivers/net/ethernet/freescale/fec.c @@ -807,7 +807,7 @@ fec_enet_interrupt(int irq, void *dev_id) /* ------------------------------------------------------------------------- */ -static void __inline__ fec_get_mac(struct net_device *ndev) +static inline void fec_get_mac(struct net_device *ndev) { struct fec_enet_private *fep = netdev_priv(ndev); struct fec_platform_data *pdata = fep->pdev->dev.platform_data;