[2.6 patch] sh: export get_cpu_subtype

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <lethal@...>
Cc: <linux-sh@...>, <linux-kernel@...>
Date: Tuesday, June 17, 2008 - 6:30 pm

This patch fixes the following build error:

<--  snip  -->

...
  MODPOST 1837 modules
ERROR: "get_cpu_subtype" [arch/sh/oprofile/oprofile.ko] undefined!
...
make[2]: *** [__modpost] Error 1

<--  snip  -->

Reported-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Adrian Bunk <bunk@kernel.org>

---
3b4d9e75cf4e2d0eb47bc9e8867a9a60dbd1d8c2 diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c
index bca2bbc..9324cb9 100644
--- a/arch/sh/kernel/setup.c
+++ b/arch/sh/kernel/setup.c
@@ -398,6 +398,7 @@ const char *get_cpu_subtype(struct sh_cpuinfo *c)
 {
 	return cpu_name[c->type];
 }
+EXPORT_SYMBOL(get_cpu_subtype);
 
 #ifdef CONFIG_PROC_FS
 /* Symbolic CPU flags, keep in sync with asm/cpu-features.h */

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[2.6 patch] sh: export get_cpu_subtype, Adrian Bunk, (Tue Jun 17, 6:30 pm)
Re: [2.6 patch] sh: export get_cpu_subtype, Paul Mundt, (Tue Jun 24, 12:03 am)
Change console to another UART, oihana, (Wed Jun 18, 3:21 am)
Re: Change console to another UART, Nobuhiro Iwamatsu, (Wed Jun 18, 5:43 am)