Fix some problem in madvise WILL_NEED implementation

1. build error without CONFIG_SWAP
2. warning in i386 system
3. madvise early failure triggers warning