]> www.infradead.org Git - users/jedix/linux-maple.git/commit
accel/amdxdna: Add __user to second parameter of aie2_query_status
authorLizhi Hou <lizhi.hou@amd.com>
Thu, 2 Jan 2025 21:22:43 +0000 (13:22 -0800)
committerMario Limonciello <mario.limonciello@amd.com>
Sat, 4 Jan 2025 05:38:19 +0000 (23:38 -0600)
commit3b5bcf64a65b36e91b6bead03de1df6f2705ad94
tree6a629a0a4bfc7ae9ced43f207b9cb550fe566d8e
parent72e487b47d249f9226093b1c8eefba06c32803ef
accel/amdxdna: Add __user to second parameter of aie2_query_status

The second parameter of aie2_query_status() is a userspace pointer.
Declaring it as 'char __user *' to fix sparse warning.

Fixes: 850d71f6bf4c ("accel/amdxdna: Add query functions")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202412311655.YBvq2wJb-lkp@intel.com/
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250102212244.1586340-6-lizhi.hou@amd.com
drivers/accel/amdxdna/aie2_pci.h