* [PATCH -mm] aio: fix sysctl build error
@ 2008-09-15 18:59 Randy Dunlap
0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2008-09-15 18:59 UTC (permalink / raw)
To: lkml; +Cc: akpm
From: Randy Dunlap <randy.dunlap@oracle.com>
Put aio_nr sysctl inside ifdef CONFIG_AIO block to fix this build error:
kernel/built-in.o:(.data+0x2a2c): undefined reference to `aio_nr'
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
kernel/sysctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.27-rc5-mm1.orig/kernel/sysctl.c
+++ linux-2.6.27-rc5-mm1/kernel/sysctl.c
@@ -1336,6 +1336,7 @@ static struct ctl_table fs_table[] = {
.extra2 = &two,
},
#endif
+#ifdef CONFIG_AIO
{
.procname = "aio-nr",
.data = &aio_nr,
@@ -1343,7 +1344,6 @@ static struct ctl_table fs_table[] = {
.mode = 0444,
.proc_handler = &proc_doulongvec_minmax,
},
-#ifdef CONFIG_AIO
{
.procname = "aio-max-nr",
.data = &aio_max_nr,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-15 19:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-15 18:59 [PATCH -mm] aio: fix sysctl build error Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®