[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140715.160555.407533257702039786.davem@davemloft.net>
Date: Tue, 15 Jul 2014 16:05:55 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: jlayton@...marydata.com
Cc: kuznet@....inr.ac.ru, jmorris@...ei.org, yoshfuji@...ux-ipv6.org,
kaber@...sh.net, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-nfs@...r.kernel.org
Subject: Re: [PATCH] net: clean up some sparse endianness warnings in ipv6.h
From: Jeff Layton <jlayton@...marydata.com>
Date: Mon, 14 Jul 2014 08:25:46 -0400
> #endif
> - (a->s6_addr32[2] ^ htonl(0x0000ffff))) == 0UL;
> + ((a->s6_addr32[2] ^ htonl(0x0000ffff)) == cpu_to_be32(0)));
While you are spinning a new version, change this htonl() to be
cpu_to_be32(). All the rest of this entire expression uses the
cpu_to_*() interfaces, so for consistency this should too.
Thanks.
--
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