compiler warning, kernel 2.6.16
If CONFIG_SWAP is _not_ set, gcc complains:
/src/linux-2.6.16-tfix/mm/vmscan.c: In function `remove_mapping':
/src/linux-2.6.16-tfix/mm/vmscan.c:398: warning: unused variable `swap'
cu,
knut
Quoted 6 lines · Knut Petersen
If
CONFIG_SWAPis _not_ set, gcc complains:/src/linux-2.6.16-tfix/mm/vmscan.c: In function `remove_mapping':
/src/linux-2.6.16-tfix/mm/vmscan.c:398: warning: unused variable `swap'
Yes, that's been there for ages. That code will be eliminated by the compiler and I tend to think that the ugliness of making the warning go away exceeds the benefit of stomping a !CONFIG_SWAP compile warning.