From patchwork Tue Oct 2 21:21:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 148029 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp5650284lji; Tue, 2 Oct 2018 14:22:22 -0700 (PDT) X-Google-Smtp-Source: ACcGV60osF0OMMIh708QjefW62Kg8JZu56wnjR/5acsZPp/lYkd1g9/N9RfX5yPtJqWsmcq8tyB3 X-Received: by 2002:a62:18a:: with SMTP id 132-v6mr18205348pfb.207.1538515341868; Tue, 02 Oct 2018 14:22:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538515341; cv=none; d=google.com; s=arc-20160816; b=rQpCwAS+5DwJqLwUm6ahimko5+SaAmiTBkfabI01V4u3A6RVL/FbutmmllfnYVz/1T BERgVIYwNyUxsKd1dV0fvsc/sueDHYYvNgA4X87mLyKAm/QzDRepfS1BTbtvkYez7v+1 yt50sABwiBgdakbNF43g8t2s59YpF3cmEJ2BubaHQWsDwxNcPWo3Erl1bxZ6CY0oEg7m 7oG3G658y24LCbJ5KGLSkmIcKdgmiPIcdX1GDw7lyC+XNi04fg4Pq5SDxKffzAicb1qe LETy2s8acTVVZCKe3vc6JFFZwKWMQdW957I3jVSof7KSh08hfcntGHFHjKMbwxX+eVz1 Kf4Q== 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; bh=XDvkZ/qU97zzNONCDJCr2h9x9fMVs9VaMElMTyS158k=; b=IFX1i9VmQLvykEr6gLxLvg+WFuiJS4oKr4Au377/mCZqN3y7S0z6l+dOCSksAYlkd1 5e3lYN1dDnzC0FNhyiwyvIIVbBCUxuEpeWrX9UErrUd6QGZqAWFKsmaRGhNhVC09z622 iLkSP8gfE7LrWph732CWpSi2JpiHU7imoEv2jJRhX2LkXRaMhtFGlDt1mjgNkBe2A6Xb mFMBnBPjmVrhTwoLO9ceqazdrO9ycGewI/yCz0L5N30Vcr5EoflV21EV9BR9NGJaP+Ph dKsp3Rz6207T426p1K5RWQ0JGNKF7w8S01AfRCICPT7+bZic7RuNvJv+mxxwxiaFmRhH O+oA== 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 c6-v6si1438988pfg.2.2018.10.02.14.22.21; Tue, 02 Oct 2018 14:22:21 -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 S1728606AbeJCEHi (ORCPT + 32 others); Wed, 3 Oct 2018 00:07:38 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:48249 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727040AbeJCEHi (ORCPT ); Wed, 3 Oct 2018 00:07:38 -0400 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.145]) with ESMTPA (Nemesis) id 1MDgxt-1fytoU3hEl-00AnCq; Tue, 02 Oct 2018 23:22:10 +0200 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.145]) with ESMTPA (Nemesis) id 1MDgxt-1fytoU3hEl-00AnCq; Tue, 02 Oct 2018 23:22:10 +0200 From: Arnd Bergmann To: Thierry Reding , Jonathan Hunter Cc: Arnd Bergmann , Mikko Perttunen , Timo Alho , linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] firmware: tegra-bpmp: mark PM function as __maybe_unused Date: Tue, 2 Oct 2018 23:21:27 +0200 Message-Id: <20181002212208.2971433-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:vGiWoKMBj91kRHrtpaRlH1jrKTm4N+Na1zsHY7i1d6tLi4KF4sT tqRCOpimY4WQBWpxiQnNV5+VNcrXYKu6nPxMBIZc2Z0SNAc1dMmHFI1rvqqVX/g4q+HtEuK EfcpKmg0eTUEPFdlhFiFFT9yiwoR4ee+6Ds0jeGS+zz5dpS1ailmMZ0EZBXa0jsTQhJjYPg +Tdo1XkyNhubrQvxAgcqA== X-UI-Out-Filterresults: notjunk:1; V01:K0:k9uYCVUEpRs=:aXrnZUS75TCqmUf1aTKN56 2CvHvzbAAZvSJ4eUKwQXq7Dydaxp1l54khADL3TH+pF7S8Ueyan69nweBaJ5LhU0yGzzMgCdi xJKtak86uC3z89q6VLmzFkq/36o6LwBnXpqXz9QU+wQb+YF9SYsdrIrGiRJjb8rPjDXcW7s5x T1U1lXyCjnnmC21GeRvWrmd+0h4B9wMdVH7EwuzYnIieZKduL3MUS4Ne0lseEPqYw1xKA8JkW iIMqpSQVb/n62UwjM8YOFwoRTD0z3uX/QtpbnPaw9iTqefGD7NsbRnlrf7pJts2il0hKrGazz VDp8XVnUegIBY9uSVYpswhD4AwTqA9yQqMOf9/3FOhDvWvhvdmrCMWmEJoUqX6w6suNJVNXjf ekGayaBAzjonXJwo/VlPFH7fG8TszUXsXHQQKV5VNFI9G96cfVcSCFTSWfhIEJqoF/O8yukAf t+grurHT/mSYvMXc7HJdrRwoLL25wNJQmEbTlgk9dCJnU8cVLuWBujFTAucPxohFF29600zY8 RznBsdN7gwXYLF72jgacN9yCrBh9lnbIt1605UY06mp6RnjX4TOrRNXSMCK173Oa+A6/Yu7u4 w6ZRfQClQvIV4DAfb2dmjqpL5WmFfms6rvc30L15WHCLyz+lxvnzAlZ2/sprvW0SnNQA1dYXN liTZIrd5xBwOPnpt9x9EOlAHVk3Q/dMr87xEkF9zZvSZ6yrRU0feiSDls2TdpQANf/Xs= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The newly added tegra_bpmp_resume function is unused when CONFIG_PM is disabled: drivers/firmware/tegra/bpmp.c:847:12: error: 'tegra_bpmp_resume' defined but not used [-Werror=unused-function] static int tegra_bpmp_resume(struct device *dev) Mark it as __maybe_unused to avoid the warning and let the compiler drop it silently. Fixes: cd40f6ff124c ("firmware: tegra: bpmp: Implement suspend/resume support") Signed-off-by: Arnd Bergmann --- drivers/firmware/tegra/bpmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.18.0 Acked-by: Jon Hunter diff --git a/drivers/firmware/tegra/bpmp.c b/drivers/firmware/tegra/bpmp.c index 41448ba78be9..a3d5b518c10e 100644 --- a/drivers/firmware/tegra/bpmp.c +++ b/drivers/firmware/tegra/bpmp.c @@ -844,7 +844,7 @@ static int tegra_bpmp_probe(struct platform_device *pdev) return err; } -static int tegra_bpmp_resume(struct device *dev) +static int __maybe_unused tegra_bpmp_resume(struct device *dev) { struct tegra_bpmp *bpmp = dev_get_drvdata(dev); unsigned int i;