]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: include linux/slab.h where needed
authorArnd Bergmann <arnd@arndb.de>
Tue, 10 Dec 2019 19:59:24 +0000 (20:59 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Dec 2019 22:21:50 +0000 (17:21 -0500)
commitba57513b623c1a229b6f18c5872494e65c37470d
tree431fd67bdf160e1d82a9a666396f04903ba85c29
parent0c7df68997d79761fb0bfb3a8cf8670428e1a0bf
drm/amd/display: include linux/slab.h where needed

Calling kzalloc() and related functions requires the
linux/slab.h header to be included:

drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_resource.c: In function 'dcn21_ipp_create':
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_resource.c:679:3: error: implicit declaration of function 'kzalloc'; did you mean 'd_alloc'? [-Werror=implicit-function-declaration]
   kzalloc(sizeof(struct dcn10_ipp), GFP_KERNEL);

A lot of other headers also miss a direct include in this file,
but this is the only one that causes a problem for now.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c