From patchwork Fri Aug 17 09:53:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10568559 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 63F3B1390 for ; Fri, 17 Aug 2018 09:54:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5258E2B13B for ; Fri, 17 Aug 2018 09:54:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 467172B152; Fri, 17 Aug 2018 09:54:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F10FA2B13B for ; Fri, 17 Aug 2018 09:54:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726661AbeHQM5T (ORCPT ); Fri, 17 Aug 2018 08:57:19 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:55409 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726587AbeHQM5T (ORCPT ); Fri, 17 Aug 2018 08:57:19 -0400 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0M3C4d-1g6lAT3Vgt-00sxY5; Fri, 17 Aug 2018 11:54:26 +0200 From: Arnd Bergmann To: Todor Tomov , Mauro Carvalho Chehab Cc: Arnd Bergmann , Hans Verkuil , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: camss: mark PM functions as __maybe_unused Date: Fri, 17 Aug 2018 11:53:42 +0200 Message-Id: <20180817095425.2630974-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:NVWjhwEohuSREh9AzGELW0acIAbZGvhs9AfgO9C8HIDjhot+A1R ZDCn9rrTthwsPgQYCgVoEs1x3g0wUq0Dp9s/bbvqnjli64mvpHaFXbZnIU9Rof34LVIAUpj d6yNXgxBc6MDWjQBBRGZ6Xc4shnsr0+px5oD2IyNu+x18SSmBAHKX+u7WAABJbIGHcTOZfh pq4aEHd3qlYafLqY713nw== X-UI-Out-Filterresults: notjunk:1;V01:K0:6IX4tnfdgf0=:nWNIEmvd8alZ2HAZdJWQc3 iLVnj4z+n6G/0CHT1fMq9td/Ptxqz1feeRecjycr8TpLSoEAKAD1aiu3Jpvnuwouw50aXjUg2 /QSK5BJJGPZ/1uWcDwfE7o075k6xkKQEwkRVcoyJJLlO4VvSZpdN2JMu3B2cVKA2Bq9/BX5za ICiLDIuPmOAqJqPf5DuOecykJfzh9N46dxqeiCcdKKLruU62h9zwzKctw4tqjvzSdJtX0hRwc Yey3r8rpUnY15DspXEX2rvTve4AF/f6RzpP9+k8SOulCgrt6CUC6GfdGNbfOD8iYA+XuZQb2W 9ixth39eYCHRXJa6iCwAM3uQU3sVrOeGr8TFj25Yi/9rE2beQlXWWeIpDzB7fGgWy732kJpCr uuETKk9yNsa1lWkb9hT6jIgO9T2MQXu0LCjNo2Rm/FrXWz4BIFwJQbcCbjiqwUl3EwBybv+XV Ufzj8T27WGwwW2LBMwQD9oUKWoU4jt2oNwvXWIBQKuv4hF4Zi1DiHl89xq3SfLJ+hi6kE1V0a tLv22wr4aGqabsNjzygeLBVCuIkepIif12rxu+OLnZq+w6vd1+egZq2+WpDteik4OV9HNov+O iIatWj9Rdkmtk0+q3tKBORQvf2T4bQmg5k3SDhJxAKZjeB7LGNLbaDWWkOhAcZ7sscE4n70o6 nL1iGaGsToTLCAD/+5m9q2msNLUUjrTEIfof+OjljfHMjU/v9eCObZAaPTQ02nKakTb4= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The empty suspend/resume functions cause a build warning when they are unused: drivers/media/platform/qcom/camss/camss.c:1001:12: error: 'camss_runtime_resume' defined but not used [-Werror=unused-function] drivers/media/platform/qcom/camss/camss.c:996:12: error: 'camss_runtime_suspend' defined but not used [-Werror=unused-function] Mark them as __maybe_unused so the compiler can silently drop them. Fixes: 02afa816dbbf ("media: camss: Add basic runtime PM support") Signed-off-by: Arnd Bergmann Acked-by: Todor Tomov Acked-by: Geert Uytterhoeven --- drivers/media/platform/qcom/camss/camss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/qcom/camss/camss.c b/drivers/media/platform/qcom/camss/camss.c index dcc0c30ef1b1..9f19d5f5966b 100644 --- a/drivers/media/platform/qcom/camss/camss.c +++ b/drivers/media/platform/qcom/camss/camss.c @@ -993,12 +993,12 @@ static const struct of_device_id camss_dt_match[] = { MODULE_DEVICE_TABLE(of, camss_dt_match); -static int camss_runtime_suspend(struct device *dev) +static int __maybe_unused camss_runtime_suspend(struct device *dev) { return 0; } -static int camss_runtime_resume(struct device *dev) +static int __maybe_unused camss_runtime_resume(struct device *dev) { return 0; }