Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756471AbcK3V1w (ORCPT ); Wed, 30 Nov 2016 16:27:52 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:41293 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754355AbcK3V1u (ORCPT ); Wed, 30 Nov 2016 16:27:50 -0500 From: Gregory CLEMENT To: David Miller Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, jszhang@marvell.com, arnd@arndb.de, jason@lakedaemon.net, andrew@lunn.ch, sebastian.hesselbarth@gmail.com, thomas.petazzoni@free-electrons.com, linux-arm-kernel@lists.infradead.org, nadavh@marvell.com, mw@semihalf.com, dima@marvell.com, yelena@marvell.com Subject: Re: [PATCH v4 net-next 3/7] net: mvneta: Use cacheable memory to store the rx buffer virtual address References: <20161130.135725.407314756675613303.davem@davemloft.net> Date: Wed, 30 Nov 2016 22:27:47 +0100 In-Reply-To: <20161130.135725.407314756675613303.davem@davemloft.net> (David Miller's message of "Wed, 30 Nov 2016 13:57:25 -0500 (EST)") Message-ID: <87k2bklkto.fsf@free-electrons.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 668 Lines: 30 Hi David, On mer., nov. 30 2016, David Miller wrote: > From: Gregory CLEMENT > Date: Tue, 29 Nov 2016 15:55:21 +0100 > >> + /* Virtual address of the RX buffer */ >> + void **buf_virt_addr; >> + >> /* Virtual address of the RX DMA descriptors array */ >> struct mvneta_rx_desc *descs; >> > ... >> + data = (unsigned char *)rxq->buf_virt_addr[index]; > > This cast is unnecessary, please remove it. OK I am doing it now. Thanks, Gregory -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com