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); From patchwork Mon Feb 26 14:18:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 129652 Delivered-To: patch@linaro.org Received: by 10.80.172.228 with SMTP id x91csp3876962edc; Mon, 26 Feb 2018 06:19:06 -0800 (PST) X-Google-Smtp-Source: AH8x225E202y8o7N6mGf/80vZS1vYqM5uHDbAOQJEdAfpMBlwFFaA//W8E9Vn61H8tONAxShuvHg X-Received: by 2002:a17:902:710f:: with SMTP id a15-v6mr10537325pll.87.1519654745939; Mon, 26 Feb 2018 06:19:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519654745; cv=none; d=google.com; s=arc-20160816; b=hiBPGOAIweWLnOiQl0ZQhVcIUhs3mxXavMbHGbaS5aVNO68HiIJ7H1Pj95OScYjUCk k5TMdJQevXA+uakE4TwTf9wLXBgQbVVAUIRCW14PucCDI544Cpd/1wyNCKs1jmLh9PSG v8N41i9RbieFcZk2Wfc+6IMMUiZKZSyPNFxxuL1BFOuOLDFcrLfkNaSJ6IKiiuQihcZF rXSREFT/fl5qCpxOOVgCXEbThoRj9QLs/Z9e2raxyr5pVAKFR7x2F76AHbTQPkEamKWM YEqNxTmkV76ZV9IVe1Df+GOejitoISDqRdwShQ38RpErqL4dKFP6QdI9K14e4/axdevR ddhQ== 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:arc-authentication-results; bh=Zt+okCoiYHVglFSeveoe3hbVJjwFl7zFNkUF0NFprkA=; b=LhLsUni5vfLeMU7eWm2tYQI9n0Gdjrwzwb6Oq6LTxArHze30piTz8pQwCHtz4+JGiO MHMRVnnqKPVH9urKU5Q0vZrChjhI5gS4k76iaad18Vl/PwOST9l5hHUX1N5OfNwplEhb HAOJWeXZDo6sgNOQ3vJbfKN+wu8NoVAHWEUjSmdjK/OjJ3zwyUbJPjhNG05nLfwwKcFu bxGkmlYy+a4dPG1gb+KVo/Va+PIW7QpiJpzC8sT6lUMQk4maLUNT69J3/qLU3hZSRCDC hZnaozdxSObCzM4oC9wLInZFa5WFhZxT/mb9Cpg0Sq4kzSUtc/ASNjqY3wDu0LomLwfO 8CxA== 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 v7si3314492pfi.403.2018.02.26.06.19.05; Mon, 26 Feb 2018 06:19: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 S1753790AbeBZOTD (ORCPT + 28 others); Mon, 26 Feb 2018 09:19:03 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:50875 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753287AbeBZOS7 (ORCPT ); Mon, 26 Feb 2018 09:18:59 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPA (Nemesis) id 0MYvOV-1fDDnQ2tVb-00VdwE; Mon, 26 Feb 2018 15:18:47 +0100 From: Arnd Bergmann To: Shunqian Zheng , Mauro Carvalho Chehab Cc: Arnd Bergmann , Sakari Ailus , Jacopo Mondi , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] media: ov5695: mark PM functions as __maybe_unused Date: Mon, 26 Feb 2018 15:18:04 +0100 Message-Id: <20180226141831.2980626-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180226141831.2980626-1-arnd@arndb.de> References: <20180226141831.2980626-1-arnd@arndb.de> X-Provags-ID: V03:K0:cq/0JyFz3e2A6aQ3wmsuFWEFIf5BIKLUuWiWCZK6bIFaYNfeFME H6STe5L8Se+fJ8dr/Z0tPzTiLv3x/bXpinKAs4rbyJLGoi1ztqbltzD1ys0jPyanOhcD80i xgGJa+kFbDEntXddE6AHOalp8dDlPsa4OslCCI9VN5/q/OfdmLuIR+/zGWG0wesb9iXly3C +oLdDeVJieZmAE9VRb83w== X-UI-Out-Filterresults: notjunk:1; V01:K0:IhxUsVU22qg=:6z3TGiRauaZTWez3xuv77r hOlCnCmsPH0cphJDroQz6TOujEXLNAPCkm5lchd6uk7/QStfhjnmV0ToDDb/+FULd4Yr1/mMF Krp9Xpl5UgjgqBY3A0gbDmeqYtYa9mAW9LN8sbH48RUtZxcHIal+lYWlWdDdCyS4308GrIY1t 0usdkzLEvg0qumXFBt5XPPJ+fb7o9dXBAVX+4dWSATtzM+EHYIgVuJqNXzONPzYXYy+eHPdoz xj1R3vF+AhVg3SEOOgMdH2Mzk90GQFPpcN/hvNa1GReoTqQ2v6HCuEUdNGT/6Wru300rga+Ax 8xoHGFz8eip2kmiUxiwleETc/TEIvmB+WCpZaJcHRchBbyDQhXlcY7X3dLEELwIpptlvlO1t5 yMbU5O4/e15OdWy0Y8jfJMGtyLOUMhrThgFeWcu/Rc24hJLjAw2OEOgltwHhuerw7IapaQvRJ jJaR7xMMHDBhLe24nkVA0BwTFq4n/+ijl84vu9n4gfKYsN/jCPT72Z9yPQsffRYwVMcB8PgDb gZnNObXBCxyh35M3OFFNiEBxbTb19HQW82ZPD5hkdrxkjbaZomsgJS7RlDO8bGIU3NsATfUNi m2SQWUPYkhjkYt5etvjLONvvh/sExesGU/gg4E0o+kkp/eCYOFA45fbVwILENMiXvC8SHI8r1 8rexSbFx1qs+yMO22glatIR6fqntWg0T/edxvH1Ap2C96Py1hEIHFa+u3iYjXASyu7I/9De0o BvwH29Wz4zlUQx62bd/N8D94EzgiojV/YyKTeg== 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/ov2685.c:516:12: error: 'ov2685_runtime_suspend' defined but not used [-Werror=unused-function] static int ov2685_runtime_suspend(struct device *dev) ^~~~~~~~~~~~~~~~~~~~~~ drivers/media/i2c/ov2685.c:507:12: error: 'ov2685_runtime_resume' defined but not used [-Werror=unused-function] static int ov2685_runtime_resume(struct device *dev) This marks the affected functions as __maybe_unused. Fixes: e3861d9118c8 ("media: ov2685: add support for OV2685 sensor") Signed-off-by: Arnd Bergmann --- drivers/media/i2c/ov2685.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 diff --git a/drivers/media/i2c/ov2685.c b/drivers/media/i2c/ov2685.c index 904ac305d499..9ac702e3ae95 100644 --- a/drivers/media/i2c/ov2685.c +++ b/drivers/media/i2c/ov2685.c @@ -504,7 +504,7 @@ static int ov2685_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) } #endif -static int ov2685_runtime_resume(struct device *dev) +static int __maybe_unused ov2685_runtime_resume(struct device *dev) { struct i2c_client *client = to_i2c_client(dev); struct v4l2_subdev *sd = i2c_get_clientdata(client); @@ -513,7 +513,7 @@ static int ov2685_runtime_resume(struct device *dev) return __ov2685_power_on(ov2685); } -static int ov2685_runtime_suspend(struct device *dev) +static int __maybe_unused ov2685_runtime_suspend(struct device *dev) { struct i2c_client *client = to_i2c_client(dev); struct v4l2_subdev *sd = i2c_get_clientdata(client);