From patchwork Mon Oct 27 12:35:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 5160041 Return-Path: X-Original-To: patchwork-dmaengine@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 144AA9F3ED for ; Mon, 27 Oct 2014 12:34:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4C6A92027D for ; Mon, 27 Oct 2014 12:34:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6A1B2201C8 for ; Mon, 27 Oct 2014 12:34:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751520AbaJ0Me5 (ORCPT ); Mon, 27 Oct 2014 08:34:57 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:53109 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751492AbaJ0Me4 (ORCPT ); Mon, 27 Oct 2014 08:34:56 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NE300BPUSA6D350@mailout3.samsung.com> for dmaengine@vger.kernel.org; Mon, 27 Oct 2014 21:34:55 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.47]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id C3.18.18484.EEB3E445; Mon, 27 Oct 2014 21:34:54 +0900 (KST) X-AuditID: cbfee68f-f791c6d000004834-f5-544e3bee1e02 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 19.7B.09430.EEB3E445; Mon, 27 Oct 2014 21:34:54 +0900 (KST) Received: from DOJG1HAN03 ([10.89.38.123]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NE30003OSA6A540@mmp2.samsung.com>; Mon, 27 Oct 2014 21:34:54 +0900 (KST) From: Jingoo Han To: 'Vinod Koul' Cc: dmaengine@vger.kernel.org, "'Williams, Dan J'" , 'Barry Song' , 'Jingoo Han' Subject: [PATCH 1/2] dmaengine: sirf: Add CONFIG_PM_SLEEP to suspend/resume functions Date: Mon, 27 Oct 2014 21:35:13 +0900 Message-id: <000901cff1e2$74961710$5dc24530$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac/x4nRvnjCFh8+oS/Wqvq7qiDTd+Q== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprPIsWRmVeSWpSXmKPExsVy+t8zfd131n4hBnPmWlq8nHmV1WL61AuM Fqun/mW1uLzwEqvFy779LA6sHrt2zmH1WLznJZNH35ZVjB6fN8kFsERx2aSk5mSWpRbp2yVw Zcw+tZOp4BZnxd+1G5gbGGdzdDFyckgImEhceLKSCcIWk7hwbz1bFyMXh5DAMkaJ83tWMsIU vW6/zw6RmM4oMaFzAROE84tRYv679+wgVWwCahJfvhwGsjk4RATUJZZelwGpYQZpaD7ykBEk LiwQLrFnTxFIOYuAqsSPHwvBFvAK2Er83vyYBcIWlPgx+R6YzSygJbF+53EmCFteYvOat8wg YySAxj/6qwsSFhHQk2g5+gKqXERi34t3jCBrJQS2sUvsWfOWDWKXgMS3yYdYIHplJTYdYIb4 S1Li4IobLBMYxWYh2TwLyeZZSDbPQrJiASPLKkbR1ILkguKk9CJjveLE3OLSvHS95PzcTYyQ eOvfwXj3gPUhRgEORiUeXotC3xAh1sSy4srcQ4ymQBdNZJYS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3sU1Vqqu/ 1bnUmL/acz7vVV6UvsBs3Y8LESt37UoXzLO88cGP91jA0opb045822Hucmzd+d9KfVnuTZuV WIozEg21mIuKEwGV+qvu/AIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add CONFIG_PM_SLEEP to suspend/resume functions to fix the following build warning when CONFIG_PM_SLEEP is not selected. This is because sleep PM callbacks defined by SET_SYSTEM_SLEEP_PM_OPS are only used when the CONFIG_PM_SLEEP is enabled. drivers/dma/sirf-dma.c:838:12: warning: 'sirfsoc_dma_pm_suspend' defined but not used [-Wunused-function] drivers/dma/sirf-dma.c:879:12: warning: 'sirfsoc_dma_pm_resume' defined but not used [-Wunused-function] Signed-off-by: Jingoo Han --- drivers/dma/sirf-dma.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma/sirf-dma.c b/drivers/dma/sirf-dma.c index aac03ab..6494b44 100644 --- a/drivers/dma/sirf-dma.c +++ b/drivers/dma/sirf-dma.c @@ -835,6 +835,7 @@ static int sirfsoc_dma_runtime_resume(struct device *dev) return 0; } +#ifdef CONFIG_PM_SLEEP static int sirfsoc_dma_pm_suspend(struct device *dev) { struct sirfsoc_dma *sdma = dev_get_drvdata(dev); @@ -916,6 +917,7 @@ static int sirfsoc_dma_pm_resume(struct device *dev) return 0; } +#endif static const struct dev_pm_ops sirfsoc_dma_pm_ops = { SET_RUNTIME_PM_OPS(sirfsoc_dma_runtime_suspend, sirfsoc_dma_runtime_resume, NULL)