Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp54336pja; Fri, 22 Nov 2019 03:22:05 -0800 (PST) X-Google-Smtp-Source: APXvYqwsQdNesbe2+0SK82h1Dgba36cw0Pd/RdRqeGEvpFZ7ALqF1GmDgq0e+SL1PQ6SOpEPEgVO X-Received: by 2002:a17:906:70e:: with SMTP id y14mr21418894ejb.70.1574421725693; Fri, 22 Nov 2019 03:22:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574421725; cv=none; d=google.com; s=arc-20160816; b=r2q2G9KCLOvFEWIRnMJNxgUkV8lB0o5T0lSKDV8hb3hFvprljtSK1l2vy+CGIhFpgY XeXNQe8mLKdtzbSLkayrtJhtAbSX1gYeybSSLm8kBxiYWdKMOo7ZPOKWn08mNTeADibz ID3XEPVyo0sBrHgt0WMfcRNKEx9yPdgCPzOE+5msVXnAdmbo4IbNYbKPzK4WP4zV5SS2 RaP9zHHRoZTk4t3kN9lg/DODLoLjeaOHBnit+NRT5J08uuSHe1SLFR3suuylYFzZWz0j mc9Ho6KMBi0Ip4t/EP30xTp5V+bOKr7YBgSIVrX+lY7BsMyuF8tSxK+24IF+ft6AvusU kJdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=jqgc09BOu5UZcqEbMa9JoGMVXDOGsytTllB/D4sUE7s=; b=V8DJCYFu4l34jQmUf0YRsx+L242F4CLGW1CR+6Rucf6VFKoaTzUpZCDDHwZXCPJ0CB 9EC12O9oFQdOhPcD1NiVaMBoCgm7m8rvF1L95j/8SyxMhMRMM7vzOK5P08jkEcbOTAZX jp+YRTty8HUwz/fh8CkVVmGZVpJfH0BVKA9OLk1qofNLyPYv5EJZVnvK2Zm9bpIOLu80 WdcDvonwJvylM/S3mco0yr02NCNFNHbDCsuewBLKIbYXlPMBdO0LMflBEElU5bjM6Udy H/5BXASLyjhRk+P+ymfSJ2hyeEGBlDbmExVj3WGg1CKczLIr5dYd9qiigTEl9yi4mn1i hBNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PPUVEx07; 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 pj27si3566076ejb.241.2019.11.22.03.21.42; Fri, 22 Nov 2019 03:22:05 -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; dkim=pass header.i=@kernel.org header.s=default header.b=PPUVEx07; 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 S1728863AbfKVKrv (ORCPT + 99 others); Fri, 22 Nov 2019 05:47:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:55970 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729810AbfKVKrs (ORCPT ); Fri, 22 Nov 2019 05:47:48 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8E61F20715; Fri, 22 Nov 2019 10:47:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574419668; bh=5W2ErCyc47JdlxUbc9VA8AEfZ4i7AtaSVHCx4GuH8Jc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PPUVEx07Et3S4fAVT6zFsUieHksH2iheun2zZPOjSkHRzu9FAGyoGdkU8lAKXGXxh g+4dG+42Z7S8Qai4V/D+DdY1fJsIdNyQQZReTMd2Gg0D2oVCV0LoCXqqLWTHLsLin+ KH+FUAE3JYxjufIszogch6/V3vQwrmf1Wy7YkNHo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Rami Rosen , Vinod Koul , Sasha Levin Subject: [PATCH 4.9 191/222] dmaengine: ioat: fix prototype of ioat_enumerate_channels Date: Fri, 22 Nov 2019 11:28:51 +0100 Message-Id: <20191122100916.080432176@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191122100830.874290814@linuxfoundation.org> References: <20191122100830.874290814@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rami Rosen [ Upstream commit f4d34aa8c887a8a2d23ef546da0efa10e3f77241 ] Signed-off-by: Rami Rosen Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/dma/ioat/init.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/dma/ioat/init.c b/drivers/dma/ioat/init.c index d139706f01fe8..9d936584d3310 100644 --- a/drivers/dma/ioat/init.c +++ b/drivers/dma/ioat/init.c @@ -129,7 +129,7 @@ static void ioat_init_channel(struct ioatdma_device *ioat_dma, struct ioatdma_chan *ioat_chan, int idx); static void ioat_intr_quirk(struct ioatdma_device *ioat_dma); -static int ioat_enumerate_channels(struct ioatdma_device *ioat_dma); +static void ioat_enumerate_channels(struct ioatdma_device *ioat_dma); static int ioat3_dma_self_test(struct ioatdma_device *ioat_dma); static int ioat_dca_enabled = 1; @@ -573,7 +573,7 @@ static void ioat_dma_remove(struct ioatdma_device *ioat_dma) * ioat_enumerate_channels - find and initialize the device's channels * @ioat_dma: the ioat dma device to be enumerated */ -static int ioat_enumerate_channels(struct ioatdma_device *ioat_dma) +static void ioat_enumerate_channels(struct ioatdma_device *ioat_dma) { struct ioatdma_chan *ioat_chan; struct device *dev = &ioat_dma->pdev->dev; @@ -592,7 +592,7 @@ static int ioat_enumerate_channels(struct ioatdma_device *ioat_dma) xfercap_log = readb(ioat_dma->reg_base + IOAT_XFERCAP_OFFSET); xfercap_log &= 0x1f; /* bits [4:0] valid */ if (xfercap_log == 0) - return 0; + return; dev_dbg(dev, "%s: xfercap = %d\n", __func__, 1 << xfercap_log); for (i = 0; i < dma->chancnt; i++) { @@ -609,7 +609,6 @@ static int ioat_enumerate_channels(struct ioatdma_device *ioat_dma) } } dma->chancnt = i; - return i; } /** -- 2.20.1