Staging: zram: fix build errors, depends on BLOCK
authorRandy Dunlap <randy.dunlap@oracle.com>
Thu, 24 Jun 2010 03:27:09 +0000 (20:27 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 24 Jun 2010 21:15:07 +0000 (14:15 -0700)
commit8946a0864848fdbc6544b9e1e6cb81b7cb93026b
treed596c9456bb2f08fe7ac539890230989b51d8843
parent4722a26cc61983295ad8e7a552999ec847aa0abd
Staging: zram: fix build errors, depends on BLOCK

Fix 49 zram build errors in one swoop.  Examples:

drivers/staging/zram/zram_drv.c:225: error: dereferencing pointer to incomplete type
drivers/staging/zram/zram_drv.c:226: error: implicit declaration of function 'bio_for_each_segment'
drivers/staging/zram/zram_drv.c:226: error: expected ';' before '{' token
drivers/staging/zram/zram_drv.c:281: error: implicit declaration of function 'bio_endio'
drivers/staging/zram/zram_drv.c:285: error: implicit declaration of function 'bio_io_error'
drivers/staging/zram/zram_drv.c:545: error: implicit declaration of function 'set_capacity'
drivers/staging/zram/zram_drv.c:548: error: implicit declaration of function 'queue_flag_set_unlocked'
drivers/staging/zram/zram_drv.c:548: error: 'QUEUE_FLAG_NONROT' undeclared (first use in this function)
drivers/staging/zram/zram_drv.c:548: error: dereferencing pointer to incomplete type

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/zram/Kconfig
drivers/staging/zram/zram_drv.c