summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorStephen Warren <[email protected]>2013-05-22 08:48:18 +0000
committerTom Rini <[email protected]>2013-06-04 16:06:32 -0400
commite573617c092eb49da2d67443725d755fca3e8b74 (patch)
treea85f9846d6b8e3b51a51b2ddfcaa7b74527f2443 /include/linux
parentb8521b740bdecfb18d43dda62d72cbf7e167f1d0 (diff)
input: fix unaligned access in key_matrix_decode_fdt()
Initialized character arrays on the stack can cause gcc to emit code that performs unaligned accessess. Make the data static to avoid this. Note that the unaligned accesses are made when copying data to prefix[] on the stack from .rodata. By making the data static, the copy is completely avoided. All explicitly written code treats the data as u8[], so will never cause any unaligned accesses. Signed-off-by: Stephen Warren <[email protected]> Acked-by: Simon Glass <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions