From patchwork Mon Feb 26 14:18:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 129651 Delivered-To: patch@linaro.org Received: by 10.80.172.228 with SMTP id x91csp3876693edc; Mon, 26 Feb 2018 06:18:51 -0800 (PST) X-Google-Smtp-Source: AH8x2276a4MESIkTZeksnPMXKTLzBeZUMmFPaKedjRscUGeIvjxlgPOgj0PMkcGXmPHOh0OjbtLK X-Received: by 10.99.63.139 with SMTP id m133mr8464412pga.174.1519654731611; Mon, 26 Feb 2018 06:18:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519654731; cv=none; d=google.com; s=arc-20160816; b=BuEo8P7mtGvgb7rHFQu/f1JVhgHjmaAo5iwj6n7Jc6KiLyzMyiKyZwNXvXa48JPFY3 qXer1VCP60c+NKWkyvnGP4y/kFenm2rSSKo/xTGYuYVz/YQ1SZ10wNvuLyMDZWEgitQf 98qWAvkSGBOI6I5gVPTozqNKSoZO75rq3HqPXU1K83+JdUZIG/bCpljbh0hADaaKN+0E Qzp+0NqSL9ji0WGQpS9uIOhPPdHBCyQQhliu1bZiKaKjMM3aBBD6duubJI1MFWUpzM0h Xsv5FL7+obXFCGr0jXQA7S96M6dqTfnsDUJxttu18gFW9eJuqS202HswcwBLxn9UwC3W dcew== 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=3M1VI7KuOB6Se6D4Q8Lx/TeHrvTcSELX6pzcdHqbrDg=; b=dXIBGuYgFTmJbi8+N4tV4jdQN0IiVlwAUVOkbjya08PP+J/XZ/aO9834g3E2BDrEzz NIjYDc6QlDEdbGZEm2bOhytG/br8YTn4UTQi6bb/n3qjzK1DP7YyTFJAxl33lFPa5Xkp 3rzkJp8g1AnI0xzTAFR2n8Q+JYw8GMKpnJp5agh6B6wO1PIhK+b3rSKMSR1mCIV45Xxu tLFWQMjFsZFcopZ/rVhJg2Ld0cNbpZY8qCF/7jHuMPx42oK8AXjVoR+w43MD8EWSQEQ1 m8g/gqoHrv6L7L2rFBbEwXtb1bvkKraKA92R473IfM1lGwSIoiemtd2UnMCoXJDTHTwL ru1A== 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 z2si5557754pgn.768.2018.02.26.06.18.51; Mon, 26 Feb 2018 06:18:51 -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 S1753330AbeBZOSs (ORCPT + 28 others); Mon, 26 Feb 2018 09:18:48 -0500 Received: from mout.kundenserver.de ([217.72.192.73]:55901 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753176AbeBZOSq (ORCPT ); Mon, 26 Feb 2018 09:18:46 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPA (Nemesis) id 0LfSUj-1eO9eE1Z97-00p6Wq; Mon, 26 Feb 2018 15:18:35 +0100 From: Arnd Bergmann To: Shunqian Zheng , Mauro Carvalho Chehab Cc: Arnd Bergmann , Jacopo Mondi , Sakari Ailus , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] media: ov5695: mark PM functions as __maybe_unused Date: Mon, 26 Feb 2018 15:18:03 +0100 Message-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0oNb7XloZ lky/O1WEEvFCxQYTAGl0oXBy73UfL+wVURuNSA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Without CONFIG_PM, we get a harmless build warning: drivers/media/i2c/ov5695.c:1033:12: error: 'ov5695_runtime_suspend' defined but not used [-Werror=unused-function] static int ov5695_runtime_suspend(struct device *dev) ^~~~~~~~~~~~~~~~~~~~~~ drivers/media/i2c/ov5695.c:1024:12: error: 'ov5695_runtime_resume' defined but not used [-Werror=unused-function] static int ov5695_runtime_resume(struct device *dev) This marks the affected functions as __maybe_unused. Fixes: 8a77009be4be ("media: ov5695: add support for OV5695 sensor") Signed-off-by: Arnd Bergmann --- drivers/media/i2c/ov5695.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 diff --git a/drivers/media/i2c/ov5695.c b/drivers/media/i2c/ov5695.c index 2db7d2e535b9..a4985a4715f5 100644 --- a/drivers/media/i2c/ov5695.c +++ b/drivers/media/i2c/ov5695.c @@ -1021,7 +1021,7 @@ static void __ov5695_power_off(struct ov5695 *ov5695) regulator_bulk_disable(OV5695_NUM_SUPPLIES, ov5695->supplies); } -static int ov5695_runtime_resume(struct device *dev) +static int __maybe_unused ov5695_runtime_resume(struct device *dev) { struct i2c_client *client = to_i2c_client(dev); struct v4l2_subdev *sd = i2c_get_clientdata(client); @@ -1030,7 +1030,7 @@ static int ov5695_runtime_resume(struct device *dev) return __ov5695_power_on(ov5695); } -static int ov5695_runtime_suspend(struct device *dev) +static int __maybe_unused ov5695_runtime_suspend(struct device *dev) { struct i2c_client *client = to_i2c_client(dev); struct v4l2_subdev *sd = i2c_get_clientdata(client);