Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3006324pxb; Tue, 12 Oct 2021 18:49:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMt03kBFMhDq7ZNh9m7z2LXq8jGGNiPrIivDOSCJrERbjrfIIJtAOYQI65v5XKRg9E/4nw X-Received: by 2002:a50:d8ce:: with SMTP id y14mr5042388edj.92.1634089777231; Tue, 12 Oct 2021 18:49:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634089777; cv=none; d=google.com; s=arc-20160816; b=bLvPokjDEWLyr6AgASFytjisrOyu3RqR5fYfT7Rr5a2Ht/1RyNK4YFG9/F/pyHN87R jlJBwSwdPuNBlGJUxvU0KkvUiVofHWSAwNGS2nItM7+qnYKTY6WDphV+Xm9jC3ZxXbyk 6sjkE+BjR5NU0XRIPPBTW1d4xg9y2o0H0NLdoMuBxcK23bQZum8awjmo73BXyaPi6EHR wZnzUsFjjv1nLApPKN6P61NYS92FAEU7EhuLbUsHE85XHBHZ6ZBBMNL129rdb9op6uGA uEfEqum/sMol+XoVMZu1hEZ/fWCM3xRAyRgjuh2GSt7sO+s3Ea1RDkfCZAOvADv/Oo0T 8Mqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=Cvg0sljKagM0GNpJqlMAAt61LZ3EdMu1u458h7KH5Nw=; b=qIpcVJElDcUym1knKOL5ErBERa2zzFNZpFb3VT7wdek8LJ/h9dqaLbxQbWHrCEt3lU 4kmtp/R0TNOugf7d/8ARk96+UV9ZFRmKnKHVuZVYWpvoYr5nvVvkGWCJ1HRG+rWXfNRN weLzY4kWnJxi9zRoXpc+4DaDx1OnOU7oP21wpeqFgq5oG1JAWdhmgyCkya3S8P659NpA iKcPsgTZChY5YonBvOOrXfyPddmVqum4gbZDj6P9KQS8D6yzsbsX6VzaFsG9Fmoj1sPT QISCSNoGIt9WdHk4wiwEbdHpa0ibm7U1Wxv880+YQ5ElYPjwQpspij1pxlC/P2EPGLTF TMxw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hr5si26289456ejc.602.2021.10.12.18.49.13; Tue, 12 Oct 2021 18:49:37 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236560AbhJMBtb (ORCPT + 99 others); Tue, 12 Oct 2021 21:49:31 -0400 Received: from mx24.baidu.com ([111.206.215.185]:33562 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234119AbhJMBta (ORCPT ); Tue, 12 Oct 2021 21:49:30 -0400 Received: from BC-Mail-EX04.internal.baidu.com (unknown [172.31.51.44]) by Forcepoint Email with ESMTPS id 7B05BA3DD4FE3D051073; Wed, 13 Oct 2021 09:47:21 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-EX04.internal.baidu.com (172.31.51.44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Wed, 13 Oct 2021 09:47:21 +0800 Received: from LAPTOP-UKSR4ENP.internal.baidu.com (172.31.63.8) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Wed, 13 Oct 2021 09:47:20 +0800 From: Cai Huoqing To: , , , , , , CC: , , , , "Cai Huoqing" Subject: [PATCH] iio: imx8qxp-adc: Fix the error - defined but not used for runtime pm API Date: Wed, 13 Oct 2021 09:46:58 +0800 Message-ID: <20211013014658.2798-1-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BC-Mail-Ex14.internal.baidu.com (172.31.51.54) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the prefix '__maybe_unused' to imx8qxp_adc_runtime_suspend/resume() to avoid the compiler complain without setting CONFIG_SUSPEND, CONFIG_HIBERNATION and CONFIG_PM. Signed-off-by: Cai Huoqing --- 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..011bef4b5dda 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 int __maybe_unused 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 int __maybe_unused 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.25.1