Re: fix ppc compile

From: Tom Rini (trini_at_kernel.crashing.org)
Date: 03/16/04

  • Next message: Rusty Russell: "Re: module scanning in kgdb 2.x"
    Date:	Tue, 16 Mar 2004 14:20:11 -0700
    To: Dave Jones <davej@redhat.com>, Linux Kernel <linux-kernel@vger.kernel.org>
    
    

    On Tue, Mar 16, 2004 at 09:05:40PM +0000, Dave Jones wrote:
    > 2.6.5rc1 changes this function, but there is no 'dev' argument there.
    > This makes it look a little more sane, but I've no hardware to test it on.
    >
    > Dave
    >
    > --- linux-2.6.4/arch/ppc/syslib/indirect_pci.c~ 2004-03-16 21:03:20.000000000 +0000
    > +++ linux-2.6.4/arch/ppc/syslib/indirect_pci.c 2004-03-16 21:03:31.000000000 +0000
    > @@ -44,8 +44,8 @@
    > cfg_type = 1;
    >
    > PCI_CFG_OUT(hose->cfg_addr,
    > - (0x80000000 | ((dev->bus->number - hose->bus_offset) << 16)
    > - | (dev->devfn << 8) | ((offset & 0xfc) | cfg_type)));
    > + (0x80000000 | ((bus->number - hose->bus_offset) << 16)
    > + | (devfn << 8) | ((offset & 0xfc) | cfg_type)));
    >
    > /*
    > * Note: the caller has already checked that offset is

    There's this problem in 2 places. I've sent akpm a patch already that
    fixes 'em both.

    -- 
    Tom Rini
    http://gate.crashing.org/~trini/
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Rusty Russell: "Re: module scanning in kgdb 2.x"

    Relevant Pages

    • fix ppc compile
      ... but there is no 'dev' argument there. ... This makes it look a little more sane, but I've no hardware to test it on. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: VIA SATA I/O errors
      ... > and a lot of SCSI error messages will be output to the console. ... > few instances of this happening (which requires a hard power-off, ... I have no idea whether this is a software or hardware ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Patricks Test9 suspend code.
      ... > usb and agp were both compiled in to the kernel that worked. ... > never seemed to be dying due to the HARDWARE, it always shut all the hardware ... You really should try without AGP. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.0-test9 - poor swap performance on low end machines
      ... hardware and in the way we use computers (interactive, Client/Server, ... fixing it in hardware by adding RAM works ... What we _can_ do in software, though, is prevent thrashing as long as ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.4 vs 2.6
      ... -- drivers for my telephony card are not 2.6-ready, ... So please be careful when making statements like that. ... have a narrow range of hardware on which the 2.6 kernel has actually ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)