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: 133022 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp128964ljb; Mon, 9 Apr 2018 03:54:56 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+RwHEwzoJKhsdjQIvphVxXXvs42/6eiT7rvqr6oFzAnYBiAfbWlSyVm6dfZDkqSQOZLvLh X-Received: by 10.99.127.83 with SMTP id p19mr11500071pgn.161.1523271296247; Mon, 09 Apr 2018 03:54:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523271296; cv=none; d=google.com; s=arc-20160816; b=qi55mANT0D5/YoKUTYqI4nxll6ET0t+ORPWArIucwFdeWAgiWL3farpjq4U8HAFHrt 84vRijw29YpnPQlxQyzj1Ow8CEo8JF2OBxHW4Y4fbhkyGPRUwK0xaHgBFYAXoxDT6ywA VDUo7eVqTeV0+LQlPjVZKQS5xlbnzvEgWpYl2VnmZ7Evgc3KM6QwQRJY3DfJGi/Qh317 jRM4Vo0re3o5QzWDhELnfG3oUPHRol6F/ildD7M9/hbtjL6YQQdrH0Ac/W5rlsLHAGj6 0TfrDBKxYP4yuVcLVwVhgSbbYRB2rxo8IjH+NZk6zbW4+YVB3XobKet241xeFVayxBfG brhg== 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=1UzQGj7kOyvHBbzJOis0rmxIbOlIy1rWlHWt0N8JMs0=; b=wEabozrCdAOI6bXB72LjXAQrPk247cRFL4dgw3OwLFJg3H2AAYvbG+Ima+20PhXH4m 54my62222kE6mlMUG7hbIDN5uCvYNHmp7delWKuYnawjcX/hF+T+y3gd6DIDWxZRG+YQ 0EY5uQHzao33TmDDpwt782zRn9ih97wIC7vNJ3iVaV6cH+5Wadop3N6jXci/VqConYnw w3GPbZI9DrP35UVR8wlHw7BA9nt9qHawummABZWW0woEQc4h3flQneR6KnMPcRY9UAcD ygFKuYUYdLekE/yUx/s8B4vJbDbG+l2ya54rPM1EOxi2i6s+u5CSofy2dCnOC1Z0r5tP QaPg== 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 a62-v6si79225pla.185.2018.04.09.03.54.55; Mon, 09 Apr 2018 03:54:56 -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 S1752364AbeDIKyw (ORCPT + 29 others); Mon, 9 Apr 2018 06:54:52 -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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.9.0 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);