]> Git Repo - linux.git/commitdiff
drm/amd/amdgpu: fix build failure due to implicit declaration
authorSudip Mukherjee <[email protected]>
Thu, 4 Aug 2022 18:01:46 +0000 (19:01 +0100)
committerLinus Torvalds <[email protected]>
Thu, 4 Aug 2022 19:29:10 +0000 (12:29 -0700)
The builds for alpha and mips allmodconfig fails with the error:

  drivers/gpu/drm/amd/amdgpu/psp_v13_0.c:534:23: error: implicit declaration of function 'vmalloc'; did you mean 'kvmalloc'? [-Werror=implicit-function-declaration]
  drivers/gpu/drm/amd/amdgpu/psp_v13_0.c:534:21: error: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
  drivers/gpu/drm/amd/amdgpu/psp_v13_0.c:545:33: error: implicit declaration of function 'vfree'; did you mean 'kvfree'? [-Werror=implicit-function-declaration]

Add the header file for vmalloc and vfree.

Reported-by: Sudip Mukherjee <[email protected]>
Suggested-by: Linus Torvalds <[email protected]>
Signed-off-by: Sudip Mukherjee <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/gpu/drm/amd/amdgpu/psp_v13_0.c

index 63b2d32545ccdba3f12fffe8701b81345ae14c60..726a5bba40b2023694bafbc5826e4729d6ee6cfa 100644 (file)
@@ -22,6 +22,7 @@
  */
 #include <linux/dev_printk.h>
 #include <drm/drm_drv.h>
+#include <linux/vmalloc.h>
 #include "amdgpu.h"
 #include "amdgpu_psp.h"
 #include "amdgpu_ucode.h"
This page took 0.056123 seconds and 4 git commands to generate.