Skip to content

Commit a28d73c

Browse files
committed
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>
1 parent 8cf662e commit a28d73c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎arch/microblaze/kernel/setup.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ static int microblaze_debugfs_init(void)
209209
}
210210
arch_initcall(microblaze_debugfs_init);
211211

212+
# ifdef CONFIG_MMU
212213
static int __init debugfs_tlb(void)
213214
{
214215
struct dentry *d;
@@ -221,6 +222,7 @@ static int __init debugfs_tlb(void)
221222
return -ENOMEM;
222223
}
223224
device_initcall(debugfs_tlb);
225+
# endif
224226
#endif
225227

226228
static int dflt_bus_notify(struct notifier_block *nb,

0 commit comments

Comments
 (0)