OSDN Git Service

thunderbolt: Add casts to prevent endianness warnings
authorAndreas Noever <andreas.noever@gmail.com>
Fri, 20 Jun 2014 19:42:22 +0000 (21:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jun 2014 20:06:01 +0000 (13:06 -0700)
commit801dba53fef8bfc2f1424c33914a41810594bde2
treefb8e32b297378ac864844eebcea1cbb9f5325ed6
parent3543fb776d8e63934615bf7070ee5fa5a6a7382d
thunderbolt: Add casts to prevent endianness warnings

Thunderbolt packets are big endian. Cast pkg->buffer to __be32* when
accessing the checksum.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Andreas Noever <andreas.noever@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/ctl.c