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: 110391 Delivered-To: patch@linaro.org Received: by 10.182.109.195 with SMTP id hu3csp889575obb; Fri, 18 Aug 2017 07:17:00 -0700 (PDT) X-Received: by 10.84.211.7 with SMTP id b7mr4090806pli.382.1503065820076; Fri, 18 Aug 2017 07:17:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503065820; cv=none; d=google.com; s=arc-20160816; b=mVPk7A1FFfwvicRFl1TAqbRbZEhEWljXb5up+s+NvAEtYZWRVCQ5Twu4slJ7Sek8ry J4eOmW6np+mGonm6Smk9dZ1XOdE4JFKHCsirh6UpBljADGsCwGNSzgmhqjfWRDhkTfPA 2nODDMNaqc4R00IE65mbeKgTeGFDhwCB+rUsek+LpgSaMZA8LMbsazgooCdcBmABdj1k CzH6HLLRjSDO/GTQ74WtCFizsLkTvOl9XRF24dxa8Ps6PvaE4CuucwTS4zKpHECwpfzA Mkzf3n37tnCRwp3NzjK6SKxrLFUr558toHQiHGWMWSB7njqGRLz1yhU5JkVwjhQuXbBI rKzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=mATXhJBFqfgGfnp9YkucyadR4MMQGIvNcPONmIvAiXA=; b=PshN0J32EhPaNdQfcjdX6C62FxUEcFW1DGyK6flTdd4rFx42+HZAjNw601WHSoQNe+ bLaDUbqDtCgxm9Bn5DGcUtbD4bfgH26aR+Qw8h2wr2MPt2sJ/QTnljg+Xg8J4rgGObyx kjroCNm1gIWYlv2osq54A5GGCdprKjZru24QdUbY3LOb6zHhR9crZ6NwqLWrLt5ONAsP tsMwt9EudKVNxyqq0N7s1/8Xxfp6m0JodKePnOY4f+svxcTwV4HhxBbBYcx0tMHKbWWx 6o3GUkjNpUIBFJE7O83qjOsk2/1p0Swrv8d0ra0jQGhI98UGO63t61ELqgXd684cu4dN XVlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WWoEAkDH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b1si3971379plc.28.2017.08.18.07.16.59; Fri, 18 Aug 2017 07:17:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WWoEAkDH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753542AbdHROQy (ORCPT + 26 others); Fri, 18 Aug 2017 10:16:54 -0400 Received: from mail-wr0-f180.google.com ([209.85.128.180]:36375 "EHLO mail-wr0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753512AbdHROQv (ORCPT ); Fri, 18 Aug 2017 10:16:51 -0400 Received: by mail-wr0-f180.google.com with SMTP id f8so27684146wrf.3 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=PlfK0srmicOaBUrwi/NCcJ/MMjo4n3dRrbfH1ACn3x+zQXaxkrftJOUecdyR+4LfNk psQpk0yB1QKg4RpGYCrvQUZdYDDnCrStV+XgrmWwsAzoCAjfRYtAF5+7xEchJobubZv7 yx91g+NhGgCLZ9+cEtH3Xp1me/zy+ySLmo6cRZGod0nUulpv/DwipdnnUtOIiM8t+Bam cHO95JlC82kgBsEuQI8MyPcta0zOQHYSyAtppJIgFc6ttVqEQI8j3AFIjnqbkQP5/qQK bO9uP/GEkq24JdgZaL7/GjjgBjXLncL41VHdsyLiXHKwOPD0wf1P1WAkKjd3EcmZInGJ t9QQ== X-Gm-Message-State: AHYfb5h239TygJkrE98Iy4ISCtp5UhAe8+7XuemSOCe5sQc38TQaZJaK GJlMdlaa3vd3kZaY 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.11.0 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,