aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2019-11-28 09:27:14 +0100
committerAlex Deucher <[email protected]>2020-02-06 15:04:38 -0500
commitfa1d7297d09472fc4edd618196aad27281ba2644 (patch)
treeec5e2929189a8bad5f05872947cd24dcc19f876f /tools/perf/scripts/python/bin
parent6d220a7e7971ecabdf713554df44aca5640efb33 (diff)
drm/amd/display: Fix wrongly passed static prefix
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: 62d591a8e00c ("drm/amd/display: create new files for hubbub functions") Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Takashi Iwai <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions