From patchwork Sat Jun 11 00:31:08 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hartley Sweeten X-Patchwork-Id: 871092 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p5B0VmWv004052 for ; Sat, 11 Jun 2011 00:31:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758432Ab1FKAbk (ORCPT ); Fri, 10 Jun 2011 20:31:40 -0400 Received: from mail160.messagelabs.com ([216.82.253.99]:34513 "EHLO mail160.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758396Ab1FKAbk (ORCPT ); Fri, 10 Jun 2011 20:31:40 -0400 X-VirusChecked: Checked X-Env-Sender: hartleys@visionengravers.com X-Msg-Ref: server-8.tower-160.messagelabs.com!1307752277!25404254!2 X-StarScan-Version: 6.2.17; banners=-,-,- X-Originating-IP: [216.166.12.97] Received: (qmail 22925 invoked from network); 11 Jun 2011 00:31:38 -0000 Received: from out001.collaborationhost.net (HELO out001.collaborationhost.net) (216.166.12.97) by server-8.tower-160.messagelabs.com with RC4-SHA encrypted SMTP; 11 Jun 2011 00:31:38 -0000 Received: from etch.local (10.2.3.210) by smtp.collaborationhost.net (10.2.0.21) with Microsoft SMTP Server (TLS) id 8.2.176.0; Fri, 10 Jun 2011 19:31:21 -0500 From: H Hartley Sweeten To: Linux Kernel Subject: [PATCH] fb.h: ARM uses __raw_{read/write} Date: Fri, 10 Jun 2011 17:31:08 -0700 User-Agent: KMail/1.9.9 CC: ARM Kernel , , , Russell King MIME-Version: 1.0 Content-Disposition: inline Message-ID: <201106101731.08578.hartleys@visionengravers.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sat, 11 Jun 2011 00:31:49 +0000 (UTC) ARM provides __raw_{read/write}* functions for memory access. These should be used instead of the default '(*(volatile' stuff to make sure the memory accesses are typesafe (void __iomem *). This also fixes a number of sparse warning like: warning: cast removes address space of expression Signed-off-by: H Hartley Sweeten Cc: Paul Mundt Cc: Russell King --- -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/linux/fb.h b/include/linux/fb.h index 6a82748..a040e92e 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h @@ -937,7 +937,7 @@ static inline struct apertures_struct *alloc_apertures(unsigned int max_num) { #define fb_memcpy_fromfb sbus_memcpy_fromio #define fb_memcpy_tofb sbus_memcpy_toio -#elif defined(__i386__) || defined(__alpha__) || defined(__x86_64__) || defined(__hppa__) || defined(__sh__) || defined(__powerpc__) || defined(__avr32__) || defined(__bfin__) +#elif defined(__i386__) || defined(__alpha__) || defined(__x86_64__) || defined(__hppa__) || defined(__sh__) || defined(__powerpc__) || defined(__avr32__) || defined(__bfin__) || defined(__arm__) #define fb_readb __raw_readb #define fb_readw __raw_readw