diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2010-06-23 20:27:09 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-06-24 14:15:07 -0700 |
commit | 8946a0864848fdbc6544b9e1e6cb81b7cb93026b (patch) | |
tree | d596c9456bb2f08fe7ac539890230989b51d8843 /drivers/staging/zram | |
parent | 4722a26cc61983295ad8e7a552999ec847aa0abd (diff) | |
download | blackbird-op-linux-8946a0864848fdbc6544b9e1e6cb81b7cb93026b.tar.gz blackbird-op-linux-8946a0864848fdbc6544b9e1e6cb81b7cb93026b.zip |
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>
Diffstat (limited to 'drivers/staging/zram')
-rw-r--r-- | drivers/staging/zram/Kconfig | 1 | ||||
-rw-r--r-- | drivers/staging/zram/zram_drv.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/zram/Kconfig b/drivers/staging/zram/Kconfig index 5bcfe16feb19..4654ae2eb42e 100644 --- a/drivers/staging/zram/Kconfig +++ b/drivers/staging/zram/Kconfig @@ -1,5 +1,6 @@ config ZRAM tristate "Compressed RAM block device support" + depends on BLOCK select LZO_COMPRESS select LZO_DECOMPRESS default n diff --git a/drivers/staging/zram/zram_drv.c b/drivers/staging/zram/zram_drv.c index 3f778434dc9b..77d4d715a789 100644 --- a/drivers/staging/zram/zram_drv.c +++ b/drivers/staging/zram/zram_drv.c @@ -17,6 +17,7 @@ #include <linux/module.h> #include <linux/kernel.h> +#include <linux/bio.h> #include <linux/bitops.h> #include <linux/blkdev.h> #include <linux/buffer_head.h> |