From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 728DEC433F5 for ; Thu, 14 Oct 2021 07:54:51 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4413261019 for ; Thu, 14 Oct 2021 07:54:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4413261019 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ssneyrCAbpEf1Msie9rW0a4nh+lnDx9lhEc2Hb2OIrc=; b=s4uUkhwlki/WYg nka5ojw/4N7sId5Kec8m3fj9LePDjr4MU0OG6ERAdbE0FhFj2b7s+AXggosSD+CMRstZlpYC4SiEZ XpRj2VdqFQfx0VeSlj1FUgYJhf8wSgkGlLz1jAttuWViuZZbNYFrs0YiCAMbSA0gIYxThbzMhK7vN JDNAJYBgeh5fvcq8i0IY0x8fwE3fi9yuYdU/hLFaRiGNEBVCfch/HKU0dxVVxoxx2afnxU8F5GY9H AHCDnaaxmvjsiaFEbH/hICUMJpGAjhNQxh87SWSVUUvKflfQ4LSRQ1IgoGjSxbaR+2txhv83NLaly h8wsn0PZdyW0WvG18tcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mavXl-001ygn-FU; Thu, 14 Oct 2021 07:52:49 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mavXh-001yfR-8e for linux-arm-kernel@lists.infradead.org; Thu, 14 Oct 2021 07:52:46 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6EB7061027; Thu, 14 Oct 2021 07:52:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634197964; bh=qD+0G++7GvIbBcp1KcC76JBeUGQ4HMtVySdt0dwDMXo=; h=From:To:Cc:Subject:Date:From; b=QBtJkbALq4BE2jnsT6WHrt7SrIdrnv4OYnGoUrtD7tGgEsGCHPJsfMRVAwFvo0Mcb kTT4sTkdcNQ3Y03OxP0yTkpM2eLMvVIqM+3vnph4MJH+J1WXvyC0OWVflOetmzw/AF 8WMdhTaIJiXAvfoy8qCwFKFtgQtvsxdp40NYYU8o/iCgqjV2rGyiAGaxhJ1jBPbqc7 mnkkjO9OuUCQMj0SSWMvfDWSb0pGvMQuR41VcmNsRt7sFigZR4gfnRbUHcAxT+cN41 DsE3sLY1f0v2mmpmeRWDFpbayWBZlXG8vDDMKurNvDhC6p1avBSmztOkeMTlRqpb+s mXi3AOdKWJlsw== From: Arnd Bergmann To: Ohad Ben-Cohen , Bjorn Andersson , Mathieu Poirier , Shawn Guo , Sascha Hauer , Shengjiu Wang Cc: Arnd Bergmann , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] remoteproc: imx_dsp_rproc: mark PM functions as __maybe_unused Date: Thu, 14 Oct 2021 09:52:24 +0200 Message-Id: <20211014075239.3714694-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211014_005245_344283_FDE79047 X-CRM114-Status: GOOD ( 11.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Arnd Bergmann When CONFIG_PM_SLEEP is disabled, we get a harmless warning: drivers/remoteproc/imx_dsp_rproc.c:1145:12: error: 'imx_dsp_resume' defined but not used [-Werror=unused-function] 1145 | static int imx_dsp_resume(struct device *dev) | ^~~~~~~~~~~~~~ drivers/remoteproc/imx_dsp_rproc.c:1110:12: error: 'imx_dsp_suspend' defined but not used [-Werror=unused-function] 1110 | static int imx_dsp_suspend(struct device *dev) | ^~~~~~~~~~~~~~~ Mark these as __maybe_unused to get a clean build. Fixes: ec0e5549f358 ("remoteproc: imx_dsp_rproc: Add remoteproc driver for DSP on i.MX") Signed-off-by: Arnd Bergmann --- drivers/remoteproc/imx_dsp_rproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/remoteproc/imx_dsp_rproc.c b/drivers/remoteproc/imx_dsp_rproc.c index 63749cfcf22f..90fcb389e252 100644 --- a/drivers/remoteproc/imx_dsp_rproc.c +++ b/drivers/remoteproc/imx_dsp_rproc.c @@ -1107,7 +1107,7 @@ static void imx_dsp_load_firmware(const struct firmware *fw, void *context) release_firmware(fw); } -static int imx_dsp_suspend(struct device *dev) +static __maybe_unused int imx_dsp_suspend(struct device *dev) { struct rproc *rproc = dev_get_drvdata(dev); struct imx_dsp_rproc *priv = rproc->priv; @@ -1142,7 +1142,7 @@ static int imx_dsp_suspend(struct device *dev) return pm_runtime_force_suspend(dev); } -static int imx_dsp_resume(struct device *dev) +static __maybe_unused int imx_dsp_resume(struct device *dev) { struct rproc *rproc = dev_get_drvdata(dev); int ret = 0; -- 2.29.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel