Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp566978imm; Fri, 17 Aug 2018 02:55:53 -0700 (PDT) X-Google-Smtp-Source: AA+uWPw57rPy3CkJRJxTGQu90BbhovALCkKFa7ZzNZe2dIBYH+TSmqwM1VzyMJODs5lITVCu3mcg X-Received: by 2002:a62:25c5:: with SMTP id l188-v6mr35742972pfl.179.1534499753606; Fri, 17 Aug 2018 02:55:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534499753; cv=none; d=google.com; s=arc-20160816; b=uZKLvhlP/qPJSZq4lXxHlyigz9rg7bqQkgtfqAK0c+dWl3BnX1WB1n5xvJdgOfFHx9 wjRZ0TtunqOJ3vvF1In4vUb8BHZ9p7uUO+i02gxz30MCLo+vqgY2j75rUs3pN1Pjjhkm w+8nvRvMjASGeoEcLC1OBffLN+ZsqLWQHHtT1IslLNWHa6fRDOiNZ76Rwx37T2jkdA0a MbVYb3FGXEorn4o2YFOarK0bqUh0htpb93X5jIStaZt1/Qj2jFGOiO66sZ79X5yf8dYQ bUvn/WmN21RkQ0OUfa3TS/JraC/jNj2ExFBddfvk2Ois1Ij4dqxY2K0zsX9WooT3G3LD UbdA== 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=dI054uBNWigYv90Qz9cSNi05t9/8JpOLz3/8u6dLZ7K18sFhi3jSvtnTWobuZMQSaD GSMj4jq7OrxBpcYNcY4L+AmT0J4GZUom4/Ct5epS1jIUAGchacEMmxuCs0TR7O7iQ1PQ RQIj3opH++zZsVK+VVB6fzV5oFtHEd8NJIn7JOfCD8OTv5VkmFjaNbeH6Hd45O1d3dm+ 0jpJ7i+KMWJzRgEvmqZsKE882zBouoPvyOb/y0PiYi1OJf/v684jjT2qeT6aWA/j+kju tztyGuPw4sZwRhPl+HIOLp+IZgSQD8ajPQC8ZCLhGdVlUJtF9KyfTXrGA3ituKK/sBz3 6NmA== 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 k20-v6si1606791pgg.7.2018.08.17.02.55.38; Fri, 17 Aug 2018 02:55:53 -0700 (PDT) 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 S1726775AbeHQM5T (ORCPT + 99 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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; } -- 2.18.0