Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4233603pxb; Thu, 14 Oct 2021 00:54:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUh8NTubFfudoP3FMFkfnFoEAOVkhagYyTw3hlboO8r9QLgA2vNp1XW7S11m6J0x44IGNw X-Received: by 2002:a17:90a:1d8:: with SMTP id 24mr18917452pjd.69.1634198096446; Thu, 14 Oct 2021 00:54:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634198096; cv=none; d=google.com; s=arc-20160816; b=ZKxla7NhWZKRNjFAGPu9NAb0y1XnPuxr0DMmnh8CWR3+83YDo0hY4zBNYVLa+wDebK HMy3LYXc0Hqqlw0c4wuQNMfQO0ZAOvHLPhfD9IwaoMUXqUszsziBS1QswQE2rhqC1ZmF o5KL8t7m3wcwx6c8Kyk8tBTBzFDSynHimg6V70pKTevcqqd16aeimxFzz/x56Jf0SIwr fTx2jmvYTSLmSCGdg/7QX5ACjcyykn63bagVqVvFuL3SoIKlxq8RDjP54dsUr4WtzoUy EHuGtmJaN8pp4ZiLNnzYM8xV3q/3VoHU7fYctlEZsxMtutiyK5/qGbJ6t7tqVYazcGzJ zEYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=UoHvih+oYo1KgxZBS/YJxcLpaAdFiB5mMC8pKve9SrM=; b=bkEH7s3FQqHGlbq9idaXxplzsik9Yc6iwdsozUp6kF80VqVKQ4xB+npGAMfW8BnQbi bo5z4p/lwCxnfEeCNHIqRT2PCZGFrBFgb4k5iLjji/L9HWgDVcZ6K3MQ/SfXAKv9AcqZ NEbCxIDvSYriVQBVDrZ6zy+KJyb34q9f7pU8ukFqp454M9eGOtwirdWWvUE3YTq1aCsE 6v193amn0QQZn0FPok2DRbzanDUjMXBnTNaipFPQwWjaZi7bs8rc+UPwGcAhVhBPgLxS a7gNy7q7gmU/cS7pziXzN08UmP/DThs0Bf+OAh8iBRoaEGw6xiouwZJo/AWf4OV3m/Ns Cisw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QBtJkbAL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id il3si4004609pjb.22.2021.10.14.00.54.43; Thu, 14 Oct 2021 00:54:56 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QBtJkbAL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230081AbhJNHyt (ORCPT + 99 others); Thu, 14 Oct 2021 03:54:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:47120 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229967AbhJNHyt (ORCPT ); Thu, 14 Oct 2021 03:54:49 -0400 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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