Hi all,
After merging the drm-misc tree, today's linux-next build (x86_64
allmodconfig) failed like this:
/tmp/next/build/drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c: In function 'drm_test_check_reject_hdr_infoframe_bpc_10':
/tmp/next/build/drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c:2926:49: error: passing argument 6 of 'drm_property_replace_blob_from_id' makes integer from pointer without a cast [-Wint-conversion]
2926 | &replaced);
| ^~~~~~~~~
| |
| bool * {aka _Bool *}
In file included from /tmp/next/build/include/drm/drm_connector.h:33,
from /tmp/next/build/include/drm/drm_modes.h:33,
from /tmp/next/build/include/drm/drm_crtc.h:32,
from /tmp/next/build/include/drm/drm_atomic.h:31,
from /tmp/next/build/drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c:7:
/tmp/next/build/include/drm/drm_property.h:287:47: note: expected 'ssize_t' {aka 'long int'} but argument is of type 'bool *' {aka '_Bool *'}
287 | ssize_t max_size,
| ~~~~~~~~^~~~~~~~
/tmp/next/build/drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c:2922:15: error: too few arguments to function 'drm_property_replace_blob_from_id'
2922 | ret = drm_property_replace_blob_from_id(drm,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/next/build/include/drm/drm_property.h:282:5: note: declared here
282 | int drm_property_replace_blob_from_id(struct drm_device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Caused by commit
7436a87db99d5 (drm/tests: hdmi: check the infoframes behaviour)
interacting with
ca59e33f5a1f6 (drm/atomic: add max_size check to drm_property_replace_blob_from_id())
I have applied a fixup:
From 7e99cf59cfdd75f6815ab3eb0b0d8140878bcd6f Mon Sep 17 00:00:00 2001
From: Mark Brown <broonie@kernel.org>
Date: Mon, 19 Jan 2026 17:27:36 +0000
Subject: [PATCH] drm: Fix up incompatible API change
Signed-off-by: Mark Brown <broonie@kernel.org>
---
drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c b/drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c
index d95786faf1817..dc1bda386387d 100644
--- a/drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c
+++ b/drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c
@@ -2921,7 +2921,7 @@ static void drm_test_check_reject_hdr_infoframe_bpc_10(struct kunit *test)
ret = drm_property_replace_blob_from_id(drm,
&new_conn_state->hdr_output_metadata,
- hdr_blob->base.id,
+ hdr_blob->base.id, -1,
sizeof(struct hdr_output_metadata), -1,
&replaced);
KUNIT_ASSERT_EQ(test, ret, 0);
--
2.47.3
On Mon, Jan 19, 2026 at 05:37:48PM +0000, Mark Brown wrote:
> Hi all,
>
> After merging the drm-misc tree, today's linux-next build (x86_64
> allmodconfig) failed like this:
>
> /tmp/next/build/drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c: In function 'drm_test_check_reject_hdr_infoframe_bpc_10':
> /tmp/next/build/drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c:2926:49: error: passing argument 6 of 'drm_property_replace_blob_from_id' makes integer from pointer without a cast [-Wint-conversion]
> 2926 | &replaced);
> | ^~~~~~~~~
> | |
> | bool * {aka _Bool *}
> In file included from /tmp/next/build/include/drm/drm_connector.h:33,
> from /tmp/next/build/include/drm/drm_modes.h:33,
> from /tmp/next/build/include/drm/drm_crtc.h:32,
> from /tmp/next/build/include/drm/drm_atomic.h:31,
> from /tmp/next/build/drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c:7:
> /tmp/next/build/include/drm/drm_property.h:287:47: note: expected 'ssize_t' {aka 'long int'} but argument is of type 'bool *' {aka '_Bool *'}
> 287 | ssize_t max_size,
> | ~~~~~~~~^~~~~~~~
> /tmp/next/build/drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c:2922:15: error: too few arguments to function 'drm_property_replace_blob_from_id'
> 2922 | ret = drm_property_replace_blob_from_id(drm,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /tmp/next/build/include/drm/drm_property.h:282:5: note: declared here
> 282 | int drm_property_replace_blob_from_id(struct drm_device *dev,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Caused by commit
>
> 7436a87db99d5 (drm/tests: hdmi: check the infoframes behaviour)
>
> interacting with
>
> ca59e33f5a1f6 (drm/atomic: add max_size check to drm_property_replace_blob_from_id())
>
> I have applied a fixup:
This fixup is correct. I've sent a formal patch,
https://lore.kernel.org/all/20260119-fix-kunit-infoframe-v1-1-5f2f9b066594@oss.qualcomm.com/
>
--
With best wishes
Dmitry
© 2016 - 2026 Red Hat, Inc.