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: 871412 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p5BBcZEp014915 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 11 Jun 2011 11:38:57 GMT Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QVMWJ-0007cM-Cx; Sat, 11 Jun 2011 11:38:27 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QVMWI-00044r-VP; Sat, 11 Jun 2011 11:38:26 +0000 Received: from mail160.messagelabs.com ([216.82.253.99]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QVMWE-00044Z-Eh for linux-arm-kernel@lists.infradead.org; Sat, 11 Jun 2011 11:38:24 +0000 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 MIME-Version: 1.0 Content-Disposition: inline Message-ID: <201106101731.08578.hartleys@visionengravers.com> X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110611_073822_709632_E3AF15CD X-CRM114-Status: GOOD ( 11.52 ) X-Spam-Score: 0.2 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [216.82.253.99 listed in list.dnswl.org] 2.5 SUSPICIOUS_RECIPS Similar addresses in recipient list Cc: linux-fbdev@vger.kernel.org, lethal@linux-sh.org, Russell King , ARM Kernel X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Sat, 11 Jun 2011 11:38:57 +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 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