]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/format-helper: fix build
authorMatthew Auld <matthew.auld@intel.com>
Wed, 2 Apr 2025 10:44:31 +0000 (11:44 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 7 Apr 2025 06:45:31 +0000 (08:45 +0200)
commit5024aa7a7660a880046c8b56fefd21e21e729243
tree37896747d089ea999a4107af11b5dc9b6d7dc9e5
parentbc3faba1f96983f0aa9a6b2e800457e7e3b9a051
drm/format-helper: fix build

Build fails with:

error: multiple unsequenced modifications to 'sbuf32'
[-Werror,-Wunsequenced]
  264 |                         le32_to_cpup(sbuf32++),
      |                                            ^
  265 |                         le32_to_cpup(sbuf32++),
      |                                            ~~

With that move the increment of the sbuf32 pointer to the end of the
loop, instead of inside the array list initializer, where the
order/sequence of the sbuf32 pointer modifications is not defined.

Fixes: 58523a25cbf7 ("drm/format-helper: Optimize 32-to-24-bpp conversion")
Fixes: 3f31a017ddbc ("drm/format-helper: Optimize 32-to-16-bpp conversion")
Fixes: 65931bbc5177 ("drm/format-helper: Optimize 32-to-8-bpp conversion")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Jocelyn Falempe <jfalempe@redhat.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://lore.kernel.org/r/20250402104430.142398-2-matthew.auld@intel.com
drivers/gpu/drm/drm_format_helper.c