diff options
author | 2023-08-24 18:45:54 -0700 | |
---|---|---|
committer | 2023-08-30 10:35:53 -0700 | |
commit | 1fe428d3692fb10a0e8d85fafe719b154e43ad4e (patch) | |
tree | cda8a92983992a3963a9f9a7d30c0e3a4bcad63f /arch/x86/kernel | |
parent | x86/ibt: Convert IBT selftest to asm (diff) | |
download | linux-1fe428d3692fb10a0e8d85fafe719b154e43ad4e.tar.gz linux-1fe428d3692fb10a0e8d85fafe719b154e43ad4e.tar.bz2 linux-1fe428d3692fb10a0e8d85fafe719b154e43ad4e.zip |
x86/shstk: Change order of __user in type
0day reports a sparse warning:
arch/x86/kernel/shstk.c:295:55: sparse: sparse: cast removes address space
'__user' of expression
The __user is in the wrong spot. Move it to right spot and make sparse
happy.
Closes: https://lore.kernel.org/oe-kbuild-all/202308222312.Jt4Tog5T-lkp@intel.com/
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/all/20230825014554.1769194-1-rick.p.edgecombe%40intel.com
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/shstk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/shstk.c b/arch/x86/kernel/shstk.c index cd10d074a444..fd689921a1db 100644 --- a/arch/x86/kernel/shstk.c +++ b/arch/x86/kernel/shstk.c @@ -275,7 +275,7 @@ static int shstk_push_sigframe(unsigned long *ssp) return -EINVAL; *ssp -= SS_FRAME_SIZE; - if (put_shstk_data((void *__user)*ssp, target_ssp)) + if (put_shstk_data((void __user *)*ssp, target_ssp)) return -EFAULT; return 0; |