From patchwork Fri May 25 15:50:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 136952 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp3758009lji; Fri, 25 May 2018 08:51:03 -0700 (PDT) X-Google-Smtp-Source: AB8JxZomQ6jwN+4H0JKRp6g5pIXShN9JJdEHTlly04b95EpLj2Je1kAl1TccQjyYVpHzkuQAYlqw X-Received: by 2002:a17:902:8602:: with SMTP id f2-v6mr3151400plo.5.1527263463342; Fri, 25 May 2018 08:51:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527263463; cv=none; d=google.com; s=arc-20160816; b=el8rtuUetElE+cLnj0mMEU6jgAWgDyRZeXlAjm/YMFdsBH0DQr7axG7AK1ltn/aFpn eGX/IafrtFBAATtDULo/Bw0rB+ej+6fhPtJPb7gU5+h+/wtiMS6eoJaXcscz3JCBTP0g q0ePQzFektRIgj/8yRSC/XKO2KvS8Aba5nbhiXgrf1i+37oqcQrTViburUE1R1O7PeOC KIZYiXRqdLenMyQDVCu9+UYCg1VQMkXObCmi3bQTVDVzTuBH2LijZnjNSPrnP7zhvL0u igw0OP0LBIMuP1AtLp9Vu8jes1iqxSdmQyvp0B5n9ctP2HmQlqaG0jFi1bmpE2LPWupz 2n5A== 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=PY6vLXVYxJdvXYxr72JQchrMG+VZLEIqUoFYX916jWc=; b=x5uCYY2Teqz0g8mkVUyZCnBoRhX+gmYkwQv4hI9g4vAslYjv4O0NKEVUL9hZB0hV4G Zs96oNZqm7wf2eiZP/1cuVyGzMvxxgB6gaxZgQIw2oOqIl9mvGZpwd5qwzkrerdSgvGe eIir7/WSLt6U4YzRv6Xk49MHZGR6QNXfIf6uGgmqR9Wo/bPI5vRWloxWqFH6DUSLgmgz +wvjzDUtn/Het72n4d5PItmyiNZuRJfBxoRASlvHe/+ogk/YI7hNMK/VIb2oMGMmokJ5 VcSvu9waCOAQ13wsIftCN047zh3WrEHUyoT+4yQz/+kuhJ7gl41YorPQcQYh0MCncFDw 81mA== 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 s129-v6si24360352pfc.33.2018.05.25.08.51.02; Fri, 25 May 2018 08:51:03 -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 S966694AbeEYPvA (ORCPT + 30 others); Fri, 25 May 2018 11:51:00 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:45901 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965666AbeEYPu7 (ORCPT ); Fri, 25 May 2018 11:50:59 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPA (Nemesis) id 0LZfCu-1g3FmX01NM-00lRZa; Fri, 25 May 2018 17:50:33 +0200 From: Arnd Bergmann To: Maxime Ripard , David Airlie , Chen-Yu Tsai Cc: Arnd Bergmann , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/8] drm/sun4i: mark PM functions as __maybe_unused Date: Fri, 25 May 2018 17:50:08 +0200 Message-Id: <20180525155030.3667352-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:C/yJg6rPGXVjaNrv1fHhRuKBVYGdzfq1JK3YSQ2ZG+cGbZyTPs5 vlmW8dyp6S5xpAU+GUJdaaXkpx/IW6hE7J7JWqJnhHhzqi+TUmPvwbSuhvsYZJJ5CWkNvP7 QlR5SkT4YMx21P2Yfh3rO/1HpUxVjpjol3hXP4Mm6VmIp3+on0S4FX17TXVqmjZCGMItWGM stdvVRqNIlCxXZswkjoAg== X-UI-Out-Filterresults: notjunk:1; V01:K0:ICEUGuBysa0=:/RdXe88a1HgZl263Agmy5Z 0cXfG3cm1jTHR1YFx1urayjBwQkg3oAt6ZvNJqaMIlbx2pGIEjL/q1Xv320Xw7irS0xlfPrpx bgTj1ZffVtZzHlJuw2RDEaOAKeAIkivyRHNMvxkIESLSAChrvJzKTqtP5AfRJQORXmzLsJ7p+ By55q5S+kgz74c17SV+x9viTkZp8j6OjAZ2SUs0U60af0tnnqZlHamu8+1zUQTkOqqlQxanZO wDLcvC25ioOvOzg84wkXtt6i3VW2DlIytC37swbgMmTL5hAZD6QPLHavqpYLZcZbSw1IussuR 1Zm9nQu0i3jA+k8BlJd8xWt6nTAkejuQVXwwXiJBys6NiEi25aYKfbtlqK6ECUpDN79pgidix ue0RlZA6UISdH8MstQA0RsZnD7egA07LQeozUSv/TNsRsZT9ugHZX0X/2E6DSofL978WrCfZI r/OFKqAQwLIrT95iEpR/a5TkFF2lw2inpe61fQpbFlnUKK7e76XibMVF/jmOVjDWeI8McOJvP eR8GPtDsUNNKGcMS4MGvNSiDdI151WJer0qY+GZIovRHoENkB5XQTmGpF5XAkAnR1QLPMASUH LoqzWM14n4rphxSD+4lzY7ddEWxZU0zKrNyQ+hXwZ9A3bgRQydq33XVS4C2t+rChdDu2VuPKV C8jAPW0gkAlAx2sWkJyXtaQgQ5OkkF8biBEIjR3kB6w0F3uPURACiXKAatrfltVk3fZA= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Disabling CONFIG_PM produces a compile time warning when these functions are not referenced: drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c:1072:12: error: 'sun6i_dsi_runtime_suspend' defined but not used [-Werror=unused-function] static int sun6i_dsi_runtime_suspend(struct device *dev) ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c:1043:12: error: 'sun6i_dsi_runtime_resume' defined but not used [-Werror=unused-function] static int sun6i_dsi_runtime_resume(struct device *dev) ^~~~~~~~~~~~~~~~~~~~~~~~ Fixes: 133add5b5ad4 ("drm/sun4i: Add Allwinner A31 MIPI-DSI controller support") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 diff --git a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c index bfbf761f0c1d..d4e7d16a2514 100644 --- a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c +++ b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c @@ -1040,7 +1040,7 @@ static int sun6i_dsi_remove(struct platform_device *pdev) return 0; } -static int sun6i_dsi_runtime_resume(struct device *dev) +static int __maybe_unused sun6i_dsi_runtime_resume(struct device *dev) { struct sun6i_dsi *dsi = dev_get_drvdata(dev); @@ -1069,7 +1069,7 @@ static int sun6i_dsi_runtime_resume(struct device *dev) return 0; } -static int sun6i_dsi_runtime_suspend(struct device *dev) +static int __maybe_unused sun6i_dsi_runtime_suspend(struct device *dev) { struct sun6i_dsi *dsi = dev_get_drvdata(dev);