arch/i386/kernel/traps.c: fix SYSFS=n compile
PATCH 1/1 arch/i386/kernel/traps.c: fix SYSFS=n compile
This patch fixes the following compile error with CONFIG_SYSFS=n introduced by sysfs-crash-debugging.patch:
<-- snip -->
...
LD .tmp_vmlinux1arch/i386/kernel/built-in.o: In function `die':
: undefined reference to `last_sysfs_file'
make: *** [.tmp_vmlinux1] Error 1
<-- snip -->
Signed-off-by Adrian Bunk <[email protected]>
arch/i386/kernel/traps.c renamed from arch/i386/kernel/traps.c.old +2 -0
@@ -370,7 +370,9 @@#endif if (nl)printk ("\n" ); +#ifdef CONFIG_SYSFS printk (KERN_ALERT "last sysfs file: %s\n" , last_sysfs_file); +#endif #ifdef CONFIG_KGDB /* This is about the only place we want to go to kgdb even if in * user mode. But we must go in via a trap so within kgdb we will