[-mm patch] arch/i386/kernel/traps.c: fix SYSFS=n compile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>

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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux