Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4601193ybz; Tue, 28 Apr 2020 14:34:35 -0700 (PDT) X-Google-Smtp-Source: APiQypJstCTl7IRrPgbtn5H/0J/cB94z//TCxbMdS6sprA1DsBpLorl4sSKIucuEFnN71ndnOP7f X-Received: by 2002:a17:906:8699:: with SMTP id g25mr679831ejx.365.1588109675065; Tue, 28 Apr 2020 14:34:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588109675; cv=none; d=google.com; s=arc-20160816; b=q+HfNJ1ye41Ar3yklogevcd5bLoB8Txir+8SFyyYj3r/YYsyv1ECpRLZViXaiTpMYK 84HHidnYmnrr6f5lgGA8Az/vas6ewH95OH+FGfAuUO34r1OBgRuHR1F84/ELBI105wKr eWs5toGaNDDxMMfKo1jmJrUm5cbkR/QiFwZv4DIISCm4UczH1daNA10THiUeOYBmk6GN MUI/r9NByfdeMzxE6oY16+qAXotDWgyHPnL+4tZYaCuwDFPPhwQTvhTAbP8e1A3PTOxB mOOU4ocFTfCyh+R2i2RUSgtsxpfRLYGLQxLpTrMGfv9KW32FPSdOadJsv/fpg41xjDFJ tCNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=7wnw+kujVKBuakARei0bJoeHUBqU1LOjB4F2dHOajiY=; b=qQSQsHf1gVCsc6VzViVctlaj2o86Xz0sFdOcIN/++IGVaaXAwb/TU2xHDT7bMB9qu+ L4KG9fZuZ4cP3shyIyw47ZE3aD2P3lhQ8zwkwgdBSmRkdBhWvq7uQLtxvlFuqYxL0MIG L27kw9LwyZzIv5OTqnasSZ+ZLgootGL8RnRavaH6PtP6PwlaRIs7gHqJ/bNKSPi9mt5b zeqEnFCh1Y9D4dkn1ZYIH18Uxmpz79SHkETRNniKOZSTO7GdEyc3YNwpyk+CCzrvUAoe 0th0jJfQX4fxzPNs83XY0vwOiXkVr4J7i5IX/AOQXkKlX8AHQxQzoS1hn7YncHTzwbZF U5bA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i3si2411629edy.312.2020.04.28.14.34.08; Tue, 28 Apr 2020 14:34:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726625AbgD1VcE (ORCPT + 99 others); Tue, 28 Apr 2020 17:32:04 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:34793 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726272AbgD1VcD (ORCPT ); Tue, 28 Apr 2020 17:32:03 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1Mhl8Y-1iycqy1vmK-00dk8x; Tue, 28 Apr 2020 23:31:40 +0200 From: Arnd Bergmann To: Sandy Huang , =?UTF-8?q?Heiko=20St=C3=BCbner?= , David Airlie , Daniel Vetter , Enric Balletbo i Serra Cc: Arnd Bergmann , Sam Ravnborg , Thierry Reding , Laurent Pinchart , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/rockchip: cdn-dp-core: Make cdn_dp_core_suspend/resume __maybe_unused Date: Tue, 28 Apr 2020 23:31:24 +0200 Message-Id: <20200428213138.3171708-1-arnd@arndb.de> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:9gben41GuxcER2oeB9wYFmmawlgPoyYBUHJXzEFjF9Cabdyd6zx UnQqpKoIlMMhMSJMpuySRnALm9dHkuP2ohqYNq/f1dDi8rb7CkJYGeWWaT5DbF2erglp9jy 3dnGb8OeECJrvFGIXwYVDOrV/PXlOVyafv0VaeEy3uA6RtW2Vo4Iu93RlK6TbIOJRrhZw1c pp3XMgxlBaX9JAjUHxR9A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:PpL1chTksEs=:0aWKAbC6CW1CMI3dzP5Gzu BZBRqPxP6Abvzmlu7WERc3rgNnMtcHirhasII1DlkqCVt16q0C+fZ8ue4ruuVX8oCISwbyejA p2pHgv1AGbewbLj49YMiETFtVQr9Sl42j5XNtq26eUN94I514lrIGZD7o1m2Rc0sc1x1oKjSY RpRmcczTirgb8KYRp+O+SDikXS47dme+T96VaQefBAviX3IvR/+TSM6GojVBgTJlq5ie5y4UB zFkmoty+bLSedIJn1bva4MxZTHT40+E0CYFs6LZT0vpgA9SxoKEtNPTSNL+56QiXAnr89Rv0J DwV1btZHMLgKyGI6a1C5nI7NESiwwQw2ztp5fF1mmfGrJTQQqiBlvHLxQBhQxG4nFd7ZxQBnl L86RYJUU5WUbaImD6KV9niyjczw2Y1AI358s0LJ/uJtgggdHgLCMfryNoLWVuskP5+f22cyNx eUJlm6EmNQiyl0sJm0VWBwDPQFD4AGHrIpx2XNUr9OIcYWTm+R47zrZUjyvvHaBJEqEqTosIx mJ8/KbmpbhepBJDPF6EVgTjeRFmTUa96uvRZiF7u5B+iBewkNpfrfBQVNXAl0Jbbm0kGRSHbO nuTDJrxKieLaOefJUke5OeRUY6uMWXHarOOSTwhoERccYSorX5lDGViY+UdD0ef0x6uaWI79D TatCoGF3WzbWrR5UumEiT/5sqJ/nsG3XIh+2k6NhJpqNy+/Nw1Ri7VvUgtuAg+6PB958HPY7B V3Sgnel9PC8tBoXnYABhIfwxsbE8OFYsb4ABLxGS+AIYVNAkqRnSAtm86mZK6UXxLzsIBrD7s NU4xcEH1iZsFiksRG/EuB6b1CocT//Y2QGhYlyuQ0fa7KdIh1A= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With the new static annotation, the compiler warns when the functions are actually unused: drivers/gpu/drm/rockchip/cdn-dp-core.c:1123:12: error: 'cdn_dp_resume' defined but not used [-Werror=unused-function] 1123 | static int cdn_dp_resume(struct device *dev) | ^~~~~~~~~~~~~ Mark them __maybe_unused to suppress that warning as well. Fixes: 7c49abb4c2f8 ("drm/rockchip: cdn-dp-core: Make cdn_dp_core_suspend/resume static") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/rockchip/cdn-dp-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/cdn-dp-core.c b/drivers/gpu/drm/rockchip/cdn-dp-core.c index c634b95b50f7..1cde98c6b0e6 100644 --- a/drivers/gpu/drm/rockchip/cdn-dp-core.c +++ b/drivers/gpu/drm/rockchip/cdn-dp-core.c @@ -1106,7 +1106,7 @@ static const struct component_ops cdn_dp_component_ops = { .unbind = cdn_dp_unbind, }; -static int cdn_dp_suspend(struct device *dev) +static __maybe_unused int cdn_dp_suspend(struct device *dev) { struct cdn_dp_device *dp = dev_get_drvdata(dev); int ret = 0; @@ -1120,7 +1120,7 @@ static int cdn_dp_suspend(struct device *dev) return ret; } -static int cdn_dp_resume(struct device *dev) +static __maybe_unused int cdn_dp_resume(struct device *dev) { struct cdn_dp_device *dp = dev_get_drvdata(dev); -- 2.26.0