Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: c8cea4371e5e ("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

Lizhi Hou 6380b1ce 7399c13f

+2 -1
+2 -1
drivers/accel/amdxdna/aie2_pci.c
··· 785 785 786 786 static int aie2_hwctx_status_cb(struct amdxdna_hwctx *hwctx, void *arg) 787 787 { 788 - struct amdxdna_drm_query_hwctx __user *buf, *tmp __free(kfree) = NULL; 788 + struct amdxdna_drm_query_hwctx *tmp __free(kfree) = NULL; 789 789 struct amdxdna_drm_get_info *get_info_args = arg; 790 + struct amdxdna_drm_query_hwctx __user *buf; 790 791 791 792 if (get_info_args->buffer_size < sizeof(*tmp)) 792 793 return -EINVAL;