Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp954974pxb; Mon, 25 Oct 2021 23:25:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymJFXbgnrgZZMgRUB5ob8RkQueJjvhdBfadkfQcRBpopJSzxyWKvHn+RRdQRxkHo8YOWdc X-Received: by 2002:a17:907:2d0e:: with SMTP id gs14mr10733446ejc.14.1635229509040; Mon, 25 Oct 2021 23:25:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635229509; cv=none; d=google.com; s=arc-20160816; b=xZTr2LpvZ1urBdj0RA3mD+71yQSYY0KQ+6CsBB/KQq8i0JIJGA8tjou1ugxQOxEare 3MiNaC7dK2X7ZhaQh+WxXJghj3eX8e/WGHr5v1v3ulY1+rwIrpUVHjPo1dwOletZp7D1 r/jG9crVD5GRgUn/ULOT+W6laNnVZyRZdaNLK0ivw3HFrcFQ6ZDwQZjYCpaVQiugEavI mSDqCLFmUZrA849x0x8uvQMBYbRpSbjkaH76iJhvA0SIy0wZKSqqhnpbDxWGy/JnqoZs aBrh8xTyFW+CKBxFOMUEQWNTwogPrkWkISX2G2GS7Ne5Gg3P0bJJUFIOMlAT6xHdJw3c J8wQ== 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=IrtZ0UsV5LXIR4bseuv4guK+LuHZDoJ3B1Pba2BbNgo=; b=JLwlP8RGxPylRjQ1QtbugwtH7m2CWqDJGE+Aq0RcHvZ6+PO4p1GnlVTLg47d06fKI9 wIX2fjWJTZEL3NZvo2dtLx+DpsPHdxuGku/kYy3xxaCAssbE6tpXjVM6+xBfvZg7T7JR 5WBXmf8wqdG1OJjsX0ejNBWnvSPdUTAvtXdXe6ib+8EwWCAaQmFo4kaKfipQ6ZmSKQsr sJvfoHNHOrAmYlPrkeTxJJQScBJTOMpD7ezLhkUF3oqd2r4lyaYWf9/c4CmiySZ7cPQd 72pzWCTSGRL0+Ov389JwPMgX3zWnDZbUDfNnCpYS5aMEnU9Es88SoQIJB+TAxwSTbUIr ipYg== 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 hb36si36546446ejc.315.2021.10.25.23.24.45; Mon, 25 Oct 2021 23:25:09 -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 S232481AbhJZCHl (ORCPT + 99 others); Mon, 25 Oct 2021 22:07:41 -0400 Received: from mx24.baidu.com ([111.206.215.185]:56146 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230216AbhJZCHk (ORCPT ); Mon, 25 Oct 2021 22:07:40 -0400 Received: from BC-Mail-Ex26.internal.baidu.com (unknown [172.31.51.20]) by Forcepoint Email with ESMTPS id 1D7A79FF81B90FB8BF1C; Tue, 26 Oct 2021 10:05:15 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex26.internal.baidu.com (172.31.51.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Tue, 26 Oct 2021 10:05:14 +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; Tue, 26 Oct 2021 10:05:14 +0800 From: Cai Huoqing To: CC: Vinod Koul , , Subject: [PATCH] dmaengine: sa11x0: Mark PM functions as __maybe_unused Date: Tue, 26 Oct 2021 10:05:07 +0800 Message-ID: <20211026020508.550-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-EX08.internal.baidu.com (172.31.51.48) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Without CONFIG_PM_SLEEP, the runtime suspend/resume functions are unused, producing a warning: ../drivers/dma/sa11x0-dma.c:1042:12: error: 'sa11x0_dma_resume' defined but not used ../drivers/dma/sa11x0-dma.c:1004:12: error: 'sa11x0_dma_suspend' defined but not used Signed-off-by: Cai Huoqing --- drivers/dma/sa11x0-dma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/sa11x0-dma.c b/drivers/dma/sa11x0-dma.c index 38f318b2f80d..a29c13cae716 100644 --- a/drivers/dma/sa11x0-dma.c +++ b/drivers/dma/sa11x0-dma.c @@ -1001,7 +1001,7 @@ static int sa11x0_dma_remove(struct platform_device *pdev) return 0; } -static int sa11x0_dma_suspend(struct device *dev) +static __maybe_unused int sa11x0_dma_suspend(struct device *dev) { struct sa11x0_dma_dev *d = dev_get_drvdata(dev); unsigned pch; @@ -1039,7 +1039,7 @@ static int sa11x0_dma_suspend(struct device *dev) return 0; } -static int sa11x0_dma_resume(struct device *dev) +static __maybe_unused int sa11x0_dma_resume(struct device *dev) { struct sa11x0_dma_dev *d = dev_get_drvdata(dev); unsigned pch; -- 2.25.1