[Prism54-devel] [Bug 84] New: 1.1 modules built against unpatched 2.4.26 kernel won't load

bugzilla-daemon@mcgrof.com bugzilla-daemon@mcgrof.com
Wed, 5 May 2004 06:16:24 +0000 (UTC)


http://prism54.org/cgi-bin/bugzilla/show_bug.cgi?id=84

           Summary: 1.1 modules built against unpatched 2.4.26 kernel won't
                    load
           Product: prim54
           Version: 1.0.2.2
          Platform: ia32
        OS/Version: Linux 2.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Device Driver
        AssignedTo: prism54-devel@prism54.org
        ReportedBy: rjg@ateb.co.uk


The 1.1 driver module built successfully against a 2.4.26 kernel but wouldn't
load due to undefined 'netdev_priv'.  This appears to be a macro that is missing
in that kernel's header files.  I patched it by putting a suitable definition in
islpci_dev.h, and the driver now works fine (with an SMC2835W EU)

Bob Gautier
Ateb Limited

--- prism54-1.1/ksrc/islpci_dev.h	2004-03-18 05:25:24.000000000 +0000
+++ prism54-1.1.patched/ksrc/islpci_dev.h	2004-05-04 17:30:04.000000000 +0100
@@ -189,6 +189,10 @@
 	struct semaphore wpa_sem;
 } islpci_private;
 
+#ifndef
netdev_priv
+#define
netdev_priv(ndev) ((ndev)->priv)
+#endif
+
 static inline islpci_state_t
 islpci_get_state(islpci_private *priv)
 {



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.