All of lore.kernel.org
 help / color / mirror / Atom feed
* [parisc-linux] error?
@ 2004-01-27  9:46 Naresh Kumar
  2004-01-27 17:22 ` Grant Grundler
  0 siblings, 1 reply; 4+ messages in thread
From: Naresh Kumar @ 2004-01-27  9:46 UTC (permalink / raw)
  To: parisc-linux

[-- Attachment #1: Type: text/plain, Size: 776 bytes --]

Hi,
I noticed in the function 'linux-2.6/drivers/parisc/lba_pci.c:
lba_pat_resources( )' the following lines:

---------------------------------------------------------------
  case PAT_GMMIO:

   r = &(lba_dev->hba.gmmio_space);
   r->name   = "LBA GMMIO";
   r->start  = p->start;
   r->end    = p->end;
   r->flags  = IORESOURCE_MEM;
   r->parent = r->sibling = r->child = NULL;
   break;
   lba_dev->gmmio_base = p->start;
   break;

  case PAT_NPIOP:
    printk(KERN_WARNING MODULE_NAME
    " range[%d] : ignoring NPIOP (0x%lx)\n",
    i, p->start);
   break;
-------------------------------------------------------------------

Please note the extra lines after the 'break;'. The version of
'lba_pci.c' is 1.7. Seems to have happened due to oversight.

Thanks,
Naresh.


[-- Attachment #2: Type: text/html, Size: 1159 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [parisc-linux] error?
  2004-01-27  9:46 [parisc-linux] error? Naresh Kumar
@ 2004-01-27 17:22 ` Grant Grundler
  2004-01-27 17:37   ` Matthew Wilcox
  2004-01-28  5:26   ` Naresh Kumar
  0 siblings, 2 replies; 4+ messages in thread
From: Grant Grundler @ 2004-01-27 17:22 UTC (permalink / raw)
  To: Naresh Kumar; +Cc: parisc-linux

On Tue, Jan 27, 2004 at 03:16:16PM +0530, Naresh Kumar wrote:
>    r->end    = p->end;
>    r->flags  = IORESOURCE_MEM;
>    r->parent = r->sibling = r->child = NULL;
>    break;
>    lba_dev->gmmio_base = p->start;
>    break;
> 
>   case PAT_NPIOP:
>     printk(KERN_WARNING MODULE_NAME
>     " range[%d] : ignoring NPIOP (0x%lx)\n",
>     i, p->start);
>    break;
> -------------------------------------------------------------------
> 
> Please note the extra lines after the 'break;'. The version of
> 'lba_pci.c' is 1.7. Seems to have happened due to oversight.

Those are "extra"?
The version of code in linux-2.4 CVS has:
                case PAT_GMMIO:
                        printk(KERN_WARNING MODULE_NAME
                                " range[%d] : ignoring GMMIO (0x%lx)\n",
                                i, p->start);
                        lba_dev->gmmio_base = p->start;
                        break;

The code you quoted is missing the "case PAT_GMMIO" and printk.

thanks,
grant

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [parisc-linux] error?
  2004-01-27 17:22 ` Grant Grundler
@ 2004-01-27 17:37   ` Matthew Wilcox
  2004-01-28  5:26   ` Naresh Kumar
  1 sibling, 0 replies; 4+ messages in thread
From: Matthew Wilcox @ 2004-01-27 17:37 UTC (permalink / raw)
  To: Grant Grundler; +Cc: parisc-linux, Naresh Kumar

On Tue, Jan 27, 2004 at 10:22:56AM -0700, Grant Grundler wrote:
> On Tue, Jan 27, 2004 at 03:16:16PM +0530, Naresh Kumar wrote:
> >    r->end    = p->end;
> >    r->flags  = IORESOURCE_MEM;
> >    r->parent = r->sibling = r->child = NULL;
> >    break;
> >    lba_dev->gmmio_base = p->start;
> >    break;
> > 
> >   case PAT_NPIOP:
> >     printk(KERN_WARNING MODULE_NAME
> >     " range[%d] : ignoring NPIOP (0x%lx)\n",
> >     i, p->start);
> >    break;
> > -------------------------------------------------------------------
> > 
> > Please note the extra lines after the 'break;'. The version of
> > 'lba_pci.c' is 1.7. Seems to have happened due to oversight.
> 
> Those are "extra"?
> The version of code in linux-2.4 CVS has:
>                 case PAT_GMMIO:
>                         printk(KERN_WARNING MODULE_NAME
>                                 " range[%d] : ignoring GMMIO (0x%lx)\n",
>                                 i, p->start);
>                         lba_dev->gmmio_base = p->start;
>                         break;
> 
> The code you quoted is missing the "case PAT_GMMIO" and printk.

The bit he's referring to is:

>    break;
>    lba_dev->gmmio_base = p->start;
>    break;

which is clearly bogus.

-- 
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [parisc-linux] error?
  2004-01-27 17:22 ` Grant Grundler
  2004-01-27 17:37   ` Matthew Wilcox
@ 2004-01-28  5:26   ` Naresh Kumar
  1 sibling, 0 replies; 4+ messages in thread
From: Naresh Kumar @ 2004-01-28  5:26 UTC (permalink / raw)
  To: Grant Grundler; +Cc: parisc-linux

Grant,
I was referring to linux-2.6. There are two 'break' statements in 'case
PAT_GMMIO:'. Removing the first 'break' will do.
Regards,
Naresh.


> Those are "extra"?
> The version of code in linux-2.4 CVS has:
>                 case PAT_GMMIO:
>                         printk(KERN_WARNING MODULE_NAME
>                                 " range[%d] : ignoring GMMIO (0x%lx)\n",
>                                 i, p->start);
>                         lba_dev->gmmio_base = p->start;
>                         break;
>
> The code you quoted is missing the "case PAT_GMMIO" and printk.
>
> thanks,
> grant

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-01-28  5:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-27  9:46 [parisc-linux] error? Naresh Kumar
2004-01-27 17:22 ` Grant Grundler
2004-01-27 17:37   ` Matthew Wilcox
2004-01-28  5:26   ` Naresh Kumar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.