From patchwork Mon Oct 25 07:40:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12580895 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 9CADBC433EF for ; Mon, 25 Oct 2021 07:41:41 +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 47A1C60FD7 for ; Mon, 25 Oct 2021 07:41:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 47A1C60FD7 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com 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=pkMT83GXJbSoHQmxcdaXxu93itrOBo910Ti5CLGxlx4=; b=V1VmQ0xTOiwVnB r73pdKaXDd6bK5EqZIBA3aGJ9tihO7cJCcH6fz9F2GFQvbYJf8r0KU/UcjwleWQaMbw3GLJdFRN6v qExLC7sQwAurNaSDuL3LRcxT9A7VRxho50vdVNVO0bJhUGF2r4UKP5lDYddiKUoaenqKmLiBKppXi ceEQGrYQymrJszrKwMh/sZX5CyvlqPSE2jD+5+bpZGhR/2twcddpsz3x/tzw6cuPRXRU9SxzeF4mC qdAs/1IH9irkR0HSNajMtHR+yHCetg4SoMdMg6/NQvo1IUVHxsidPEoM5caFaI65QQZP9M5oskwHL mEqZmw0SyLurbUPtoYGQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1meuaj-00FewM-JK; Mon, 25 Oct 2021 07:40:21 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1meuad-00Fetj-MC for linux-arm-kernel@lists.infradead.org; Mon, 25 Oct 2021 07:40:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1635147615; x=1666683615; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=NSqowQVDiJxwRL5modbxvpdelUWTtieJAuCRc83AKN0=; b=sdXH/2bZkd9TF97qa5LojDOldI0E4hzchRtxXagpERhbwLCvXlaSHe3g M1sDIFI77xFd14Ga2lXCTNiawaZ6r0gnT1GuTXOBSI3QQRBcQL9wzLk1t yU9/kl1MUYSuYwMiUNQ1SYnSu/qqN4iQ+c2KKCPqce1X+ohij6x8VjfC3 wnStaI7ZE7HrOIZuTrtok6vIjIhDAD0GSqKP9rLZtrz++Dkf3uA3Lgavv CSHKVp2B2tDrsN4xyAaa0PDvOdTk5XaKUDMsYD2iOmp8buwk6565JVf/I FtQxKikPSVItvJf/zrJ74lkJuk7NFsq2cm9PjtpaOQE2s2LtHhjfWdXy0 w==; IronPort-SDR: ggKVEtS4xyXw+nVxEw7loM1xOMfa9edDv6YCUl5Wj5hiEHKHiNSVOP419/DJHc+PNl5gjDyWat RJREPzbjMTDvmlMbkY7TT4UiwFSfyg4kKJ4mq934dANgsAva5sXwu4jXaUUjX8/uJxlvC2MWdg Y4rzXeeIH/7+wlHLezpXtgy6Y2NPOvoQQk02a+F9txSwqaa+u7gwWPJ77YEsqa1MHXBRANm8WW cAiYsG+harWyBZPQIMOeOUgWBsqke2mRv9QD2DhfU69Afut9icil4qrXCgejTeeODQXJfL/3jX 6mQD5v94V0Fi2B137DyHSygo X-IronPort-AV: E=Sophos;i="5.87,179,1631602800"; d="scan'208";a="74141363" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 25 Oct 2021 00:40:13 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Mon, 25 Oct 2021 00:40:12 -0700 Received: from rob-dk-mpu01.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Mon, 25 Oct 2021 00:40:10 -0700 From: Claudiu Beznea To: , , CC: , , , , "kernel test robot" Subject: [PATCH] dmaengine: at_xdmac: fix compilation warning Date: Mon, 25 Oct 2021 10:40:02 +0300 Message-ID: <20211025074002.722504-1-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211025_004015_819411_E4F04319 X-CRM114-Status: GOOD ( 10.02 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fixed "unused variable 'atmel_xdmac_dev_pm_ops'" compilation warning when CONFIG_PM is not defined. Fixes: 8e0c7e486014 ("dmaengine: at_xdmac: use pm_ptr()") Reported-by: kernel test robot Signed-off-by: Claudiu Beznea Reviewed-by: Tudor Ambarus Acked-by: Nicolas Ferre --- drivers/dma/at_xdmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.c index 7fb19bd18ac3..f5d053df66a5 100644 --- a/drivers/dma/at_xdmac.c +++ b/drivers/dma/at_xdmac.c @@ -2207,7 +2207,7 @@ static int at_xdmac_remove(struct platform_device *pdev) return 0; } -static const struct dev_pm_ops atmel_xdmac_dev_pm_ops = { +static const struct dev_pm_ops __maybe_unused atmel_xdmac_dev_pm_ops = { .prepare = atmel_xdmac_prepare, SET_LATE_SYSTEM_SLEEP_PM_OPS(atmel_xdmac_suspend, atmel_xdmac_resume) };