[PATCH] mm: fix swap unused warning
authorCon Kolivas <kernel@kolivas.org>
Fri, 23 Jun 2006 09:03:42 +0000 (02:03 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 23 Jun 2006 14:42:51 +0000 (07:42 -0700)
commitbd96b9eb7cfd6ab24ba244360a09980a720874d2
tree9231d56e83f4ef43a6f664c2b416734318b92084
parent30c253e6da655d73eb8bfe2adca9b8f4d82fb81e
[PATCH] mm: fix swap unused warning

If CONFIG_SWAP is not defined we get:

mm/vmscan.c: In function â\80\98remove_mappingâ\80\99:
mm/vmscan.c:387: warning: unused variable â\80\98swapâ\80\99

Convert defines in swap.h into blank inline functions to fix this warning
and be consistent.

Signed-off-by: Con Kolivas <kernel@kolivas.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/swap.h