Kernel compilation error – Undefined reference to `swap_info’

mm/built-in.o: In function `frontswap_curr_pages':
/home/droidzone/android/kernel/banana/bravo_2.6.35_gb-mr/mm/frontswap.c:235: undefined reference to `swap_list'
/home/droidzone/android/kernel/banana/bravo_2.6.35_gb-mr/mm/frontswap.c:235: undefined reference to `swap_info'
mm/built-in.o: In function `frontswap_shrink':
/home/droidzone/android/kernel/banana/bravo_2.6.35_gb-mr/mm/frontswap.c:207: undefined reference to `try_to_unuse'
/home/droidzone/android/kernel/banana/bravo_2.6.35_gb-mr/mm/frontswap.c:214: undefined reference to `swap_list'
/home/droidzone/android/kernel/banana/bravo_2.6.35_gb-mr/mm/frontswap.c:214: undefined reference to `swap_info'
mm/built-in.o: In function `__frontswap_put_page':
/home/droidzone/android/kernel/banana/bravo_2.6.35_gb-mr/mm/frontswap.c:104: undefined reference to `swap_info'
mm/built-in.o: In function `__frontswap_get_page':
/home/droidzone/android/kernel/banana/bravo_2.6.35_gb-mr/mm/frontswap.c:125: undefined reference to `swap_info'
mm/built-in.o: In function `__frontswap_flush_page':
/home/droidzone/android/kernel/banana/bravo_2.6.35_gb-mr/mm/frontswap.c:139: undefined reference to `swap_info'
mm/built-in.o: In function `__frontswap_flush_area':
/home/droidzone/android/kernel/banana/bravo_2.6.35_gb-mr/mm/frontswap.c:153: undefined reference to `swap_info'
make: *** [.tmp_vmlinux1] Error 1
ERROR: An error occured. Kernel was not compiled.[/code]

Disable the following options in menuconfig:
Kernel Features>Enable frontswap driver, Enable Cachecleaner driver


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.