Linux-kernel mailing list archive 2000-01,: Re: 2.3.35: error in sis900.c

# Re: 2.3.35: error in sis900.c

Ollie Lho (ollie@sis.com.tw)
Tue, 04 Jan 2000 14:21:30 +0800

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: jeng: "How can I get the dump of physical address during execution time?"
- Previous message: Joern Rennecke: "Re: Super Lint (was: Unexecutable Stack / Buffer Overflow Exploits...)"
- Maybe in reply to: Alexandre Hautequest: "2.3.35: error in sis900.c"

This is a multi-part message in MIME format.
--------------30452B1F41B5F952AE2681F9
Content-Type: text/plain; charset=big5
Content-Transfer-Encoding: 7bit

--------------30452B1F41B5F952AE2681F9
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

X-Mozilla-Status2: 00000000
Message-ID: <38718CDB.43A80389@sis.com.tw>
Date: Tue, 04 Jan 2000 14:02:03 +0800
From: Ollie Lho <ollie@sis.com.tw>
Organization: Silicon Integrated System Corp.
X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.3.36 i586)
X-Accept-Language: en
MIME-Version: 1.0
To: Alexandre Hautequest <hquest@istm.com.br>,
Linus Torvalds <torvalds@transmeta.com>
Subject: Re: 2.3.35: error in sis900.c
References: <3870B66E.F44D6970@istm.com.br>
Content-Type: multipart/mixed;
boundary="------------D87E4C8C4AAE4D31B9C6235D"

This is a multi-part message in MIME format.
--------------D87E4C8C4AAE4D31B9C6235D
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Alexandre Hautequest wrote:
> gcc -D__KERNEL__ -I/usr/src/linux-2.3.34/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -DCPU=586 -march=i586 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.3.34/include/linux/modversions.h -c -o sis900.o sis900.c
> sis900.c: In function `set_rx_mode':
> sis900.c:1225: wrong type argument to unary plus
> make[2]: *** [sis900.o] Error 1
> make[2]: Leaving directory `/usr/src/linux-2.3.34/drivers/net'
> make[1]: *** [_modsubdir_net] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.3.34/drivers'
> make: *** [_mod_drivers] Error 2

Sorry, this is my fault, please apply the patch attached.
--------------D87E4C8C4AAE4D31B9C6235D
Content-Type: text/plain; charset=us-ascii;
name="sis900.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="sis900.patch"

diff -bBurN linux-2.3.35/drivers/net/sis900.c linux-2.3.35-sis900/drivers/net/sis900.c
--- linux-2.3.35/drivers/net/sis900.c Tue Jan 4 10:16:36 2000
+++ linux-2.3.35-sis900/drivers/net/sis900.c Tue Jan 4 10:20:58 2000
@@ -1221,7 +1221,7 @@
/* update Multicast Hash Table in Receive Filter */
for (i = 0; i < 8; i++) {
-+ /* why plus 0x04 ??, That makes the correct value for hash table. */
+ /* why plus 0x04 ??, That makes the correct value for hash table. */
outl((u32)(0x00000004+i) << RFADDR_shift, ioaddr + rfcr);
outl(mc_filter[i], ioaddr + rfdr);
}

--------------D87E4C8C4AAE4D31B9C6235D--

--------------30452B1F41B5F952AE2681F9--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

- Next message: jeng: "How can I get the dump of physical address during execution time?"
- Previous message: Joern Rennecke: "Re: Super Lint (was: Unexecutable Stack / Buffer Overflow Exploits...)"
- Maybe in reply to: Alexandre Hautequest: "2.3.35: error in sis900.c"