]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] remove linux/pagemap.h from linux/swap.h
authorOlaf Hering <olh@suse.de>
Sun, 7 Aug 2005 16:42:24 +0000 (09:42 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 7 Aug 2005 17:00:38 +0000 (10:00 -0700)
commit4b01eaf404cd5743dad672561c8219ca27142d1b
treeae3b77d4b7bb287c6fb6b4baa321e2901bfae45b
parentef20383f65c1cbdd945fdce8f66590884c46338b
[PATCH] remove linux/pagemap.h from linux/swap.h

sparc can not include linux/pagemap.h because of the following circular
dependency:

asm-sparc/pgtable include linux/swap.h
linux/swap.h include now linux/pagemap.h
linux/pagemap.h include linux/mm.h
linux/mm.h include asm/pgtable.h

It needs to have the swp_entry_t type fully visible in pgtable.h,
we can't work around this using macros.

Signed-off-by: Olaf Hering <olh@suse.de>
Cc: William Lee Irwin III <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/swap.h