From patchwork Fri Aug 18 14:16:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 9909163 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 CB475602C8 for ; Fri, 18 Aug 2017 14:18:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC3C628C3B for ; Fri, 18 Aug 2017 14:18:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B0FA028C40; Fri, 18 Aug 2017 14:18:14 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_SPAM autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 46F4828C3B for ; Fri, 18 Aug 2017 14:18:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753518AbdHROQy (ORCPT ); Fri, 18 Aug 2017 10:16:54 -0400 Received: from mail-wr0-f174.google.com ([209.85.128.174]:33939 "EHLO mail-wr0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753510AbdHROQu (ORCPT ); Fri, 18 Aug 2017 10:16:50 -0400 Received: by mail-wr0-f174.google.com with SMTP id y96so68403998wrc.1 for ; Fri, 18 Aug 2017 07:16:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mATXhJBFqfgGfnp9YkucyadR4MMQGIvNcPONmIvAiXA=; b=WWoEAkDH0PenIawla9fih4oCVACZ1ctEtQL4pbJUo5tcZSzxrKFNWcwPm89FRf1T7+ ovwzVYXSw7WimS2gcjD660jeaBm1CccqKP9o8YK2K8OacSG0o09uiHSH/GN7n9sPyYGA k1T9l6rDjs7u4t5nS4hWoVfOmwvF3XZWlAuDo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mATXhJBFqfgGfnp9YkucyadR4MMQGIvNcPONmIvAiXA=; b=rf0qAYEynJSridkqWEzRIGrM3x/u7xfZwUyt/yMVO7Wtf/gqvmv+mh8AVPbGat9Xvs XpCiavCukrJplO8yNDooR6xEQWQEKWyQuLofEgzbxqZAuwSf3aWWocHDg8Oj/gCp14Of tWbcW/TZ07h6RmZcYEsPvr5cc0Cc7RXHGBgJ+Jixw90t9+/jDsf8Yq9CqRFI1S9RwzbU OS5f2Nk+suFHRFj3D6BsuHpGB9bHO3fb6ylaz7YD9WaBg8RbSaS/qI/LXobkJlG8M/Pv 4qbW31O3aq7bnTdZDPo19/xnZ3q2dxexshO9UkV2lRKaML3XwEbp9wOV39RHCPSUblHv EegA== X-Gm-Message-State: AHYfb5hs0ofVp4tJKK8G0/6jgp5uNMy9OXO/lCfisWIWIJnoMbV29jGa 1HaLHy6mUHG8MELTQ7ej0w== X-Received: by 10.223.131.37 with SMTP id 34mr5201045wrd.155.1503065809716; Fri, 18 Aug 2017 07:16:49 -0700 (PDT) Received: from localhost.localdomain ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id 55sm1387383wrv.32.2017.08.18.07.16.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Aug 2017 07:16:49 -0700 (PDT) From: Stanimir Varbanov To: Mauro Carvalho Chehab , Hans Verkuil Cc: Pawel Osciak , Marek Szyprowski , Kyungmin Park , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Stanimir Varbanov Subject: [PATCH 3/7] media: venus: mark venc and vdec PM functions as __maybe_unused Date: Fri, 18 Aug 2017 17:16:02 +0300 Message-Id: <20170818141606.4835-4-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170818141606.4835-1-stanimir.varbanov@linaro.org> References: <20170818141606.4835-1-stanimir.varbanov@linaro.org> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Without PM support gcc could warns about unused functions, thus mark runtime_suspend/resume as __maybe_unused. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/vdec.c | 6 ++---- drivers/media/platform/qcom/venus/venc.c | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/media/platform/qcom/venus/vdec.c b/drivers/media/platform/qcom/venus/vdec.c index eb0c1c51cfef..44d4848e878a 100644 --- a/drivers/media/platform/qcom/venus/vdec.c +++ b/drivers/media/platform/qcom/venus/vdec.c @@ -1103,8 +1103,7 @@ static int vdec_remove(struct platform_device *pdev) return 0; } -#ifdef CONFIG_PM -static int vdec_runtime_suspend(struct device *dev) +static __maybe_unused int vdec_runtime_suspend(struct device *dev) { struct venus_core *core = dev_get_drvdata(dev); @@ -1118,7 +1117,7 @@ static int vdec_runtime_suspend(struct device *dev) return 0; } -static int vdec_runtime_resume(struct device *dev) +static __maybe_unused int vdec_runtime_resume(struct device *dev) { struct venus_core *core = dev_get_drvdata(dev); int ret; @@ -1132,7 +1131,6 @@ static int vdec_runtime_resume(struct device *dev) return ret; } -#endif static const struct dev_pm_ops vdec_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, diff --git a/drivers/media/platform/qcom/venus/venc.c b/drivers/media/platform/qcom/venus/venc.c index 01af1ac89edf..4bffadd67238 100644 --- a/drivers/media/platform/qcom/venus/venc.c +++ b/drivers/media/platform/qcom/venus/venc.c @@ -1226,8 +1226,7 @@ static int venc_remove(struct platform_device *pdev) return 0; } -#ifdef CONFIG_PM -static int venc_runtime_suspend(struct device *dev) +static __maybe_unused int venc_runtime_suspend(struct device *dev) { struct venus_core *core = dev_get_drvdata(dev); @@ -1241,7 +1240,7 @@ static int venc_runtime_suspend(struct device *dev) return 0; } -static int venc_runtime_resume(struct device *dev) +static __maybe_unused int venc_runtime_resume(struct device *dev) { struct venus_core *core = dev_get_drvdata(dev); int ret; @@ -1255,7 +1254,6 @@ static int venc_runtime_resume(struct device *dev) return ret; } -#endif static const struct dev_pm_ops venc_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,