Received: by 10.223.185.116 with SMTP id b49csp1093589wrg; Fri, 23 Feb 2018 11:49:28 -0800 (PST) X-Google-Smtp-Source: AH8x227R1HM80kLiOSb9BdzUARPUA8lG/M/2I3tZdRbMi74sSn5hqrb/rf8s84CjwtzW9J3Ma2UA X-Received: by 2002:a17:902:9009:: with SMTP id a9-v6mr2656099plp.272.1519415368796; Fri, 23 Feb 2018 11:49:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519415368; cv=none; d=google.com; s=arc-20160816; b=nDawkUX2T4qCNkfrlrPu2fkH8Hyt+xWjnmTXhAK8RXPEHfqh1qeZC+8/QX1c5ZB6bT lHxjx6aEv0ctxxBTvJqxfgdUtDYDNfY5guo1YPyaYe66dIXmC2Lr7xH/t8s34UmylDqk HSI2jC74/c3rgDo+GJCvfzNOV5uzN84nXZyPKnfHnoIPu+6c3DTGS1P7BWO9qkPUZVSe nfQc+hDmn7nOzCGtxPDEhYY79o9rnnaXo7pyB/WPyq93FFmcR93ZRUap06TLhtboHX0Z xA0Qaci0qlcZif60c1gz0VzroWH7iKh1DrFzGoTut2rT+skSzCAPxadZkSx33lNc5y8r 6gcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=BYVuqorQojWdpL1t6rgJ8V0ZLP9gGx4Uq9xCbJtF92w=; b=U9kLK5y/3n/KGUylSVSCLP7Pua5jh1BzC1b7zFAHJWrjLN+qvaQcuENMchM6e7Vg07 f2L7FKyJPh1NS0cxvclzWWanSP8Lkw+n56JhrCbZd4jEvjxBApAmciimZUtuAiI/p/n2 xVf5i0GBDmp61CrewlB4ti4SW711jHAooRW9a52jRSdPlBmw+g01jUAVriAMbQMSDM1G xbDsKj0ErjbhX3cAcSPJnveq4yswK/QMyjUL7dY/Dt7YGhgexnPT1nC1QX8vN4VWmWEr OLXGVhLxuaLDD0+3Qwo6epndWkUBhgPZESFEU644VcRhNE/lwDkP3hmo2oCtQUqqSb9G fsAw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c143si2287184pfb.76.2018.02.23.11.49.14; Fri, 23 Feb 2018 11:49:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933881AbeBWSrZ (ORCPT + 99 others); Fri, 23 Feb 2018 13:47:25 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:44534 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933698AbeBWSrX (ORCPT ); Fri, 23 Feb 2018 13:47:23 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 42BD6FC6; Fri, 23 Feb 2018 18:47:22 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jun Nie , Shawn Guo , Vinod Koul Subject: [PATCH 4.9 112/145] dmaengine: zx: fix build warning Date: Fri, 23 Feb 2018 19:26:58 +0100 Message-Id: <20180223170739.313405193@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170724.669759283@linuxfoundation.org> References: <20180223170724.669759283@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jun Nie commit 067fdeb2f391bfa071f741a2b3eb74b8ff3785cd upstream. Fix build warning that related to PAGE_SIZE. The maximum DMA length has nothing to do with PAGE_SIZE, just use a fix number for the definition. drivers/dma/zx_dma.c: In function 'zx_dma_prep_memcpy': drivers/dma/zx_dma.c:523:8: warning: division by zero [-Wdiv-by-zero] drivers/dma/zx_dma.c: In function 'zx_dma_prep_slave_sg': drivers/dma/zx_dma.c:567:11: warning: division by zero [-Wdiv-by-zero] Signed-off-by: Jun Nie Tested-by: Shawn Guo Signed-off-by: Vinod Koul Signed-off-by: Greg Kroah-Hartman --- drivers/dma/zx296702_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/dma/zx296702_dma.c +++ b/drivers/dma/zx296702_dma.c @@ -26,7 +26,7 @@ #define DRIVER_NAME "zx-dma" #define DMA_ALIGN 4 -#define DMA_MAX_SIZE (0x10000 - PAGE_SIZE) +#define DMA_MAX_SIZE (0x10000 - 512) #define LLI_BLOCK_SIZE (4 * PAGE_SIZE) #define REG_ZX_SRC_ADDR 0x00