]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/amdgpu: fix build failure due to implicit declaration
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Thu, 4 Aug 2022 18:01:46 +0000 (19:01 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 4 Aug 2022 19:29:10 +0000 (12:29 -0700)
commit8d89390ff76658ccdf8da9a3fec92ceefc4b7d1f
tree8a53cc7ea241b0985fa42c949676a476b4e4eff1
parentf76591d36ef5505b6749386a6548d1f457021b49
drm/amd/amdgpu: fix build failure due to implicit declaration

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 <sudipm.mukherjee@gmail.com>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpu/drm/amd/amdgpu/psp_v13_0.c