From patchwork Mon Apr 9 10:54:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10331047 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7A0A26037F for ; Mon, 9 Apr 2018 10:54:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 69D2028759 for ; Mon, 9 Apr 2018 10:54:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5DDD128A96; Mon, 9 Apr 2018 10:54:53 +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 4977F28759 for ; Mon, 9 Apr 2018 10:54:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751667AbeDIKyv (ORCPT ); Mon, 9 Apr 2018 06:54:51 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:60861 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750952AbeDIKyv (ORCPT ); Mon, 9 Apr 2018 06:54:51 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue006 [212.227.15.129]) with ESMTPA (Nemesis) id 0MDaAr-1fHN4J0l6D-00Gput; Mon, 09 Apr 2018 12:54:42 +0200 From: Arnd Bergmann To: Michael Turquette , Stephen Boyd Cc: Arnd Bergmann , Kuninori Morimoto , Nikita Yushchenko , Gaku Inami , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: cs2000: mark resume function as __maybe_unused Date: Mon, 9 Apr 2018 12:54:34 +0200 Message-Id: <20180409105438.2402477-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:cejmJcCRaIJhA1WrdLbPtMW7ss523NaRqHKvyhbFpH/9W/bYSGj wwu78gxe0quYZMzSJ/qoUHE490gqp9oBgwYM9WrCnZ+xHrNsyyyppU/g1XAERMzA29I8JlC toHCHqxi4LOJ5iDjqVhvjP3k85Qo6C8CklYGw3ESD37LmW5k10sViE7MTCn8d3uY7iQmQsU yx0axCBmRMyI5hKf7LSWw== X-UI-Out-Filterresults: notjunk:1; V01:K0:/OeFxE/DA4M=:yAmk4/Ear+pHPAPqu/oYbH GoLNvvmsaqSVGjmxtbCK9sn4l3IRnuxlaCcw2VQ7vlprVWhVp20bfC0AxnNHI/0JvMnSDCOQt GkYicKiCJXJ2doaZiUCXQn/j2AqXG+HGT2Twlffz8r3vxCBGkgxxvRF0MPTNLXec2G0diIOGh IrnKxhy5jCDKH/lCLMMf9J7HTB3OKoGfomMeocb53x4dVy3/JOh8ZH6yfAktidQeLY52tf0E4 5Y7cp/ANPENdeimLYbIP5sPAsBTs4bII1oOt73a/MCFKhfJDDQFk+/03baMB2kUOoURBjvjn0 pJ99JgHQrDg4wflQiScbdjZA7elLwC7ZoglV/OAJ+rDYedKi0EZbXyYqSUkgOSBsQ9CmKhJAE k/jaZ571YwpuQE18pMDcPvP4NzirhjxssVzh7wAopoYxtBCfc3VeUKv6wBS25nIzFiwwzmiMJ 0EfQlIYDFjchBBCSw+jEE9jrqK/Qvlb0CZEG1JZsdyp7tNXkK6QBPxy38ZHM8hJqbdR1rXUue 2kQmaioD6R6reon38MjxiV/m894U66qqBom3mtUK95cTCPyiHiiXjCcPh8ZRpcLcmyyjBsZUt +il4aBO9sDQTmjcbGaw+QV6QuUdlVsemSDZowoqohVWIkAonE4Lf9CPqbNUdzaLsveYQ+4xP2 /zPYESM31RCaWusLr4I821VaAy8sEl2LT8w+wyx25Czsog/5kvYOhZN4EZDJFfSDFNuBU23lS emVYXmAljyY+7IInL+jkWewuRDwl5Y1uENqmCA== Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When power management is disabled, we get a harmless warning: drivers/clk/clk-cs2000-cp.c:544:12: error: 'cs2000_resume' defined but not used [-Werror=unused-function] Marking the function as __maybe_unused lets the compiler silently drop it instead. Fixes: eade4ccdb087 ("clk: cs2000: set pm_ops in hibernate-compatible way") Signed-off-by: Arnd Bergmann --- drivers/clk/clk-cs2000-cp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-cs2000-cp.c b/drivers/clk/clk-cs2000-cp.c index c58019750b7e..a2f8c42e527a 100644 --- a/drivers/clk/clk-cs2000-cp.c +++ b/drivers/clk/clk-cs2000-cp.c @@ -541,7 +541,7 @@ static int cs2000_probe(struct i2c_client *client, return ret; } -static int cs2000_resume(struct device *dev) +static int __maybe_unused cs2000_resume(struct device *dev) { struct cs2000_priv *priv = dev_get_drvdata(dev);