lkml.org 
[lkml]   [2009]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/4] irq: change references from NR_IRQS to nr_irqs
Ingo Molnar wrote:
> * Mike Travis <travis@sgi.com> wrote:
>
>> Impact: preparation, cleanup
>
> s/Impact: preparation, cleanup/Impact: preparation, cleanup, add printk

Hmm, should I attempt the 'git rebase -i' to change this or just fix up
the patch, and repush (getting new commit ids)?

>
>> @@ -160,9 +162,9 @@ struct irq_desc *irq_to_desc_alloc_cpu(u
>> unsigned long flags;
>> int node;
>>
>> - if (irq >= NR_IRQS) {
>> - printk(KERN_WARNING "irq >= NR_IRQS in irq_to_desc_alloc: %d %d\n",
>> - irq, NR_IRQS);
>> + if (irq >= nr_irqs) {
>> + printk(KERN_WARNING "irq >= nr_irqs in irq_to_desc_alloc: %d %d\n",
>> + irq, nr_irqs);
>> WARN_ON(1);
>> return NULL;
>
> While at it, could you please also convert this to a WARN() construct
> instead? (in a separate commit)
>
> Ingo

Yes, I will.

Thanks,
Mike


\
 
 \ /
  Last update: 2009-01-11 00:13    [W:0.322 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site