Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3525347pxb; Wed, 13 Oct 2021 07:45:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUQ/mcdykGuQe+xuKfmoaejlURZ7dma5ONDHiwrxcDqRPD4tBStADNfoUAiI+ZLsJiktvX X-Received: by 2002:a17:903:1103:b0:13e:ec6d:524a with SMTP id n3-20020a170903110300b0013eec6d524amr35800519plh.85.1634136342345; Wed, 13 Oct 2021 07:45:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634136342; cv=none; d=google.com; s=arc-20160816; b=Qav1vUOCQcQL2ElyRWiXA1OjGpPmjMBhlYOmxU+38kYKyI+M1EPWXRYHgkFR2fksn5 XOTesmzXDO3hnCGEsWQ8CqHQS+4scvffxP9TaMUhikJ9E/E6GGfzrFQMLG22GiJioWd7 sDe7TSbnhaOIDN0SCcMRkbRHqFColsP1KOYLx2bhpMU53Y0RnVcA1U/Bv0dhtGwNMASZ sTPqUT6rx++WZcjdMDEdUoG6gxNfJusRFMm1F/u7wS++7kyfi0Maxe8YdSsJLmBoJZbC 68ZtYImjA+c+czSxV7iCF4gup/ZFkOxJqDOdVqB1B6f/x3ElfFIcViQLC2PbxTL+JCOy R9GQ== 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=C/pj3m0aX7zgtVUE/DqTqLk7SXvmob3nLbNrtQLMacE=; b=d+h9Rs4vq/qoZM3nMjlK6ENtSSKJfqRErRkYbJhIWtTEoqlu516QhuCLjo3bs2s77g GTnjypMkeemA7leH+v2Aa+x0sO0nUZnEjHLt0QPYosXrNre4ZKoJG/5iSrcAFc7pY7/P AcejZNUFdWlW/266mnr2ABb5Qx8SfwIiAHzfGC8ZPttHuelXekwt5O4N8wUm1wUehpLW +Aqegzlf+pTbyB8fPEyZHfFHA9EiwZlcNE52qNUz7aIhlAKzkqcwe/G0HYowuHjbrDfK vLGVNpUDRuafN04HJJbaBILhS62w2UelBC/lwu7PjoFCitq5MAUqBNNq0iKz+w4xxpBj jCzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TMFnOOki; 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 h9si19831843pgs.569.2021.10.13.07.45.29; Wed, 13 Oct 2021 07:45:42 -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=TMFnOOki; 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 S236719AbhJMOpq (ORCPT + 99 others); Wed, 13 Oct 2021 10:45:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:51734 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233744AbhJMOpq (ORCPT ); Wed, 13 Oct 2021 10:45:46 -0400 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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