aboutsummaryrefslogtreecommitdiff
path: root/mm/shmem.c
diff options
context:
space:
mode:
authorAmit Daniel Kachhap2021-11-05 13:38:18 -0700
committerLinus Torvalds2021-11-06 13:30:36 -0700
commitb063e374e7ae75589a36f4bcbfb47956ac197c57 (patch)
treea1dd2be0d3f0689a7ea9d9094a3bda2f0182ec02 /mm/shmem.c
parentf1dc0db296bd25960273649fc6ef2ecbf5aaa0e0 (diff)
mm/memory.c: avoid unnecessary kernel/user pointer conversion
Annotating a pointer from __user to kernel and then back again might confuse sparse. In copy_huge_page_from_user() it can be avoided by removing the intermediate variable since it is never used. Link: https://lkml.kernel.org/r/20210914150820.19326-1-amit.kachhap@arm.com Signed-off-by: Amit Daniel Kachhap <amit.kachhap@arm.com> Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Vincenzo Frascino <Vincenzo.Frascino@arm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/shmem.c')
0 files changed, 0 insertions, 0 deletions