diff options
author | Zhen Lei <thunder.leizhen@huawei.com> | 2022-11-28 14:42:42 +0300 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2022-11-28 14:57:36 +0300 |
commit | 21d0798acf85e9ff8a6c7d8918df7d98e145d688 (patch) | |
tree | 4a7ec856ba0a2a8770c01c3b5d04462be867c945 /arch/arm/lib/error-inject.c | |
parent | 59e2cf8d21e05391c42628eb9fb5bb40f9d9698f (diff) | |
download | linux-21d0798acf85e9ff8a6c7d8918df7d98e145d688.tar.xz |
ARM: 9276/1: Refactor dump_instr()
1. Rename local variable 'val16' to 'tmp'. So that the processing
statements of thumb and arm can be aligned.
2. Fix two sparse check warnings: (add __user for type conversion)
warning: incorrect type in initializer (different address spaces)
expected unsigned short [noderef] __user *register __p
got unsigned short [usertype] *
3. Prepare for the next patch to avoid repeated judgment.
Before:
if (!user_mode(regs)) {
if (thumb)
else
} else {
if (thumb)
else
}
After:
if (thumb) {
if (user_mode(regs))
else
} else {
if (user_mode(regs))
else
}
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/lib/error-inject.c')
0 files changed, 0 insertions, 0 deletions