Skip to content

Commit 6380b1c

Browse files
committed
accel/amdxdna: Fix incorrect type used for a local variable
drivers/accel/amdxdna/aie2_pci.c:794:13: sparse: sparse: incorrect type in assignment (different address spaces) Fixes: c8cea43 ("accel/amdxdna: Add a function to walk hardware contexts") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202508230855.0b9efFl6-lkp@intel.com/ Reviewed-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Lizhi Hou <lizhi.hou@amd.com> Link: https://lore.kernel.org/r/20250826171951.801585-1-lizhi.hou@amd.com
1 parent 7399c13 commit 6380b1c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/accel/amdxdna/aie2_pci.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,8 +785,9 @@ static int aie2_get_clock_metadata(struct amdxdna_client *client,
785785

786786
static int aie2_hwctx_status_cb(struct amdxdna_hwctx *hwctx, void *arg)
787787
{
788-
struct amdxdna_drm_query_hwctx __user *buf, *tmp __free(kfree) = NULL;
788+
struct amdxdna_drm_query_hwctx *tmp __free(kfree) = NULL;
789789
struct amdxdna_drm_get_info *get_info_args = arg;
790+
struct amdxdna_drm_query_hwctx __user *buf;
790791

791792
if (get_info_args->buffer_size < sizeof(*tmp))
792793
return -EINVAL;

0 commit comments

Comments
 (0)