[PATCH] unify PFN_* macros
authorDave Hansen <haveblue@us.ibm.com>
Mon, 27 Mar 2006 09:16:04 +0000 (01:16 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 27 Mar 2006 16:44:48 +0000 (08:44 -0800)
commit22a9835c350782a5c3257343713932af3ac92ee0
tree9688e99426e8aa85a468cc724ffee32c6a8abcad
parent95144c788dc01b6a0ff2c9c2222e37ffdab358b8
[PATCH] unify PFN_* macros

Just about every architecture defines some macros to do operations on pfns.
 They're all virtually identical.  This patch consolidates all of them.

One minor glitch is that at least i386 uses them in a very skeletal header
file.  To keep away from #include dependency hell, I stuck the new
definitions in a new, isolated header.

Of all of the implementations, sh64 is the only one that varied by a bit.
It used some masks to ensure that any sign-extension got ripped away before
the arithmetic is done.  This has been posted to that sh64 maintainers and
the development list.

Compiles on x86, x86_64, ia64 and ppc64.

Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
23 files changed:
arch/alpha/kernel/setup.c
arch/alpha/mm/numa.c
arch/arm26/mm/init.c
arch/cris/kernel/setup.c
arch/i386/kernel/setup.c
arch/i386/mm/discontig.c
arch/m32r/kernel/setup.c
arch/m32r/mm/discontig.c
arch/m32r/mm/init.c
arch/mips/ite-boards/ivr/init.c
arch/mips/ite-boards/qed-4n-s01b/init.c
arch/mips/kernel/setup.c
arch/mips/mips-boards/generic/memory.c
arch/mips/mips-boards/sim/sim_mem.c
arch/mips/mm/init.c
arch/mips/sgi-ip27/ip27-memory.c
arch/sh/kernel/setup.c
arch/sh64/kernel/setup.c
arch/um/kernel/physmem.c
include/asm-i386/setup.h
include/asm-m32r/setup.h
include/asm-sh64/platform.h
include/linux/pfn.h [new file with mode: 0644]