Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755987AbYHXPb5 (ORCPT ); Sun, 24 Aug 2008 11:31:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751328AbYHXPbt (ORCPT ); Sun, 24 Aug 2008 11:31:49 -0400 Received: from ug-out-1314.google.com ([66.249.92.175]:44031 "EHLO ug-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751010AbYHXPbt (ORCPT ); Sun, 24 Aug 2008 11:31:49 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :sender; b=FJM0JDvW4dVwQkGE6DAUB3SByDD0IC6gbDC+3nZ/vRge6jOyWMO2ljxhkR7nG4wwJJ s1rEmJ1ektrNsHDxWnlow23lxuO1mslZYcdZD/ARcaCrvfsKnd2ZfCYYm7G0CQC+AxNw wixMcYEt49YHKWbnTomvq/l4adcYigMVtIYrQ= Message-ID: <48B17EE0.2090608@panasas.com> Date: Sun, 24 Aug 2008 18:31:44 +0300 From: Benny Halevy User-Agent: Thunderbird 3.0a1 (X11/2008050714) MIME-Version: 1.0 To: Larry Finger CC: LKML , Dominik Brodowski Subject: Re: Help with compiler warning References: <48AE1802.5090301@lwfinger.net> <48B17E56.3060106@panasas.com> In-Reply-To: <48B17E56.3060106@panasas.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1321 Lines: 40 On Aug. 24, 2008, 18:29 +0300, Benny Halevy wrote: > On Aug. 22, 2008, 4:36 +0300, Larry Finger wrote: >> In drivers/pcmcia/cardbus.c, the following statement >> >> memcpy_fromio(ptr, s->cb_cis_virt + addr, len); >> >> generates the warning >> >> CC [M] drivers/pcmcia/cardbus.o >> include/asm/io_32.h: In function ‘memcpy_fromio’: >> include/asm/io_32.h:151: warning: passing argument 2 of ‘__memcpy’ >> discards qualifiers from pointer target type >> >> s->cb_cis_virt is "void __iomem" and addr is uint. >> >> What cast does argument 2 need to silence the warning? > > memcpy_fromio takes a (const volatile void __iomem *) for the > src address. So the culprit could be the volatile qualifier... > > Benny > >> Thanks, >> >> Larry >> -- >> 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/ > -- 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/