sh: Only shout about fixing up unexpected unaligned accesses

Some unaligned accesses are completely expected. For example, the
trapped_io code uses the unaligned access fixup code path so there's no
need to warn about having to fixup the unaligned access.

Signed-off-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
Matt Fleming
2009-08-28 21:37:20 +00:00
committed by Paul Mundt
parent e79d57479c
commit 4aa5ac4ef4
3 changed files with 8 additions and 6 deletions

View File

@@ -284,7 +284,8 @@ int handle_trapped_io(struct pt_regs *regs, unsigned long address)
return 0;
}
tmp = handle_unaligned_access(instruction, regs, &trapped_io_access);
tmp = handle_unaligned_access(instruction, regs,
&trapped_io_access, 1);
set_fs(oldfs);
return tmp == 0;
}