diff options
author | Michal Simek <monstr@monstr.eu> | 2012-03-28 04:31:36 -0400 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2012-03-28 04:31:36 -0400 |
commit | a28d73ca3ac7fffff317e62167ef26310b951ca0 (patch) | |
tree | 7237d5c19122747a62518b84dd82202cb4467c7f /arch/microblaze/kernel | |
parent | 8cf662ed3ef190fddc186bb5b1cd75eb3880d5a9 (diff) |
microblaze: Fix tlb_skip variable on noMMU system
TLBs are available only for MMU systems.
Error log:
arch/microblaze/kernel/setup.c: In function 'debugfs_tlb':
arch/microblaze/kernel/setup.c:217: error: 'tlb_skip' undeclared (first use in this function)
arch/microblaze/kernel/setup.c:217: error: (Each undeclared identifier is reported only once
arch/microblaze/kernel/setup.c:217: error: for each function it appears in.)
make[1]: *** [arch/microblaze/kernel/setup.o] Error 1
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/kernel')
-rw-r--r-- | arch/microblaze/kernel/setup.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/microblaze/kernel/setup.c b/arch/microblaze/kernel/setup.c index e4f5956ee13c..61dc7390984e 100644 --- a/arch/microblaze/kernel/setup.c +++ b/arch/microblaze/kernel/setup.c | |||
@@ -209,6 +209,7 @@ static int microblaze_debugfs_init(void) | |||
209 | } | 209 | } |
210 | arch_initcall(microblaze_debugfs_init); | 210 | arch_initcall(microblaze_debugfs_init); |
211 | 211 | ||
212 | # ifdef CONFIG_MMU | ||
212 | static int __init debugfs_tlb(void) | 213 | static int __init debugfs_tlb(void) |
213 | { | 214 | { |
214 | struct dentry *d; | 215 | struct dentry *d; |
@@ -221,6 +222,7 @@ static int __init debugfs_tlb(void) | |||
221 | return -ENOMEM; | 222 | return -ENOMEM; |
222 | } | 223 | } |
223 | device_initcall(debugfs_tlb); | 224 | device_initcall(debugfs_tlb); |
225 | # endif | ||
224 | #endif | 226 | #endif |
225 | 227 | ||
226 | static int dflt_bus_notify(struct notifier_block *nb, | 228 | static int dflt_bus_notify(struct notifier_block *nb, |