All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cyrill Gorcunov <gorcunov@gmail.com>
To: linux-kernel@vger.kernel.org, davem@davemloft.net,
	bryan.wu@analog.com, hskinnemoen@atmel.co, dhowells@redhat.com
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Subject: [patch 4/4] SPARC: cleanup - use _AC macro to define PAGE_SIZE
Date: Sun, 03 Feb 2008 14:22:21 +0300	[thread overview]
Message-ID: <47a5a661.04eb300a.0405.ffff99ee@mx.google.com> (raw)
In-Reply-To: 20080203112217.126814108@gmail.com

[-- Attachment #1: asm-sparc.diff --]
[-- Type: text/plain, Size: 880 bytes --]

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---

 page.h |   11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

Index: linux-2.6.git/include/asm-sparc/page.h
===================================================================
--- linux-2.6.git.orig/include/asm-sparc/page.h	2008-01-21 19:35:29.000000000 +0300
+++ linux-2.6.git/include/asm-sparc/page.h	2008-02-03 14:02:48.000000000 +0300
@@ -10,18 +10,15 @@
 
 #ifdef __KERNEL__
 
+#include <linux/const.h>
+
 #ifdef CONFIG_SUN4
 #define PAGE_SHIFT   13
 #else
 #define PAGE_SHIFT   12
 #endif
-#ifndef __ASSEMBLY__
-/* I have my suspicions... -DaveM */
-#define PAGE_SIZE    (1UL << PAGE_SHIFT)
-#else
-#define PAGE_SIZE    (1 << PAGE_SHIFT)
-#endif
-#define PAGE_MASK    (~(PAGE_SIZE-1))
+#define PAGE_SIZE	(_AC(1, UL) << PAGE_SHIFT)
+#define PAGE_MASK	(~(PAGE_SIZE-1))
 
 #include <asm/btfixup.h>
 

-- 

      parent reply	other threads:[~2008-02-03 11:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20080203112217.126814108@gmail.com>
2008-02-03 11:22 ` [patch 1/4] AVR32: cleanup - use _AC macro to define PAGE_SIZE Cyrill Gorcunov
2008-02-03 13:25   ` Haavard Skinnemoen
2008-02-03 14:04     ` Cyrill Gorcunov
2008-02-03 11:22 ` [patch 2/4] BLACKFIN: " Cyrill Gorcunov
2008-02-03 11:22 ` [patch 3/4] FRV: " Cyrill Gorcunov
2008-02-03 11:22 ` Cyrill Gorcunov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47a5a661.04eb300a.0405.ffff99ee@mx.google.com \
    --to=gorcunov@gmail.com \
    --cc=bryan.wu@analog.com \
    --cc=davem@davemloft.net \
    --cc=dhowells@redhat.com \
    --cc=hskinnemoen@atmel.co \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.