Hello, I wrote:

>> Index: linux-2.6/arch/mips/kernel/traps.c
>> ===================================================================
>> --- linux-2.6.orig/arch/mips/kernel/traps.c
>> +++ linux-2.6/arch/mips/kernel/traps.c
>> @@ -126,8 +126,8 @@ static void show_backtrace(struct task_s
>>      printk("\n");
>>  }

>> -struct atomic_notifier_head mips_die_head;
>> -static spinlock_t die_notifier_lock = SPIN_LOCK_UNLOCKED;
>> +ATOMIC_NOTIFIER_HEAD(mips_die_head);
>> +DEFINE_SPINLOCK(die_notifier_lock);

>>  int register_die_notifier(struct notifier_block *nb)
>>  {

>    BTW, I'm getting this warning on x86_64:

    Onl, with 2.6.21-rt7 appied

> arch/x86_64/kernel/kgdb.c: In function `kgdb_arch_init':
> arch/x86_64/kernel/kgdb.c:319: warning: passing arg 1 of 
> `atomic_notifier_chain_register' from incompatible pointer type

>    After looking at the code, it turned out that this is because 
> 'die_chain' is dealred as 'struct raw_notifier_head' (the same is true 

    I meant "declared". RT patch changed these for i386 and x86_64 -- I wonder 
if it should be done forother archs also (BTW, RT kernel stops as soon as the 
userland is started for some reason on my PPC board when I'm using 8250 
driver)...

> for i386), not struct atomic_notifier_head'.  I wonder what should be 
> fixed, the declaration or the call...

    I guess I'll follow the trend and convert the calls...

WBR, Sergei


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Kgdb-bugreport mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport

Reply via email to