[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090807111659.3d8da27f.randy.dunlap@oracle.com>
Date: Fri, 7 Aug 2009 11:16:59 -0700
From: Randy Dunlap <randy.dunlap@...cle.com>
To: Stephen Rothwell <sfr@...b.auug.org.au>,
akpm <akpm@...ux-foundation.org>, jens.axboe@...cle.com
Cc: linux-next@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH -next] block: blk-iopoll sysctl iff CONFIG_BLOCK
From: Randy Dunlap <randy.dunlap@...cle.com>
New block-iopoll sysctl should be surrounded by CONFIG_BLOCK to
prevent build error:
kernel/built-in.o:(.data+0x2990): undefined reference to `blk_iopoll_enabled'
Signed-off-by: Randy Dunlap <randy.dunlap@...cle.com>
---
kernel/sysctl.c | 2 ++
1 file changed, 2 insertions(+)
--- linux-next-20090807.orig/kernel/sysctl.c
+++ linux-next-20090807/kernel/sysctl.c
@@ -990,6 +990,7 @@ static struct ctl_table kern_table[] = {
.proc_handler = &proc_dointvec,
},
#endif
+#ifdef CONFIG_BLOCK
{
.ctl_name = CTL_UNNUMBERED,
.procname = "blk_iopoll",
@@ -998,6 +999,7 @@ static struct ctl_table kern_table[] = {
.mode = 0644,
.proc_handler = &proc_dointvec,
},
+#endif
/*
* NOTE: do not add new entries to this table unless you have read
* Documentation/sysctl/ctl_unnumbered.txt
---
~Randy
LPC 2009, Sept. 23-25, Portland, Oregon
http://linuxplumbersconf.org/2009/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists