1. 12 12月, 2019 3 次提交
  2. 11 12月, 2019 2 次提交
    • A
      drm/amd/display: include linux/slab.h where needed · 07b67280
      Arnd Bergmann 提交于
      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: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      07b67280
    • A
      drm/amd/display: fix undefined struct member reference · 1f00534a
      Arnd Bergmann 提交于
      An initialization was added for two optional struct members.  One of
      these is always present in the dcn20_resource file, but the other one
      depends on CONFIG_DRM_AMD_DC_DSC_SUPPORT and causes a build failure if
      that is missing:
      
      drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_resource.c:926:14: error: excess elements in struct initializer [-Werror]
         .num_dsc = 5,
      
      Add another #ifdef around the assignment.
      
      Fixes: c3d03c5a ("drm/amd/display: Include num_vmid and num_dsc within NV14's resource caps")
      Reviewed-by: NZhan Liu <zhan.liu@amd.com>
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      1f00534a
  3. 06 12月, 2019 17 次提交
  4. 05 12月, 2019 4 次提交
  5. 04 12月, 2019 14 次提交