public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [-mm patch] arch/i386/kernel/traps.c: fix SYSFS=n compile
@ 2005-08-22 16:21 Adrian Bunk
  0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2005-08-22 16:21 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

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  -->


Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.13-rc6-mm1-full/arch/i386/kernel/traps.c.old	2005-08-22 03:19:52.000000000 +0200
+++ linux-2.6.13-rc6-mm1-full/arch/i386/kernel/traps.c	2005-08-22 03:20:23.000000000 +0200
@@ -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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-08-22 20:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-22 16:21 [-mm patch] arch/i386/kernel/traps.c: fix SYSFS=n compile Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox