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);