Received: by 10.223.185.116 with SMTP id b49csp1033427wrg; Fri, 23 Feb 2018 10:41:47 -0800 (PST) X-Google-Smtp-Source: AH8x226aP7tzp4MlS+kXtRl2Z/UfhZKmzS3LH3hIujGbADQTOlUa2sw1rfTCktmjGmfcPLQ2086O X-Received: by 10.101.101.138 with SMTP id u10mr2077068pgv.299.1519411307749; Fri, 23 Feb 2018 10:41:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519411307; cv=none; d=google.com; s=arc-20160816; b=q4yylUDsKq3kATBwp7Q0+4C6joevSWAJ6WP0Wf3wGcqsh7nHjBYs7fs2t8oXFrHa4s XuJQ90+0oWmU8IwaPa2Lz8djbnMD1COsMYt05DofQCVG8NOCcsSfVJd8FeXVwYjs4wOx e5K84ME2IeISZrWrEsHx9fIfCw2y+RBGjDBMvibjaPmoiIMlT/rTvwsEzdzXAnS2cyLW 2gBqB+p9a+5cIJpIaCXq50OsjGyRa089fGXzb0ycEfG42yqkxhXYLKBuLU75H3DREN7K 1w08y8TgkpqgeTh9hnQ5kN2AGgTTiI1iNx4ELk34+CxxvRV/eKphpeCHJ6ZnJI21XV5d SOjw== 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=cvxvedj7WFIfSEySznpzeZuDN1lts0NAkg7wkqziX/E=; b=bfrMLb5t/irx6+jAgfZzQe1xPNEZLSw/8TLzCkXz91DUbnmkS+I6YJscesUrFalVsq MJwsxeNr/rxlNBYRKserAajY/R9TYXxp4ergc6XzKz2us0UggLonP6bX0KsYeObWmDcR U6PFcLdClXSyVenkcCzzFt4d+FF96N02KOTkSZN1Q6irlLRdhs2GapTBzi1SVNkFd4K7 V+TyCvOo5NOa3oeJyQzZgcM2JUKi50Oq6V+QybNyebf8v/J19UmJYDz1YlA+jmWDiQFh C6s6LAefxB5ZiriIg+ixz7E4Mnfp0g7ADzqJxJAM84jXZ8QfQkbyFHNYmyGzqLIhKQ8d +GZA== 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 b10-v6si2129678plz.484.2018.02.23.10.41.33; Fri, 23 Feb 2018 10:41:47 -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 S932515AbeBWSji (ORCPT + 99 others); Fri, 23 Feb 2018 13:39:38 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:39738 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754370AbeBWSjd (ORCPT ); Fri, 23 Feb 2018 13:39:33 -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 46A0C11BB; Fri, 23 Feb 2018 18:39:32 +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.4 145/193] dmaengine: zx: fix build warning Date: Fri, 23 Feb 2018 19:26:18 +0100 Message-Id: <20180223170348.613101917@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170325.997716448@linuxfoundation.org> References: <20180223170325.997716448@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.4-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