Skip to contentSkip to conversation

remove warning from drivers/net/rclanmtl.c

PATCH New Rasmus Andersen 1 participant 1 message Dec 8, 2000 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove warning from drivers/net/rclanmtl.c

Hi.

(Does anyone know the maintainer of this code?)

When compiling drivers/net/rclanmtl.c (240t12p3) I get a warning about incompatible pointer assignment. As far as I can tell it has appeared because PU32 has been changed to __u32* since test9 (where it was an unsigned long*). The following patch fixes this by changing the offending lvalue to a PU32 instead of an unsigned long*, which is my unqualified guess at a fix.

drivers/net/rclanmtl.c +1 -1
@@ -1561,7 +1561,7 @@
 RCResetLANCard(U16 AdapterID, U16 ResourceFlags, PU32 ReturnAddr, PFNCALLBACK CallbackFunction)
 {
     unsigned long off;
-    unsigned long *pMsg;
+    PU32 pMsg;
     PPAB pPab;
     int i;
     long timeout = 0;
Signature · 10 lines
        Rasmus([email protected])

"There are also enough rocks on Earth to kill the world's population several
times over."
	-- Lt. General Daniel Graham, DIA, explaining why it's necessary to
	   have more than enough nukes
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/