[patch] 2.6.0-test4: sis190 doesn't compile with gcc 2.95

From: Adrian Bunk (bunk_at_fs.tum.de)
Date: 08/25/03

  • Next message: Nick Pollitt: "[PATCH] 2.4 avenrun values"
    Date:	Mon, 25 Aug 2003 23:00:12 +0200
    To: kmliu@sis.com, Jeff Garzik <jgarzik@pobox.com>
    
    

    On Fri, Aug 22, 2003 at 05:48:56PM -0700, Linus Torvalds wrote:
    >...
    > Summary of changes from v2.6.0-test3 to v2.6.0-test4
    > ============================================
    >...
    > Jeff Garzik:
    >...
    > o [netdrvr] add sis190 gigabit ethernet driver (note: needs work)
    >...

    The following is needed to fix the compilation of sis190 with gcc 2.95:

    --- linux-2.6.0-test4-mm1/drivers/net/sis190.c.old 2003-08-25 20:03:04.000000000 +0200
    +++ linux-2.6.0-test4-mm1/drivers/net/sis190.c 2003-08-25 20:03:45.000000000 +0200
    @@ -536,6 +536,7 @@
             static int printed_version = 0;
             int i, rc;
             u16 reg31;
    + int val;
     
             assert(pdev != NULL);
             assert(ent != NULL);
    @@ -620,7 +621,7 @@
                    dev->dev_addr[2], dev->dev_addr[3],
                    dev->dev_addr[4], dev->dev_addr[5], dev->irq);
     
    - int val = smdio_read(ioaddr, PHY_AUTO_NEGO_REG);
    + val = smdio_read(ioaddr, PHY_AUTO_NEGO_REG);
     
             printk(KERN_INFO "%s: Auto-negotiation Enabled.\n", dev->name);
     

    cu
    Adrian

    -- 
           "Is there not promise of rain?" Ling Tan asked suddenly out
            of the darkness. There had been need of rain for many days.
           "Only a promise," Lao Er said.
                                           Pearl S. Buck - Dragon Seed
    -
    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: Nick Pollitt: "[PATCH] 2.4 avenrun values"

    Relevant Pages

    • 2.6.12-rc5-mm1: fork connector doesnt compile with gcc 2.95
      ... The following compile breakage with gcc 2.95 is caused by ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • 2.4.28-pre4: e1000_main.c gcc 3.4 compile error
      ... at least the following compile error with gcc 3.4: ... 'e1000_irq_enable': function body not available ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: ppcfix.diff
      ... is the version the post-2.95.3 snapshot of the gcc 2.95 ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] ip2: fix compile warnings
      ... If someone will ever define ENABLE_DSSNOW your change broke compilation ... with gcc 2.95. ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [2.6 patch] net/hamachi.c: remove bogus inline at function prototype (fwd)
      ... My primary goal was to fix the compilation with gcc 3.4, ... all inlines. ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)