[Intel-xe] [PATCH] drm/xe: make compound literal initialization const

Lucas De Marchi lucas.demarchi at intel.com
Mon Mar 13 20:46:15 UTC 2023


On Thu, 9 Mar 2023 14:17:46 +0200, Jani Nikula wrote:
> Be careful about having const in the compound literal initialization to
> keep the initializers in rodata. Here, the impact is 1.8k of mutable
> data moved to rodata.
> 
> add/remove: 0/1 grow/shrink: 0/0 up/down: 0/-1804 (-1804)
> Data                                         old     new   delta
> __compound_literal                          1804       -   -1804
> Total: Before=42425, After=40621, chg -4.25%
> add/remove: 0/0 grow/shrink: 1/0 up/down: 1804/0 (1804)
> RO Data                                      old     new   delta
> __compound_literal                          7696    9500   +1804
> Total: Before=138535, After=140339, chg +1.30%
> 
> [...]

Applied, thanks!

[1/1] drm/xe: make compound literal initialization const
      commit: 1528d94b95561c4407c65d5ef5754a988eef42dd

Best regards,
-- 
Lucas De Marchi <lucas.demarchi at intel.com>


More information about the Intel-xe mailing list