[lkml]   [2005]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] remove die_notifiers if CONFIG_DEBUG_KERNEL not set
Use of die_notifiers is a debugging feature that is only used if 
CONFIG_DEBUG_KERNEL is set. For a kernel without debugging there is no
need of die notifiers. This will generate no code for notify_die if
debugging is not on. Seems that there is an expectation that future distro
releases will have CONFIG_KPROBES on. They will therefore also have
CONFIG_DEBUG_KERNEL set and thus the die notifiers will work and the
notifier will be enabled in do_ia64_page_fault.

Signed-off-by: Christoph Lameter <>

Index: linux-2.6.13/include/asm-ia64/kdebug.h
--- linux-2.6.13.orig/include/asm-ia64/kdebug.h 2005-08-28 16:41:01.000000000 -0700
+++ linux-2.6.13/include/asm-ia64/kdebug.h 2005-08-31 12:35:17.000000000 -0700
@@ -35,14 +35,15 @@ struct die_args {
int signr;

-int register_die_notifier(struct notifier_block *nb);
-extern struct notifier_block *ia64die_chain;
enum die_val {
+extern struct notifier_block *ia64die_chain;
+int register_die_notifier(struct notifier_block *nb);

static inline int notify_die(enum die_val val, char *str, struct pt_regs *regs,
long err, int trap, int sig)
@@ -57,5 +58,11 @@ static inline int notify_die(enum die_va

return notifier_call_chain(&ia64die_chain, val, &args);
+#define notify_die(val, str, regs, err, trap, sig) 0
+#define register_die_notifier(nb) do { } while (0)

Index: linux-2.6.13/arch/ia64/kernel/traps.c
--- linux-2.6.13.orig/arch/ia64/kernel/traps.c 2005-08-28 16:41:01.000000000 -0700
+++ linux-2.6.13/arch/ia64/kernel/traps.c 2005-08-31 12:35:17.000000000 -0700
@@ -28,6 +28,7 @@ extern spinlock_t timerlist_lock;
fpswa_interface_t *fpswa_interface;

struct notifier_block *ia64die_chain;
static DEFINE_SPINLOCK(die_notifier_lock);

@@ -40,6 +41,7 @@ int register_die_notifier(struct notifie
spin_unlock_irqrestore(&die_notifier_lock, flags);
return err;

void __init
trap_init (void)
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at
 \ /
  Last update: 2005-08-31 22:02    [W:0.035 / U:2.092 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site