public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: [-mm patch] arch/i386/kernel/traps.c: fix SYSFS=n compile
Date: Mon, 22 Aug 2005 18:21:01 +0200	[thread overview]
Message-ID: <20050822162101.GE9927@stusta.de> (raw)

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


                 reply	other threads:[~2005-08-22 20:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050822162101.GE9927@stusta.de \
    --to=bunk@stusta.de \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox