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

If CONFIG_SWAP is not defined we get:

mm/vmscan.c: In function â€˜remove_mapping’:
mm/vmscan.c:387: warning: unused variable â€˜swap’

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