OSDN Git Service

misc: fix alignment warnings on ARM
authorAndreas Dilger <adilger@dilger.ca>
Fri, 22 May 2015 22:40:51 +0000 (16:40 -0600)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 20 Jun 2015 01:33:19 +0000 (21:33 -0400)
commit59707c1b5833d580dbd05bae85b71c0da20c3078
tree845aa591255ff4bee1cf1f105b2f2af5087d678e
parent7cb2ed25b1f6d50ed5d54863b5e40aa6de1c505b
misc: fix alignment warnings on ARM

Some temporary char buffers allocated on the stack are not properly
aligned when typecast to a structure containing __u32 or __u64 types,
and this can cause alignment warnings on ARM and other alignment
sensitive architectures, and potential slowdowns to do fixups.

Fix the buffer alignment to avoid such issues.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=680090

Reported-by: Gordan Bobic <gordan.bobic@gmail.com>
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/filefrag.c
misc/tune2fs.c