]> www.infradead.org Git - users/jedix/linux-maple.git/commit
accel/amdxdna: Declare mailbox register base as __iomem pointer
authorLizhi Hou <lizhi.hou@amd.com>
Thu, 2 Jan 2025 21:22:39 +0000 (13:22 -0800)
committerMario Limonciello <mario.limonciello@amd.com>
Sat, 4 Jan 2025 05:38:07 +0000 (23:38 -0600)
commit3c8cfec3fcc4fe53f2bd87ec91ef31df4fa6dc0d
treeac844e79536fd7daa13312fd284979bd64618838
parent71486e48370e8902e0816bba8b51a22871e5e653
accel/amdxdna: Declare mailbox register base as __iomem pointer

Declare mailbox ringbuf_base and mbox_base as 'void __iomem *' to fix
sparse warnings:
  cast removes address space '__iomem' of expression
  incorrect type in argument 2 (different address spaces)

Fixes: b87f920b9344 ("accel/amdxdna: Support hardware mailbox")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202412310857.syD1sXXO-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-2-lizhi.hou@amd.com
drivers/accel/amdxdna/aie2_pci.c
drivers/accel/amdxdna/amdxdna_mailbox.c
drivers/accel/amdxdna/amdxdna_mailbox.h