]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:31:11 +0000 (16:31 +0200)
commit8b9c53f8edd4a877923b4ff6f80677733c7a3b61
treedff8b82dadb0e1570045905eb98e0ec86607cb83
parent7a60c21384c881cee33e12e9e93a6eb4bf1e5ba6
drm/tests: Fix endian warning

[ Upstream commit d28b9d2925b4f773adb21b1fc20260ddc370fb13 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/tests/drm_format_helper_test.c