mirror-linux/drivers/accel/amdxdna
Su Hui 838c17fd07 accel/amdxdna: Add missing include linux/slab.h
When compiling without CONFIG_IA32_EMULATION, there can be some errors:

drivers/accel/amdxdna/amdxdna_mailbox.c: In function ‘mailbox_release_msg’:
drivers/accel/amdxdna/amdxdna_mailbox.c:197:2: error: implicit declaration
of function ‘kfree’.
  197 |  kfree(mb_msg);
      |  ^~~~~
drivers/accel/amdxdna/amdxdna_mailbox.c: In function ‘xdna_mailbox_send_msg’:
drivers/accel/amdxdna/amdxdna_mailbox.c:418:11: error:implicit declaration
of function ‘kzalloc’.
  418 |  mb_msg = kzalloc(sizeof(*mb_msg) + pkg_size, GFP_KERNEL);
      |           ^~~~~~~

Add the missing include.

Fixes: b87f920b93 ("accel/amdxdna: Support hardware mailbox")
Signed-off-by: Su Hui <suhui@nfschina.com>
Reviewed-by: Lizhi Hou <lizhi.hou@amd.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250211015354.3388171-1-suhui@nfschina.com
2025-02-19 09:42:17 -08:00
..
Kconfig
Makefile accel/amdxdna: Enhance power management settings 2024-12-16 15:50:32 -06:00
TODO accel/amdxdna: Enhance power management settings 2024-12-16 15:50:32 -06:00
aie2_ctx.c accel/amdxdna: Declare force_cmdlist as static 2025-01-03 23:38:16 -06:00
aie2_error.c accel/amdxdna: Add error handling 2024-11-22 11:44:47 -07:00
aie2_message.c accel/amdxdna: Add zero check for pad in ioctl input structures 2024-12-17 12:10:05 -06:00
aie2_msg_priv.h
aie2_pci.c accel/amdxdna: Declare aie2_max_col as static 2025-01-03 23:38:10 -06:00
aie2_pci.h accel/amdxdna: Add __user to second parameter of aie2_query_status 2025-01-03 23:38:19 -06:00
aie2_pm.c accel/amdxdna: Enhance power management settings 2024-12-16 15:50:32 -06:00
aie2_psp.c accel/amdxdna: Add command execution 2024-11-22 11:43:27 -07:00
aie2_smu.c accel/amdxdna: Enhance power management settings 2024-12-16 15:50:32 -06:00
aie2_solver.c accel/amdxdna: include linux/slab.h 2024-12-18 08:14:12 -06:00
aie2_solver.h accel/amdxdna: Enhance power management settings 2024-12-16 15:50:32 -06:00
amdxdna_ctx.c accel/amdxdna: Add zero check for pad in ioctl input structures 2024-12-17 12:10:05 -06:00
amdxdna_ctx.h accel/amdxdna: Add suspend and resume 2024-11-22 11:44:17 -07:00
amdxdna_gem.c accel/amdxdna: Add zero check for pad in ioctl input structures 2024-12-17 12:10:05 -06:00
amdxdna_gem.h accel/amdxdna: Add GEM buffer object management 2024-11-22 11:43:04 -07:00
amdxdna_mailbox.c accel/amdxdna: Add missing include linux/slab.h 2025-02-19 09:42:17 -08:00
amdxdna_mailbox.h accel/amdxdna: Declare mailbox register base as __iomem pointer 2025-01-03 23:38:07 -06:00
amdxdna_mailbox_helper.c accel/amdxdna: Add command execution 2024-11-22 11:43:27 -07:00
amdxdna_mailbox_helper.h
amdxdna_pci_drv.c accel/amdxdna: Add MODULE_FIRMWARE() declarations 2025-02-04 13:05:48 -06:00
amdxdna_pci_drv.h accel/amdxdna: Enhance power management settings 2024-12-16 15:50:32 -06:00
amdxdna_sysfs.c accel/amdxdna: Add command execution 2024-11-22 11:43:27 -07:00
npu1_regs.c accel/amdxdna: Declare npu device profile as static variables 2025-01-03 23:37:52 -06:00
npu2_regs.c accel/amdxdna: Declare npu device profile as static variables 2025-01-03 23:37:52 -06:00
npu4_regs.c accel/amdxdna: Declare npu device profile as static variables 2025-01-03 23:37:52 -06:00
npu5_regs.c accel/amdxdna: Declare npu device profile as static variables 2025-01-03 23:37:52 -06:00
npu6_regs.c accel/amdxdna: Declare npu6_dev_priv as static 2025-01-03 23:38:22 -06:00