Jens Axboe
c2c4986edd
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 <randy.dunlap@oracle.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2010-05-21 20:01:03 +02:00
..
2010-05-21 20:00:35 +02:00
2010-04-07 11:02:23 -07:00
2010-03-30 22:02:32 +09:00
2009-04-01 08:59:13 -07:00
2009-06-30 18:56:00 -07:00
2010-03-06 11:26:25 -08:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-06 11:26:23 -08:00
2010-02-05 12:22:40 +01:00
2010-04-24 11:31:25 -07:00
2009-12-16 12:20:01 +01:00
2009-06-16 19:47:28 -07:00
2009-12-16 12:19:59 +01:00
2010-03-03 08:15:05 -08:00
2009-09-21 15:14:57 +02:00
2010-03-30 22:02:32 +09:00
2009-06-24 15:13:48 +09:00
2010-03-30 22:02:32 +09:00
2010-04-24 11:31:26 -07:00
2010-01-07 11:58:36 -06:00
2009-12-16 12:20:00 +01:00
2010-03-30 22:02:32 +09:00
2010-04-24 11:31:24 -07:00
2010-03-12 15:52:28 -08:00
2010-03-30 22:02:32 +09:00
2010-04-07 08:38:02 -07:00
2010-03-30 22:02:32 +09:00
2009-09-22 07:17:35 -07:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-06 11:26:24 -08:00
2008-08-20 15:40:30 -07:00
2010-04-27 08:26:51 -07:00
2010-03-24 16:31:21 -07:00
2010-03-30 22:02:32 +09:00
2009-05-18 11:22:24 +01:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2009-01-14 14:15:23 +01:00
2010-03-25 14:13:27 -07:00
2010-03-30 22:02:32 +09:00
2010-03-12 15:52:28 -08:00
2010-03-17 18:43:47 -07:00
2010-03-30 22:02:32 +09:00
2008-11-06 15:41:19 -08:00
2010-05-21 20:01:03 +02:00
2010-04-07 08:38:04 -07:00
2010-03-30 22:02:32 +09:00
2010-03-29 23:07:12 +09:00
2010-03-30 22:02:32 +09:00
2010-04-07 08:38:03 -07:00
2010-04-24 11:31:25 -07:00
2009-12-16 19:48:48 -05:00
2010-04-09 10:09:50 -07:00
2009-08-06 11:36:25 +03:00
2010-04-09 10:09:50 -07:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-04-28 19:47:36 +02:00
2009-06-23 12:50:05 -07:00
2010-03-30 22:02:32 +09:00
2010-04-09 10:09:50 -07:00
2010-02-02 12:50:47 -08:00
2010-04-07 08:38:03 -07:00
2010-03-30 22:02:32 +09:00