From patchwork Wed Feb 28 23:19:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 130090 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp327833lja; Wed, 28 Feb 2018 15:20:05 -0800 (PST) X-Google-Smtp-Source: AH8x224mRQ/qSXf/hwJqBLJBcES7J5YbqYtRsk0BHF4p67cu1Jg+HYoTV8fOkEPYkor0AlfA3KjC X-Received: by 2002:a17:902:68cc:: with SMTP id x12-v6mr19621983plm.198.1519860005156; Wed, 28 Feb 2018 15:20:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519860005; cv=none; d=google.com; s=arc-20160816; b=NKd2Ifxv2dKjxpkwhVuZ1SCIFbBCviYmnYmFMeT+x1wbPv3NYDgZq7FnwD9jN51j83 obqk42SH1zq8MuD+J1e1uyX2yUK7b+WJsE/daA8gZTUtwOEbhH8IuL/PUxDZv5VLVPR3 Da070EpP7a1Vy1O5xg/05u1AKOTJcCbuQBrcvN8AgnJkZg9yem1l5i7apz2pqkx8Dbex 7sSzsHvsTtL23wvkuz7N/D2CeQJMsYHaqsB7ckoKQacuo9ovfHClQknmIaxPdXK7rgEp 0MJRGC5rUpp8UXi2U7o4nrUvZDJFtW36OFPCpwGxSbpEdCcbuyeYLzAw6d00MncB4YYS 1rMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Ndthffa1ve9cGIx8jEN6QiwQJZCf03kBjCpdi1T8R6w=; b=Gd32xb3kcQ17Q1fk8xjxlF2KGRYcF2W6yL5umeYVD0JYRBlM+u2BXpJwFW4tnW9EuG BeTCD5e3K27i5VcuFenTVt0ud3GlhQpALfh4gDCg0Hlg8VNQqtExGAOsbOO3/ltR/DEz YHL9r/Ulgb7WV7IS0iyw607Qd8tEpPDEsa5QW7DK8aP68fopZU8YLKSqW0eDyO9RYCX8 ESUtG0MhhUlYnA3I1H5v5zm4ZoipE91szN8/MQ+Rb+fJTDRJcJNoiVxiuTkF/5+VRLjT HdImhqjuLdqiNvrXkYKwsXqyUvwuuiQHlGeA5s5sjtMGU9xB2COCXZvVZhgmFySjHSv4 KMQw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f26si1615697pgn.650.2018.02.28.15.20.04; Wed, 28 Feb 2018 15:20:05 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964939AbeB1XUC (ORCPT + 28 others); Wed, 28 Feb 2018 18:20:02 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:43453 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964887AbeB1XUA (ORCPT ); Wed, 28 Feb 2018 18:20:00 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.129]) with ESMTPA (Nemesis) id 0MF8bn-1ewtNb2bNb-00GFn5; Thu, 01 Mar 2018 00:19:52 +0100 From: Arnd Bergmann To: Jacopo Mondi , Mauro Carvalho Chehab Cc: Arnd Bergmann , Miguel Ojeda , Hans Verkuil , linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: renesas-ceu: mark PM functions as __maybe_unused Date: Thu, 1 Mar 2018 00:19:37 +0100 Message-Id: <20180228231951.460060-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:OwxZZPCuJjqynJFvTphawLGuKuYFqbLVrgZkEp4vwOh4FS4TvYO kqc2GDK8pfjLV03ANGLNm0thPAroVCj6c3YOutB5c34y6HdQzAwRBOJ3nP0P978/kkXunKU gMUrBXr3TVS4/7edXFmFa5bnw7UTodeVZZKD2vHc+Lx5vXr450yARu0U8RRTtCXElU1smno YVneLBCDtlgaiM1Iy+eig== X-UI-Out-Filterresults: notjunk:1; V01:K0:1NstrN1UIOg=:T1+H0t5i5r6gYkqexVveXs ZHjnl0YaeSqGYcFK2D9OG3KBGrsoxZszJ1uNRXP4Aw3+Pxi+vCu7OJMlRQfDLny5n+nzJLKIs gYR55OWJWlsBxQvfNsZphaEAJzwXWiNZ7ZiqWIUm1nDmTQTdX5irSQ7aAclHLqF52SBGK8iLO Mo9CztG60/OFyhKzoC/2ytapNJS5WOhGqGll9xfd4u9A/cJ2flhGxLNkQ6hAovrUsSqhn64bi hkFCahoBmfbXk1dqRYotRC4voUXTf8pMbx1bb+ZTuzxUpPHJFeRFr9Vi/zJVUi9w++82qCVSf uXq+Lt6PvPu1UmTB6D6NAZuDp+cslDElmLe8ssDNMWvAMJhoWn7DOZtyazRhlMrHF4BOdWQhs fkcep7TsuPp0hcydToefZqOzPRUYclywCErUsotoucF9UIagi+DnZCKEd6v3xexYU3ONfxAhH lVeNn4LCe+rxJRDWnm8d4gu98WATpe3wFN4VLO4IIcxlFZMErYYmNAh6hhvK9unjDFFHFr5qK 19PrfaFczd2YAKKIN88Mo2JXYWBd6xQKkCt0avpzGA4HN9IoIjrdDva5EF4eVo9roi3+OonXD jiaFE9k6rVtkdsqn6NraZ0xVhUeLCRn39xAsO5oDpeeKaiDx1u2JpgtAjCcibItLle0JLHeP3 PbEzOM1PkgT0m7u8ATWswg/0Kgbt6/zhjwyfkUDS31OYZij4NKvvbnyi/1mrI5c4PxBJjD9du jHgx3xFfotRlgXNh+4LK63R74b/D+YORhCe9Ag== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The PM runtime operations are unused when CONFIG_PM is disabled, leading to a harmless warning: drivers/media/platform/renesas-ceu.c:1003:12: error: 'ceu_runtime_suspend' defined but not used [-Werror=unused-function] static int ceu_runtime_suspend(struct device *dev) ^~~~~~~~~~~~~~~~~~~ drivers/media/platform/renesas-ceu.c:987:12: error: 'ceu_runtime_resume' defined but not used [-Werror=unused-function] static int ceu_runtime_resume(struct device *dev) ^~~~~~~~~~~~~~~~~~ This adds a __maybe_unused annotation to shut up the warning. Fixes: 32e5a70dc8f4 ("media: platform: Add Renesas CEU driver") Signed-off-by: Arnd Bergmann --- drivers/media/platform/renesas-ceu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 Reviewed-by: Simon Horman diff --git a/drivers/media/platform/renesas-ceu.c b/drivers/media/platform/renesas-ceu.c index 22330c0c2f6a..eccd60a7ebec 100644 --- a/drivers/media/platform/renesas-ceu.c +++ b/drivers/media/platform/renesas-ceu.c @@ -984,7 +984,7 @@ static int ceu_init_mbus_fmt(struct ceu_device *ceudev) /* * ceu_runtime_resume() - soft-reset the interface and turn sensor power on. */ -static int ceu_runtime_resume(struct device *dev) +static int __maybe_unused ceu_runtime_resume(struct device *dev) { struct ceu_device *ceudev = dev_get_drvdata(dev); struct v4l2_subdev *v4l2_sd = ceudev->sd->v4l2_sd; @@ -1000,7 +1000,7 @@ static int ceu_runtime_resume(struct device *dev) * ceu_runtime_suspend() - disable capture and interrupts and soft-reset. * Turn sensor power off. */ -static int ceu_runtime_suspend(struct device *dev) +static int __maybe_unused ceu_runtime_suspend(struct device *dev) { struct ceu_device *ceudev = dev_get_drvdata(dev); struct v4l2_subdev *v4l2_sd = ceudev->sd->v4l2_sd;