[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1360924901-21404-4-git-send-email-james.hogan@imgtec.com>
Date: Fri, 15 Feb 2013 10:41:38 +0000
From: James Hogan <james.hogan@...tec.com>
To: <linux-kernel@...r.kernel.org>
CC: Arnd Bergmann <arnd@...db.de>, James Hogan <james.hogan@...tec.com>
Subject: [PATCH 3/6] metag: move setup.c exports out of metag_ksyms.c
It's less error prone to have function symbols exported immediately
after the function rather than in metag_ksyms.c. Move each EXPORT_SYMBOL
in metag_ksyms.c for symbols defined in setup.c into setup.c
Signed-off-by: James Hogan <james.hogan@...tec.com>
---
arch/metag/kernel/metag_ksyms.c | 5 -----
arch/metag/kernel/setup.c | 3 +++
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/arch/metag/kernel/metag_ksyms.c b/arch/metag/kernel/metag_ksyms.c
index 53d437f..1004e26 100644
--- a/arch/metag/kernel/metag_ksyms.c
+++ b/arch/metag/kernel/metag_ksyms.c
@@ -6,10 +6,8 @@
#include <linux/interrupt.h>
#include <linux/hardirq.h>
-#include <asm/setup.h>
#include <asm/checksum.h>
#include <asm/uaccess.h>
-#include <asm/traps.h>
#include <asm/ftrace.h>
#include <asm/tbx.h>
@@ -27,9 +25,6 @@ EXPORT_SYMBOL(__strncpy_from_user);
EXPORT_SYMBOL(strnlen_user);
EXPORT_SYMBOL(__do_clear_user);
-EXPORT_SYMBOL(pTBI_get);
-EXPORT_SYMBOL(meta_memoffset);
-
EXPORT_SYMBOL(clear_page);
EXPORT_SYMBOL(copy_page);
EXPORT_SYMBOL(empty_zero_page);
diff --git a/arch/metag/kernel/setup.c b/arch/metag/kernel/setup.c
index 9803ca4..dd6c5ad 100644
--- a/arch/metag/kernel/setup.c
+++ b/arch/metag/kernel/setup.c
@@ -5,6 +5,7 @@
*
*/
+#include <linux/export.h>
#include <linux/bootmem.h>
#include <linux/console.h>
#include <linux/cpu.h>
@@ -141,6 +142,7 @@ u8 hwthread_id_2_cpu[4] __read_mostly = {
* probably only be used via them.
*/
unsigned int meta_memoffset;
+EXPORT_SYMBOL(meta_memoffset);
static char __initdata *original_cmd_line;
@@ -579,6 +581,7 @@ PTBI pTBI_get(unsigned int cpu)
{
return per_cpu(pTBI, cpu);
}
+EXPORT_SYMBOL(pTBI_get);
#if defined(CONFIG_METAG_DSP) && defined(CONFIG_METAG_FPU)
char capabilites[] = "dsp fpu";
--
1.7.7.6
--
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