Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932902AbcKVPRB (ORCPT ); Tue, 22 Nov 2016 10:17:01 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:53222 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932592AbcKVPQ7 (ORCPT ); Tue, 22 Nov 2016 10:16:59 -0500 Date: Tue, 22 Nov 2016 10:09:15 -0500 (EST) Message-Id: <20161122.100915.1530014321160359051.davem@davemloft.net> To: arnd@arndb.de Cc: gregory.clement@free-electrons.com, f.fainelli@gmail.com, mw@semihalf.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] marvell: mark mvneta and mvpp2 32-bit only From: David Miller In-Reply-To: <20161122142136.1690096-1-arnd@arndb.de> References: <20161122142136.1690096-1-arnd@arndb.de> X-Mailer: Mew version 6.7 on Emacs 25.1 / 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]); Tue, 22 Nov 2016 06:09:50 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1194 Lines: 25 From: Arnd Bergmann Date: Tue, 22 Nov 2016 15:21:22 +0100 > Both of these drivers won't work on 64-bit architectures unless they > are redesigned, since they store a virtual address pointer in a 32-bit > field of the descriptors: > > drivers/net/ethernet/marvell/mvneta_bm.c: In function 'mvneta_bm_construct': > drivers/net/ethernet/marvell/mvneta_bm.c:103:16: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] > drivers/net/ethernet/marvell/mvpp2.c: In function 'mvpp2_prs_vlan_init': > drivers/net/ethernet/marvell/mvpp2.c:2563:32: error: large integer implicitly truncated to unsigned type [-Werror=overflow] > > This limits the COMPILE_TEST option for the two drivers again to > only build them on 32-bit. This seems nicer than shutting up the > warnings, in case we ever actually want to use them on 64-bit, > as the warnings indicate which parts of the driver are currently > broken there. > > Fixes: a0627f776a45 ("net: marvell: Allow drivers to be built with COMPILE_TEST") > Signed-off-by: Arnd Bergmann Ok, this is a reasonable thing to do for now until the 64-bit patches are sorted out. Applied, thanks Arnd.