summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVitaliy Triang3l Kuzmin <ml@triang3l.ru>2026-05-16 00:48:32 +0300
committerAlex Deucher <alexander.deucher@amd.com>2026-05-19 12:16:16 -0400
commitd093c01d30fc32cb82458731c33fa2a787ff1e7b (patch)
tree06092153d5ff4d84165fc6b2f2879fb47b7b7980 /include
parentb6a28b77b88e776a8cc7739005718e03c4c9be57 (diff)
drm/radeon/evergreen_cs: Add missing NULL prefix check in surface check
'evergreen_surface_check' is called with a NULL warning prefix when handling potentially recoverable issues or just to compute the alignment requirements, and 'evergreen_surface_check' is called again in case of failure (with the correct prefix, as opposed to NULL), therefore, the initial check must not print a warning, because the surface may be accepted successfully after having been corrected, however if it isn't, the final check will print the warning anyway. The surface check functions specific to array modes already implement this behavior, but the 'evergreen_surface_check' function itself doesn't. This is also supposed to fix the "'%s' directive argument is null [-Werror=format-overflow=]" compiler warning. Fixes: 285484e2d55e ("drm/radeon: add support for evergreen/ni tiling informations v11") Reported-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Vitaliy Triang3l Kuzmin <ml@triang3l.ru> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit e20ea411c99f6968af35fd03e9ee21f70d799144)
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions