From: Jens Axboe Date: Thu, 20 May 2010 07:18:47 +0000 (+0200) Subject: writeback: fix problem with !CONFIG_BLOCK compilation X-Git-Tag: v2.6.35-rc1~442^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2c4986eddaa7dc3d036cb2bfa5c8c5f1f2492a0;p=pandora-kernel.git writeback: fix problem with !CONFIG_BLOCK compilation When CONFIG_BLOCK isn't enabled: mm/page-writeback.c: In function 'laptop_mode_timer_fn': mm/page-writeback.c:708: error: dereferencing pointer to incomplete type mm/page-writeback.c:709: error: dereferencing pointer to incomplete type Fix this by essentially eliminating the laptop sync handlers when CONFIG_BLOCK isn't set, as most are only used from the block layer code. The exception is laptop_sync_completion() which is used from sys_sync(), make that an empty declaration in that case. Reported-by: Randy Dunlap Signed-off-by: Jens Axboe --- Reading git-diff-tree failed