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: 144458 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp563883ljj; Fri, 17 Aug 2018 02:54:35 -0700 (PDT) X-Google-Smtp-Source: AA+uWPy99PJpDxNvlQ2kWpeIg/QXIEZsv7UCtvBndMKfbmmMSwqRfs1tqGfhQQEw50+E3LtwGQa8 X-Received: by 2002:a17:902:7793:: with SMTP id o19-v6mr33530399pll.306.1534499675625; Fri, 17 Aug 2018 02:54:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534499675; cv=none; d=google.com; s=arc-20160816; b=l8WECuYZzoFGpFZjDp8/dta4ksV8pRbLTidRdujtexmGGJPVUs5oxuwHvnT4niWWUk 1Qn1ktopbToksor7X0xhfV9RCyBNQG4dQMI/qvKF3+bvd8hh2eUKZylcK6kXbhggm5yP prGI5P1aXW5xSjxwAjFhfzi6Ey+1iaLJ9WzCLKoIvDGVyUT9Ty0/8QN3thXQxEmxLasF xbVARfDqJCz1mzFPleBPTp+kSo5EJjkM/9aN4DD/bMKPwYuKH7DB9CHiiQbm3HiIkaAU azsuJbLaumUO+4WjI0eIvvKUrKw46B62GZSgPyBmaban48d3ewQVF6/joqmPM+Lfal/A xtSA== 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=iNn+2PmdnwopAH4gHhWs7KpSH8Ssmr+3nu6CpD9y+pA=; b=rPt1bg9/XxG/4VNyBUoZHOLseZscioq4sMz7RJDdiJMyPMTaq/+dqUr9gnYlSmkISj zI6pvh08mZvbI3zmg/EoFznqAwhE8fAF+5KMD0+Iprp+/yGVH2q05CgTPLGbgQJ5Lnuj JgzFQKWvDc27uRTf7NBl6E9WmJCWG9icViEcfnV7HNG9OZibY3HNU+QwohxrZvHP3EUG rbycbGYFFiPYS3TljNY9zYycMdnDQJPxzGjpit5CYGsanOfwUIpuDtaX1kbflQ+vUE2b ZH0SEvkXgr24oTouNM/rqBNE2RW5oxxEknYQZSnlghOATM0nnpgS9SdWe2lexIJ92m8f GCWg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-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 42-v6si1925173ple.316.2018.08.17.02.54.35; Fri, 17 Aug 2018 02:54:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-media-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-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726661AbeHQM5T (ORCPT + 4 others); 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 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 --- drivers/media/platform/qcom/camss/camss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.18.0 Acked-by: Todor Tomov Acked-by: Geert Uytterhoeven 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; }