Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a28d73ca authored by Michal Simek's avatar Michal Simek
Browse files

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: default avatarMichal Simek <monstr@monstr.eu>
parent 8cf662ed
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -209,6 +209,7 @@ static int microblaze_debugfs_init(void)
}
}
arch_initcall(microblaze_debugfs_init);
arch_initcall(microblaze_debugfs_init);


# ifdef CONFIG_MMU
static int __init debugfs_tlb(void)
static int __init debugfs_tlb(void)
{
{
	struct dentry *d;
	struct dentry *d;
@@ -222,6 +223,7 @@ static int __init debugfs_tlb(void)
}
}
device_initcall(debugfs_tlb);
device_initcall(debugfs_tlb);
# endif
# endif
#endif


static int dflt_bus_notify(struct notifier_block *nb,
static int dflt_bus_notify(struct notifier_block *nb,
				unsigned long action, void *data)
				unsigned long action, void *data)