From: Randy Dunlap <randy.dunlap@oracle.com>
To: Stephen Rothwell <sfr@canb.auug.org.au>,
Nitin Gupta <ngupta@vflare.org>,
devel@driverdev.osuosl.org
Cc: linux-next@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
gregkh@suse.de
Subject: [PATCH -next] zram: fix build errors, depends on BLOCK
Date: Wed, 23 Jun 2010 20:27:09 -0700 [thread overview]
Message-ID: <20100623202709.4ecb798c.randy.dunlap@oracle.com> (raw)
In-Reply-To: <20100623154531.0a4b02e1.sfr@canb.auug.org.au>
From: Randy Dunlap <randy.dunlap@oracle.com>
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: devel@driverdev.osuosl.org
Cc: Nitin Gupta <ngupta@vflare.org>
---
drivers/staging/zram/Kconfig | 1 +
drivers/staging/zram/zram_drv.c | 1 +
2 files changed, 2 insertions(+)
--- linux-next-20100623.orig/drivers/staging/zram/Kconfig
+++ linux-next-20100623/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
--- linux-next-20100623.orig/drivers/staging/zram/zram_drv.c
+++ linux-next-20100623/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>
next prev parent reply other threads:[~2010-06-24 3:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-23 5:45 linux-next: Tree for June 23 Stephen Rothwell
2010-06-24 3:27 ` Randy Dunlap [this message]
2010-06-24 4:36 ` [PATCH -next] zram: fix build errors, depends on BLOCK Nitin Gupta
2010-06-24 14:32 ` Randy Dunlap
2010-06-24 15:47 ` Nitin Gupta
2010-06-24 15:53 ` Randy Dunlap
2010-06-24 16:07 ` Nitin Gupta
2010-06-24 3:28 ` [PATCH -next] staging: fix wlan-ng depends Randy Dunlap
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100623202709.4ecb798c.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=ngupta@vflare.org \
--cc=sfr@canb.auug.org.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).