aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorH. Peter Anvin <[email protected]>2012-02-29 07:36:21 +0000
committerH. Peter Anvin <[email protected]>2012-02-29 07:40:56 +0000
commita51f4047758d2bcd099ea113b833ed380f4024ba (patch)
tree43864a956b592934bc3ba1775c2d7d6aec539d97 /lib/string_helpers.c
parentx86, tools: Remove unneeded header files from tools/build.c (diff)
downloadkernel-a51f4047758d2bcd099ea113b833ed380f4024ba.tar.gz
kernel-a51f4047758d2bcd099ea113b833ed380f4024ba.zip
x86, build: Fix portability issues when cross-building
It would appear that we never actually generated a correct CRC when building on a bigendian machine. Depending on the word size, we would either generate an all-zero CRC (64-bit machine) or a byte-swapped CRC (32-bit machine.) Fix the types used so we don't arbitrarily use a 64-bit word to hold 32-bit numbers, and pass the CRC through put_unaligned_le32() like all the other numbers. Signed-off-by: H. Peter Anvin <[email protected]> Cc: Stephen Rothwell <[email protected]> Cc: Matt Fleming <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Nick Bowler <[email protected]> Link: http://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions