[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120207.121633.43514871391885371.davem@davemloft.net>
Date: Tue, 07 Feb 2012 12:16:33 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: David.Laight@...LAB.COM
Cc: jeffrey.t.kirsher@...el.com, 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__
From: "David Laight" <David.Laight@...LAB.COM>
Date: Tue, 7 Feb 2012 12:58:35 -0000
>
>> 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.
Not on cpus that have swap-endian loads and stores.
--
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