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 20E4CC433EF for ; Wed, 13 Oct 2021 14:45:07 +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 DFFE161166 for ; Wed, 13 Oct 2021 14:45:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org DFFE161166 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=Q+0ho0wCphJYTu+vSTdX5Sf9ahfnjWqTaHIlilXn71w=; b=F8i3Gf7ybwUkrZ wU09bQH10YVaeolqJT9DhHtWqUCjkwAqHgqCyM7P5rRFrFZYfGVjBzhEUXe7WaOgSj0vi3JDytLGv 0Rklu4CQE5Z1K+OZQgrFhHuNg9XTjw3uO4dRb/ukSHL0jdgOVGVa1aUUy2cck4tj1uortn3C8lPIn mkJRb6MZ88cbEi3nLGP3Mom29d2qleqZQ6gC5OPQupuHnQObmYzw0AIwlQExHvrdxs1Drzw2lRDaD XY6vyl0zjXIspU1OGDHNxHt1iM2qhLQ8kquQTiEMfYstCWCZpXi7nVvjLpn59N3Qxm353P9s/xwFP 2jG4kiDk8pizcavKzeDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mafTu-00HD58-VW; Wed, 13 Oct 2021 14:43:47 +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 1mafTr-00HD4B-3b for linux-arm-kernel@lists.infradead.org; Wed, 13 Oct 2021 14:43:44 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 946D961166; Wed, 13 Oct 2021 14:43:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634136222; bh=WCBEv0rVg1t8NxfLzQI5AyH0vU8FITaub6xBor05cRM=; h=From:To:Cc:Subject:Date:From; b=TMFnOOkiDEDoma4gTjm08HzOkvkQjdUBIAMShJ4T6WPnB4vBPpb8fZQ7jIkufUZjq PbjPHPaSJQJkilsMcJ67ZvQwBBKg6mECMmyB8IDJw2TNHR4sTmDLIXat6Uf0y/sNaS cCVb8/6Njh6t6vCShpII1DkfKGiJmO+sT0r/K9Ob91z9P3UIj5MLrl0G5H9xOG78CB XQP4ylY36gUgm6f8OeFZ07tnzWFHdiiUoIJZ+e9uJrGvsJDc9W/Tam5QWTv3L6SoOM nv2uTDdc6F3c8M+T3eUdURon0C+gbgPNlTOAQboL1fLABbIIUn6xqs1c45mC01lYtr hJEIpDEa/PBpw== From: Arnd Bergmann To: Cai Huoqing , Jonathan Cameron , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: Arnd Bergmann , Lars-Peter Clausen , Pengutronix Kernel Team , NXP Linux Team , linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] iio: imx8qxp-adc: mark PM functions as __maybe_unused Date: Wed, 13 Oct 2021 16:43:26 +0200 Message-Id: <20211013144338.2261316-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-20211013_074343_195806_11073C36 X-CRM114-Status: GOOD ( 11.24 ) 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 Without CONFIG_PM_SLEEP, the runtime suspend/resume functions are unused, producing a warning: drivers/iio/adc/imx8qxp-adc.c:433:12: error: 'imx8qxp_adc_runtime_resume' defined but not used [-Werror=unused-function] 433 | static int imx8qxp_adc_runtime_resume(struct device *dev) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/iio/adc/imx8qxp-adc.c:419:12: error: 'imx8qxp_adc_runtime_suspend' defined but not used [-Werror=unused-function] 419 | static int imx8qxp_adc_runtime_suspend(struct device *dev) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Mark them as __maybe_unused to shut up the compiler. Fixes: 7bce634d02e6 ("iio: imx8qxp-adc: Add driver support for NXP IMX8QXP ADC") Signed-off-by: Arnd Bergmann --- drivers/iio/adc/imx8qxp-adc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/imx8qxp-adc.c b/drivers/iio/adc/imx8qxp-adc.c index 5030e0d8318d..901dd8e1b32f 100644 --- a/drivers/iio/adc/imx8qxp-adc.c +++ b/drivers/iio/adc/imx8qxp-adc.c @@ -416,7 +416,7 @@ static int imx8qxp_adc_remove(struct platform_device *pdev) return 0; } -static int imx8qxp_adc_runtime_suspend(struct device *dev) +static __maybe_unused int imx8qxp_adc_runtime_suspend(struct device *dev) { struct iio_dev *indio_dev = dev_get_drvdata(dev); struct imx8qxp_adc *adc = iio_priv(indio_dev); @@ -430,7 +430,7 @@ static int imx8qxp_adc_runtime_suspend(struct device *dev) return 0; } -static int imx8qxp_adc_runtime_resume(struct device *dev) +static __maybe_unused int imx8qxp_adc_runtime_resume(struct device *dev) { struct iio_dev *indio_dev = dev_get_drvdata(dev); struct imx8qxp_adc *adc = iio_priv(indio_dev); -- 2.29.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel