1. 11 Feb, 2020 30 commits
  2. 07 Feb, 2020 9 commits
  3. 06 Feb, 2020 1 commit
    • Takashi Iwai's avatar
      drm/amd/display: Fix wrongly passed static prefix · fa1d7297
      Takashi Iwai authored
      Currently, gcc spews a warning as:
        drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hubbub.c: In function ‘hubbub1_verify_allow_pstate_change_high’:
        ./include/drm/drm_print.h:316:2: warning: ‘debug_data’ may be used uninitialized in this function [-Wmaybe-uninitialized]
      
      This is because the code checks against a static value although it's
      basically a constant and guaranteed to be set.
      
      This patch changes the type prefix from static to const for addressing
      the compile warning above and also for letting the compiler optimize
      better.
      
      Fixes: 62d591a8 ("drm/amd/display: create new files for hubbub functions")
      Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      fa1d7297