Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933579AbcK3S5i (ORCPT ); Wed, 30 Nov 2016 13:57:38 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:39454 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933106AbcK3S52 (ORCPT ); Wed, 30 Nov 2016 13:57:28 -0500 Date: Wed, 30 Nov 2016 13:57:25 -0500 (EST) Message-Id: <20161130.135725.407314756675613303.davem@davemloft.net> To: gregory.clement@free-electrons.com 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 From: David Miller In-Reply-To: References: X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 30 Nov 2016 09:58:03 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 374 Lines: 13 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.