Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755653AbbBPOQt (ORCPT ); Mon, 16 Feb 2015 09:16:49 -0500 Received: from ni.piap.pl ([195.187.100.4]:36095 "EHLO ni.piap.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755493AbbBPOQs (ORCPT ); Mon, 16 Feb 2015 09:16:48 -0500 From: khalasa@piap.pl (Krzysztof =?utf-8?Q?Ha=C5=82asa?=) To: Arnd Bergmann Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, arm@kernel.org, Imre Kaloz References: <1423770163-583064-1-git-send-email-arnd@arndb.de> <1423770163-583064-9-git-send-email-arnd@arndb.de> Date: Mon, 16 Feb 2015 15:16:46 +0100 In-Reply-To: <1423770163-583064-9-git-send-email-arnd@arndb.de> (Arnd Bergmann's message of "Thu, 12 Feb 2015 20:42:40 +0100") MIME-Version: 1.0 Message-ID: Content-Type: text/plain Subject: Re: [PATCH 08/11] ARM: ixp4xx: fix {in,out}s{bwl} data types X-Anti-Virus: Kaspersky Anti-Virus for Linux Mail Server 5.6.44/RELEASE, bases: 20140401 #7726142, check: 20150216 clean Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1379 Lines: 30 Arnd Bergmann writes: > Most platforms use void pointer arguments in these functions, but > ixp4xx does not, which triggers lots of warnings in device drivers like: > > net/ethernet/8390/ne2k-pci.c: In function 'ne2k_pci_get_8390_hdr': > net/ethernet/8390/ne2k-pci.c:503:3: warning: passing argument 2 of 'insw' from incompatible pointer type > insw(NE_BASE + NE_DATAPORT, hdr, sizeof(struct e8390_pkt_hdr)>>1); > ^ > In file included from include/asm/io.h:214:0, > from /git/arm-soc/include/linux/io.h:22, > from /git/arm-soc/include/linux/pci.h:31, > from net/ethernet/8390/ne2k-pci.c:48: > mach-ixp4xx/include/mach/io.h:316:91: note: expected 'u16 *' but argument is of type 'struct e8390_pkt_hdr *' > static inline void insw(u32 io_addr, u16 *vaddr, u32 count) > > Fixing the drivers seems hopeless, so this changes the ixp4xx code > to do the same as the others to avoid the warnings. Acked-by: Krzysztof Halasa -- Krzysztof Halasa Research Institute for Automation and Measurements PIAP Al. Jerozolimskie 202, 02-486 Warsaw, Poland -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/