aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorSu Hui <[email protected]>2025-02-11 01:53:55 +0000
committerLizhi Hou <[email protected]>2025-02-19 17:42:17 +0000
commit838c17fd077e611b12c78feb0feee1b30ed09b63 (patch)
tree9fa33625c7066dd0485ed412c16897b149db0637 /net/switchdev/switchdev.c
parentMAINTAINERS: Remove myself (diff)
downloadkernel-838c17fd077e611b12c78feb0feee1b30ed09b63.tar.gz
kernel-838c17fd077e611b12c78feb0feee1b30ed09b63.zip
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: b87f920b9344 ("accel/amdxdna: Support hardware mailbox") Signed-off-by: Su Hui <[email protected]> Reviewed-by: Lizhi Hou <[email protected]> Reviewed-by: Jeffrey Hugo <[email protected]> Signed-off-by: Lizhi Hou <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions