From patchwork Mon Jul 17 08:56:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 107874 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp4255113qge; Mon, 17 Jul 2017 01:58:14 -0700 (PDT) X-Received: by 10.98.89.129 with SMTP id k1mr17934804pfj.28.1500281894277; Mon, 17 Jul 2017 01:58:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500281894; cv=none; d=google.com; s=arc-20160816; b=jW9j9VgBYEab3ID5ycELhf+BJU/5ndUf/LihUqt0NMZDz6OTtoB5hjuzmNO/Spw6nl +zukjkdsPLaTBHWxi1BO4Q0aW7E8ffyoOpFkY2XsmCfgN6+n7AJUr3GwuaIFLkK64V2w GSGPIpRYkvs5C7QWHPTI1z8xkgO2l9rKHsn+LUqcMoj9wmiS8AkgbHV8t2DdGgQHaWq+ fLFswyVVah+Zvno7TEqN6HNB2X/i6l+iX9zzdzSqI2lpkXh/Jrn9O7XPFdCMiUe3uueA vWc3Qy5KO2Q1zYScu1Huy7dKjfCJydWe2rkwCGd8dfepNXnIMiSrKFMS/dtaxHQbamBh XiTA== 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=ncAzAKhJAVE9N+B1EOMeWAij1NnYndfH/6XPtc+uvTI=; b=ImNW+k33CwPxEJRHve968r6SGHnSrF5c/YwPlp7kseJMZr9hWrQrpIdHlM3oXg/6D7 urej4qerOqQj+PeK2aFgvqZQcpI5YDkbbQIdV1MVLOmuGxtPhOshBX0EU/5EYu0WxMq9 0NBc8DKuOeeTyKaDNtNISGLNslx2TrxErE8G+6U4Q1CloXalpKwaj01pjzaDNVremGaa l5f4BL4JSi5zsoqJK6/z9hYfwH7awJesfbA49FSMtoRR6rJNwdEATZANcw95yUHaoLa6 CVAFQAeLsr3wtZjJ6QnA2JeREl7b3wHeuscvVPHLyXmY2lLqnHEhJLG+88/ZJx/zHmHV JItA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=aohM/D7P; 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 f29si12144226pfe.230.2017.07.17.01.58.13; Mon, 17 Jul 2017 01:58:14 -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.b=aohM/D7P; 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 S1751372AbdGQI6H (ORCPT + 25 others); Mon, 17 Jul 2017 04:58:07 -0400 Received: from mail-wm0-f51.google.com ([74.125.82.51]:37928 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751316AbdGQI6E (ORCPT ); Mon, 17 Jul 2017 04:58:04 -0400 Received: by mail-wm0-f51.google.com with SMTP id f67so76422101wmh.1 for ; Mon, 17 Jul 2017 01:58:04 -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=ncAzAKhJAVE9N+B1EOMeWAij1NnYndfH/6XPtc+uvTI=; b=aohM/D7PipgT56M1KR3CmTuWTfxb1mA9QfWYnu/fam046ziOuDU1zaF95jb7Ocm3xq JkF9MQ+cebbsTLG16Fcb2RZfXDlJ1pwTCJPJElIsV1scDWHQRiZ9b3PFmfZE6FVSItKQ LXL6C7uL+QQr9WFYlbewfkobQ1PGoJCvXMNIg= 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=ncAzAKhJAVE9N+B1EOMeWAij1NnYndfH/6XPtc+uvTI=; b=g3ZiBnLxzZ4yE4RyRRzv7PWuKMglA2cB/3s2nBJKEEq6DKtr150hQHz/vht7dg92/X t1/bo/T3UhbCt4eKgVVrBoDlyZJKg2sdZjdZu2w50eBlpPrf+/8L80uhObkkfG5XeB0k 1AVl7HecvwFeBl79oN9GryD4vKrVl9tjvAmq1meNkM5DIExuKknRIltebf4afEfSadtf wSVN01qlqEl2xWSguxp00mC9ukK/Nvvfz+owj5TBD8lo28ZNfmOyHe70ljj3J4Rwh1Zw i2OUHcC7/3A3q6yAdkNzSWl08XX17l4LqfPTwafxjDeutK39erO/3Xo5QcVhDiJ+Pd47 vQOA== X-Gm-Message-State: AIVw111eOUTo6k+b1VhMwVyNoEi05u82tjD9HOvTaQZ58II73qrRMOIo 6LfEBrjY0d06tkGxPLIE3Q== X-Received: by 10.28.154.19 with SMTP id c19mr3237201wme.87.1500281883576; Mon, 17 Jul 2017 01:58:03 -0700 (PDT) Received: from localhost.localdomain ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id q17sm11558700wmd.4.2017.07.17.01.58.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jul 2017 01:58:03 -0700 (PDT) From: Stanimir Varbanov To: Mauro Carvalho Chehab Cc: Hans Verkuil , Arnd Bergmann , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 1/4] venus: mark PM functions as __maybe_unused Date: Mon, 17 Jul 2017 11:56:47 +0300 Message-Id: <20170717085650.12185-2-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170717085650.12185-1-stanimir.varbanov@linaro.org> References: <20170717085650.12185-1-stanimir.varbanov@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann Without PM support, gcc warns about two unused functions: platform/qcom/venus/core.c:146:13: error: 'venus_clks_disable' defined but not used [-Werror=unused-function] platform/qcom/venus/core.c:126:12: error: 'venus_clks_enable' defined but not used [-Werror=unused-function] The problem as usual are incorrect #ifdefs, so the easiest fix is to do away with the #ifdef completely and mark the suspend/resume handlers as __maybe_unused, which they are. Fixes: af2c3834c8ca ("[media] media: venus: adding core part and helper functions") Signed-off-by: Arnd Bergmann Reviewed-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/core.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) -- 2.11.0 diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platform/qcom/venus/core.c index 776d2bae6979..694f57a78288 100644 --- a/drivers/media/platform/qcom/venus/core.c +++ b/drivers/media/platform/qcom/venus/core.c @@ -270,8 +270,7 @@ static int venus_remove(struct platform_device *pdev) return ret; } -#ifdef CONFIG_PM -static int venus_runtime_suspend(struct device *dev) +static __maybe_unused int venus_runtime_suspend(struct device *dev) { struct venus_core *core = dev_get_drvdata(dev); int ret; @@ -283,7 +282,7 @@ static int venus_runtime_suspend(struct device *dev) return ret; } -static int venus_runtime_resume(struct device *dev) +static __maybe_unused int venus_runtime_resume(struct device *dev) { struct venus_core *core = dev_get_drvdata(dev); int ret; @@ -302,7 +301,6 @@ static int venus_runtime_resume(struct device *dev) venus_clks_disable(core); return ret; } -#endif static const struct dev_pm_ops venus_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,