aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorJani Nikula <[email protected]>2022-04-29 14:21:40 +0000
committerJani Nikula <[email protected]>2022-05-02 08:37:10 +0000
commitc140915c00c92e3ca2a4f8e5748f0b9ef3e5a418 (patch)
tree978b47ef082221d3c612b6eafac8b639deddda0e /lib/debugobjects.c
parentMerge tag 'gvt-next-2022-04-29' of https://github.com/intel/gvt-linux into dr... (diff)
downloadkernel-c140915c00c92e3ca2a4f8e5748f0b9ef3e5a418.tar.gz
kernel-c140915c00c92e3ca2a4f8e5748f0b9ef3e5a418.zip
drm/i915: move tons of power well initializers to rodata
Using compound literals for initialization can be tricky. Lacking a const qualifier, they won't end up in rodata, which is probably not expected or intended. Add const to move a whopping 136 initializers to rodata. Compare: $ objdump --syms drivers/gpu/drm/i915/display/intel_display_power_map.o | grep "\.rodata.*__compound_literal" $ objdump --syms drivers/gpu/drm/i915/display/intel_display_power_map.o | grep "\.data.*__compound_literal" Before and after the change. Fixes: c32ffce42aa5 ("drm/i915: Convert the power well descriptor domain mask to an array of domains") Fixes: 4a845ff0c0d4 ("drm/i915: Simplify power well definitions by adding power well instances") Cc: Imre Deak <[email protected]> Cc: Jouni Högander <[email protected]> Signed-off-by: Jani Nikula <[email protected]> Reviewed-by: Imre Deak <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions