linux-next/drivers/accel/amdxdna
Arnd Bergmann 221e29e197 accel/amdxdna: include linux/slab.h
This driver fails to build in random configurations:

drivers/accel/amdxdna/aie2_solver.c: In function 'remove_partition_node':
drivers/accel/amdxdna/aie2_solver.c:121:9: error: implicit declaration of function 'kfree' [-Wimplicit-function-declaration]
  121 |         kfree(pt_node);
      |         ^~~~~
drivers/accel/amdxdna/aie2_solver.c: In function 'get_free_partition':
drivers/accel/amdxdna/aie2_solver.c:153:19: error: implicit declaration of function 'kzalloc' [-Wimplicit-function-declaration]
  153 |         pt_node = kzalloc(sizeof(*pt_node), GFP_KERNEL);

Add the missing include.

Fixes: c88d3325ae ("accel/amdxdna: Add hardware resource solver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241218085902.2684002-1-arnd@kernel.org
2024-12-18 08:14:12 -06:00
..
aie2_ctx.c accel/amdxdna: Add zero check for pad in ioctl input structures 2024-12-17 12:10:05 -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 accel/amdxdna: Support hardware mailbox 2024-11-22 11:41:54 -07:00
aie2_pci.c accel/amdxdna: Read firmware interface version from registers 2024-12-16 15:50:32 -06:00
aie2_pci.h accel/amdxdna: Read firmware interface version from registers 2024-12-16 15:50:32 -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_helper.c accel/amdxdna: Add command execution 2024-11-22 11:43:27 -07:00
amdxdna_mailbox_helper.h accel/amdxdna: Support hardware mailbox 2024-11-22 11:41:54 -07:00
amdxdna_mailbox.c accel/amdxdna: Replace idr api with xarray 2024-12-16 15:50:22 -06:00
amdxdna_mailbox.h accel/amdxdna: Support hardware mailbox 2024-11-22 11:41:54 -07:00
amdxdna_pci_drv.c accel/amdxdna: Enhance power management settings 2024-12-16 15:50:32 -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
Kconfig
Makefile accel/amdxdna: Enhance power management settings 2024-12-16 15:50:32 -06:00
npu1_regs.c accel/amdxdna: Read firmware interface version from registers 2024-12-16 15:50:32 -06:00
npu2_regs.c accel/amdxdna: Read firmware interface version from registers 2024-12-16 15:50:32 -06:00
npu4_regs.c accel/amdxdna: Read firmware interface version from registers 2024-12-16 15:50:32 -06:00
npu5_regs.c accel/amdxdna: Read firmware interface version from registers 2024-12-16 15:50:32 -06:00
npu6_regs.c 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