Skip to contentSkip to conversation

arch/i386/kernel/traps.c: fix SYSFS=n compile

PATCH New Adrian Bunk 1 participant 1 message Aug 22, 2005

lore
Share & tools
lore
#0 lore raw

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_vmlinux1
arch/i386/kernel/built-in.o: In function `die':
: undefined reference to `last_sysfs_file'
make: *** [.tmp_vmlinux1] Error 1

<-- snip -->

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