]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/tests: Fix endian warning
authorJosé Expósito <jose.exposito89@gmail.com>
Mon, 30 Jun 2025 09:00:53 +0000 (11:00 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 11 Aug 2025 15:24:15 +0000 (17:24 +0200)
commitd28b9d2925b4f773adb21b1fc20260ddc370fb13
treecb3c1c5e0dca4e553938ce22bd2fee3cccc5dd77
parent8d2b0853add1d7534dc0794e3c8e0b9e8c4ec640
drm/tests: Fix endian warning

When compiling with sparse enabled, this warning is thrown:

  warning: incorrect type in argument 2 (different base types)
     expected restricted __le32 const [usertype] *buf
     got unsigned int [usertype] *[assigned] buf

Add a cast to fix it.

Fixes: 453114319699 ("drm/format-helper: Add KUnit tests for drm_fb_xrgb8888_to_xrgb2101010()")
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://lore.kernel.org/r/20250630090054.353246-1-jose.exposito89@gmail.com
drivers/gpu/drm/tests/drm_format_helper_test.c