[hsflinux] Patch for kernel 2.6.0 + gcc 2.95
Richard Atterer
richard at list03.atterer.net
Mon Dec 22 16:09:41 EST 2003
Hi,
the drivers didn't compile for me under 2.6.0 - see below.
Furthermore, IMHO you probably shouldn't discard the setting of PATH in
/usr/sbin/hsfconfig: It contains /root/bin on my machine, and my "gcc"
script in that directory always calls gcc-2.95, whereas /usr/bin/gcc is
gcc-3.3. This mismatch meant that when the modules were compiled on my
machine, they would not load because they were compiled with gcc 3.3, not
2.95.
I use the hsfmodem_6.03.00lnxt03112100free_i386.deb Debian package.
Cheers,
Richard
--
__ _
|_) /| Richard Atterer | GnuPG key:
| \/¯| http://atterer.net | 0x888354F7
¯ '` ¯
--- /usr/lib/hsfmodem/modules/cnxthwpci_common.c.orig 2003-12-22 14:14:36.000000000 +0100
+++ /usr/lib/hsfmodem/modules/cnxthwpci_common.c 2003-12-22 14:15:14.000000000 +0100
@@ -189,12 +189,14 @@
if(pdev->driver->name && !strcmp(pdev->driver->name, "serial")) {
printk(KERN_WARNING"%s: %s driver grabbed our device (%s), reclaiming it..\n", CNXTHWPCI_NAME, pdev->driver->name, pdev->slot_name);
#if ( LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) )
+ {
struct device *dev = get_device(&pdev->dev);
if(dev) {
device_release_driver(dev);
put_device(dev);
}
+ }
#else
if(pdev->driver) {
if(pdev->driver->remove) {
More information about the hsflinux
mailing list