From patchwork Tue Jan 8 03:29:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 210287 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 20EB42C009A for ; Tue, 8 Jan 2013 14:29:31 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753282Ab3AHD32 (ORCPT ); Mon, 7 Jan 2013 22:29:28 -0500 Received: from mail-yh0-f53.google.com ([209.85.213.53]:38597 "EHLO mail-yh0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751129Ab3AHD31 (ORCPT ); Mon, 7 Jan 2013 22:29:27 -0500 Received: by mail-yh0-f53.google.com with SMTP id q11so3279937yhf.12 for ; Mon, 07 Jan 2013 19:29:27 -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=bOeWegyttVX5lsHGXw+O/7XE4VdTL48FreMh6683WVk=; b=Gkt7Y/6npF0fYstCC2hEHkRwy/inFtXCm+idUJY+5DmMKj5KJRLD2sZsVIUGR3lUnL wUQxLHFdbjNdUoJDwdalbPsHmgN/pVKwnfW+S/GCXeBhnP7weh+eKqfWUYYPyrW3v3Av 0xexVp5mcgL5D7nKKTBaIb/lfLY9HkhlpVrsxbA6+SO9NnabXuaJ4ANb2KHqnW8a+duH pBMYU/KG3WCv0hLFURHevZY8ffjOsdzoAJN9vfrGUjWJAdPHj+1ttrys1ksP7czOQJ0e R2D2gbap2Z3+f7BVFSmnrlg1Yb8kWNJ/sOQrfVUSW0ZOVFgnif/tfcH9jC0/pqwsMGia b77Q== X-Received: by 10.101.129.35 with SMTP id g35mr20040132ann.4.1357615767042; Mon, 07 Jan 2013 19:29:27 -0800 (PST) Received: from fabio-Latitude-E6410.cps.virtua.com.br ([189.61.223.46]) by mx.google.com with ESMTPS id e39sm46253738ani.16.2013.01.07.19.29.19 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Jan 2013 19:29:20 -0800 (PST) From: Fabio Estevam To: davem@davemloft.net Cc: shawn.guo@linaro.org, netdev@vger.kernel.org, Fabio Estevam Subject: [PATCH v2] net: fec: Place 'inline' in the beginning of declaration Date: Tue, 8 Jan 2013 01:29:11 -0200 Message-Id: <1357615751-11659-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] The inline declaration is pointless in this function, so just remove it. Signed-off-by: Fabio Estevam --- Changes since v1: - Remove the 'inline' 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..69d6069 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 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;