Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

r8169 endianness

missing conversions in a couple of places

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>

authored by

Al Viro and committed by
Jeff Garzik
95e0918d 78ce8d3d

+2 -2
+2 -2
drivers/net/r8169.c
··· 2211 2211 2212 2212 static inline void rtl8169_make_unusable_by_asic(struct RxDesc *desc) 2213 2213 { 2214 - desc->addr = 0x0badbadbadbadbadull; 2214 + desc->addr = cpu_to_le64(0x0badbadbadbadbadull); 2215 2215 desc->opts1 &= ~cpu_to_le32(DescOwn | RsvdMask); 2216 2216 } 2217 2217 ··· 2835 2835 } 2836 2836 2837 2837 /* Work around for AMD plateform. */ 2838 - if ((desc->opts2 & 0xfffe000) && 2838 + if ((desc->opts2 & cpu_to_le32(0xfffe000)) && 2839 2839 (tp->mac_version == RTL_GIGA_MAC_VER_05)) { 2840 2840 desc->opts2 = 0; 2841 2841 cur_rx++;