[PATCH .36-rc8] a.out: Fix module build failure

From: Ingo Molnar
Date: Thu Oct 14 2010 - 22:34:33 EST


The recent aout fix causes a modular build failure on x86
(allmodconfig):

ERROR: "dump_seek" [fs/binfmt_aout.ko] undefined!
ERROR: "dump_write" [fs/binfmt_aout.ko] undefined!

Export these symbols.

Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
---
diff --git a/fs/exec.c b/fs/exec.c
index 03278c9..c55ca82 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -2024,6 +2024,7 @@ int dump_write(struct file *file, const void *addr, int nr)
{
return access_ok(VERIFY_READ, addr, nr) && file->f_op->write(file, addr, nr, &file->f_pos) == nr;
}
+EXPORT_SYMBOL_GPL(dump_write);

int dump_seek(struct file *file, loff_t off)
{
@@ -2052,3 +2053,4 @@ int dump_seek(struct file *file, loff_t off)
}
return ret;
}
+EXPORT_SYMBOL_GPL(dump_seek);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/