[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[patch 2/2] m68k: Atari EtherNAT (compile warning fix)



Hi Geert,

this one is mainly cosmetic - that wasn't the cause of my packet mangling, after all.

Cheers,

	Michael
--- linux-2.6-geert/drivers/net/smc91x.h
+++ linux-2.6/drivers/net/smc91x.h
@@ -1294,7 +1294,7 @@
 					 DATA_REG(lp));		\
 			}						\
 		} else if (SMC_16BIT(lp))				\
-			SMC_outsw(ioaddr, DATA_REG(lp), p, (l) >> 1);	\
+			SMC_outsw(ioaddr, DATA_REG(lp), (u16 *) p, (l) >> 1);	\
 		else if (SMC_8BIT(lp))				\
 			SMC_outsb(ioaddr, DATA_REG(lp), p, l);	\
 	} while (0)
@@ -1329,7 +1329,7 @@
 			__len += 2;					\
 			SMC_insl(__ioaddr, DATA_REG(lp), __ptr, __len>>2); \
 		} else if (SMC_16BIT(lp))				\
-			SMC_insw(ioaddr, DATA_REG(lp), p, (l) >> 1);	\
+			SMC_insw(ioaddr, DATA_REG(lp), (u16 *) p, (l) >> 1);	\
 		else if (SMC_8BIT(lp))				\
 			SMC_insb(ioaddr, DATA_REG(lp), p, l);		\
 	} while (0)

Reply to: