diff options
| author | Arnd Bergmann <[email protected]> | 2024-12-18 08:58:57 +0000 |
|---|---|---|
| committer | Mario Limonciello <[email protected]> | 2024-12-18 14:14:12 +0000 |
| commit | 221e29e197981e8e5882cdcf230d063598298e2f (patch) | |
| tree | 3eed755c0363fb9db8cd78f82c4070bdc680ec1e /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | drm/panel: simple: add Multi-Inno Technology MI1010Z1T-1CP11 (diff) | |
| download | kernel-221e29e197981e8e5882cdcf230d063598298e2f.tar.gz kernel-221e29e197981e8e5882cdcf230d063598298e2f.zip | |
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: c88d3325ae69 ("accel/amdxdna: Add hardware resource solver")
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Mario Limonciello <[email protected]>
Signed-off-by: Mario Limonciello <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
