Skip to content

Commit 221e29e

Browse files
arndbsuperm1
authored andcommitted
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: c88d332 ("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]
1 parent 958473e commit 221e29e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/accel/amdxdna/aie2_solver.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <drm/drm_print.h>
99
#include <linux/bitops.h>
1010
#include <linux/bitmap.h>
11+
#include <linux/slab.h>
1112

1213
#include "aie2_solver.h"
1314

0 commit comments

Comments
 (0)