From patchwork Sat Sep 10 12:31:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9324977 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D542660231 for ; Sat, 10 Sep 2016 12:43:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF3A429994 for ; Sat, 10 Sep 2016 12:43:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 906A7299B6; Sat, 10 Sep 2016 12:43:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 386A129994 for ; Sat, 10 Sep 2016 12:43:02 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bihRx-0008Om-Bs; Sat, 10 Sep 2016 12:32:01 +0000 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bihRs-0008KU-Ph for linux-arm-kernel@lists.infradead.org; Sat, 10 Sep 2016 12:31:57 +0000 Received: by mail-pf0-x244.google.com with SMTP id x24so5391022pfa.3 for ; Sat, 10 Sep 2016 05:31:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lbqXY52AhuvrYiR7Tb6KyNgacg0D5+bJEUyW8MwpIQA=; b=VDp5Imc852RsWo4yDu4XY1UM4JSffXZJyAVaw6iFJdcBcEYTbPaQMbw4G00Ccx9FHc LdZl344DQ4epU93YarQyy3VR61IDJ0kK8Dalw7pkto+HW4kEZCcd2llJQIwZRIE8RfjL FJQjvDW1npXztOFD3nUEuG/3ZS/dNuQVxFRtUqFu32frIfHwY/PKLCmttHxta+FEYi/Q llInLx/HOFHtL+y5M2GFLNc7+p4ZUmwTC/VeSky7AkN7k6uCB31xWmuq1OFjzvNFZU3C YV+oyoW8h9uKnCMBpLYfJkRvA36Kv16PwplteJSzjHjn/ZT2OIZV++axQHQcdeTddDwb 56SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lbqXY52AhuvrYiR7Tb6KyNgacg0D5+bJEUyW8MwpIQA=; b=d1JICihx+T6iZXzf8qtKaZUGdWzjrCo+vpgjcmcjgXZAnSaPjn+kmmbDlM79PqVm72 AiIDMFp2jRrC3FuduaM7rfQIzCjWoyI3sGq5kV4UpN1QRf+g4tysyYEORlKJtW3h9g0g RlwzBv/qVrjZ2hZlQ84ciYynNRqnETBjfP/NPfKUaZqgy+vCRAuNYwWCdg3rIlcP2TNa xE5n/Kw9YfNcR7FV1y0Tvi6hositnVfm9w5MgkNY2X9fl1CaCzji2Z20FpHiy6tUqP6T 9bhisiUvn0C1B5L+u3aI4WGCWXHIxwKzHP7b6e25rL3Rvro54XPvuebd963fkFBlHLdc IIVw== X-Gm-Message-State: AE9vXwOf2eod46+wRG+M6PaMMuvtwFSNmxieGA4lG/7KFCXi0i4e0huvUWW0Z9esU7uYdA== X-Received: by 10.98.135.134 with SMTP id i128mr15758399pfe.144.1473510696039; Sat, 10 Sep 2016 05:31:36 -0700 (PDT) Received: from localhost.localdomain.localdomain (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id m24sm12102649pfi.34.2016.09.10.05.31.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 10 Sep 2016 05:31:35 -0700 (PDT) From: Wei Yongjun To: Giuseppe Cavallaro , Alexandre Torgue , Maxime Coquelin Subject: [PATCH -next] net: ethernet: dwmac: fix non static symbol warning Date: Sat, 10 Sep 2016 12:31:30 +0000 Message-Id: <1473510690-25198-1-git-send-email-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160910_053156_916330_10B499DA X-CRM114-Status: GOOD ( 11.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: netdev@vger.kernel.org, Wei Yongjun , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Fixes the following sparse warning: drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c:172:1: warning: symbol 'stm32_dwmac_pm_ops' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c index 79d8b92..e5a926b 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c @@ -169,7 +169,8 @@ static int stm32_dwmac_resume(struct device *dev) } #endif /* CONFIG_PM_SLEEP */ -SIMPLE_DEV_PM_OPS(stm32_dwmac_pm_ops, stm32_dwmac_suspend, stm32_dwmac_resume); +static SIMPLE_DEV_PM_OPS(stm32_dwmac_pm_ops, + stm32_dwmac_suspend, stm32_dwmac_resume); static const struct of_device_id stm32_dwmac_match[] = { { .compatible = "st,stm32-dwmac"},