[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AE90C24D6B3A694183C094C60CF0A2F6026B6E5C@saturn3.aculab.com>
Date: Tue, 7 Feb 2012 12:58:35 -0000
From: "David Laight" <David.Laight@...LAB.COM>
To: "Jeff Kirsher" <jeffrey.t.kirsher@...el.com>, <davem@...emloft.net>
Cc: "Bruce Allan" <bruce.w.allan@...el.com>, <netdev@...r.kernel.org>,
<gospo@...hat.com>, <sassmann@...hat.com>
Subject: RE: [net-next 10/11] e1000e: fix sparse warnings with -D__CHECK_ENDIAN__
> for (i = 0; i < last_word - first_word + 1; i++)
> - eeprom_buff[i] = cpu_to_le16(eeprom_buff[i]);
> + cpu_to_le16s(&eeprom_buff[i]);
The old version is likely to generate much better code.
David
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists