diff options
| author | Michael Kelley <mhklinux@outlook.com> | 2026-01-14 10:15:08 -0800 |
|---|---|---|
| committer | Wei Liu <wei.liu@kernel.org> | 2026-01-15 07:12:04 +0000 |
| commit | d2999c0fbcb2a84b0994ad3ec0d30c190ccd5e67 (patch) | |
| tree | f384f167ed63bd4e441cb3c85d316777e7ae8301 /tools/perf/scripts/python | |
| parent | mshv: Store the result of vfs_poll in a variable of type __poll_t (diff) | |
| download | linux-d2999c0fbcb2a84b0994ad3ec0d30c190ccd5e67.tar.gz linux-d2999c0fbcb2a84b0994ad3ec0d30c190ccd5e67.zip | |
mshv: Add __user attribute to argument passed to access_ok()
access_ok() expects its first argument to have the __user attribute
since it is checking access to user space. Current code passes an
argument that lacks that attribute, resulting in 'sparse' flagging
the incorrect usage. However, the compiler doesn't generate code
based on the attribute, so there's no actual bug.
In the interest of general correctness and to avoid noise from sparse,
add the __user attribute. No functional change.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202512141339.791TCKnB-lkp@intel.com/
Signed-off-by: Michael Kelley <mhklinux@outlook.com>
Reviewed-by: Nuno Das Neves <nunodasneves@linux.microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
