* [drm-tip:drm-tip 1415/1442] drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c:2744:16: error: too few arguments to function call, expected 7, have 6
@ 2026-01-19 19:25 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-01-19 19:25 UTC (permalink / raw)
To: Dmitry Baryshkov; +Cc: llvm, oe-kbuild-all, intel-gfx, dri-devel
tree: https://gitlab.freedesktop.org/drm/tip.git drm-tip
head: 1629d3f34f235cd5e43cfd0386a152d65584ccd4
commit: 7436a87db99d57196c49d10de35f41531993d5f1 [1415/1442] drm/tests: hdmi: check the infoframes behaviour
config: i386-randconfig-003-20260119 (https://download.01.org/0day-ci/archive/20260120/202601200306.dgF5deFm-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260120/202601200306.dgF5deFm-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601200306.dgF5deFm-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c:2744:16: error: too few arguments to function call, expected 7, have 6
2740 | ret = drm_property_replace_blob_from_id(drm,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2741 | &new_conn_state->hdr_output_metadata,
2742 | hdr_blob->base.id,
2743 | sizeof(struct hdr_output_metadata), -1,
2744 | &replaced);
| ^
include/drm/drm_property.h:282:5: note: 'drm_property_replace_blob_from_id' declared here
282 | int drm_property_replace_blob_from_id(struct drm_device *dev,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~
283 | struct drm_property_blob **blob,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
284 | uint64_t blob_id,
| ~~~~~~~~~~~~~~~~~
285 | ssize_t expected_size,
| ~~~~~~~~~~~~~~~~~~~~~~
286 | ssize_t expected_elem_size,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
287 | ssize_t max_size,
| ~~~~~~~~~~~~~~~~~
288 | bool *replaced);
| ~~~~~~~~~~~~~~
1 error generated.
vim +2744 drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c
2658
2659 /*
2660 * Test that the rejection of HDR InfoFrame results in the failure of
2661 * drm_atomic_helper_connector_hdmi_update_infoframes() in the high bpc is
2662 * supported.
2663 */
2664 static void drm_test_check_reject_hdr_infoframe_bpc_10(struct kunit *test)
2665 {
2666 struct drm_atomic_helper_connector_hdmi_priv *priv;
2667 struct drm_modeset_acquire_ctx ctx;
2668 struct drm_atomic_state *state;
2669 struct drm_connector_state *new_conn_state;
2670 struct drm_crtc_state *crtc_state;
2671 struct drm_display_mode *preferred;
2672 struct drm_connector *conn;
2673 struct drm_device *drm;
2674 struct drm_crtc *crtc;
2675 int old_hdmi_update_failures;
2676 struct hdr_output_metadata hdr_data;
2677 struct drm_property_blob *hdr_blob;
2678 bool replaced;
2679 int ret;
2680
2681 priv = drm_kunit_helper_connector_hdmi_init_with_edid_funcs(test,
2682 BIT(HDMI_COLORSPACE_RGB),
2683 10,
2684 &reject_hdr_infoframe_hdmi_funcs,
2685 test_edid_hdmi_1080p_rgb_max_200mhz_hdr);
2686 KUNIT_ASSERT_NOT_NULL(test, priv);
2687
2688 drm = &priv->drm;
2689 crtc = priv->crtc;
2690 conn = &priv->connector;
2691
2692 preferred = find_preferred_mode(conn);
2693 KUNIT_ASSERT_NOT_NULL(test, preferred);
2694
2695 drm_modeset_acquire_init(&ctx, 0);
2696
2697 retry_conn_enable:
2698 ret = drm_kunit_helper_enable_crtc_connector(test, drm,
2699 crtc, conn,
2700 preferred,
2701 &ctx);
2702 if (ret == -EDEADLK) {
2703 ret = drm_modeset_backoff(&ctx);
2704 if (!ret)
2705 goto retry_conn_enable;
2706 }
2707 KUNIT_ASSERT_EQ(test, ret, 0);
2708
2709 drm_encoder_helper_add(&priv->encoder, &test_encoder_helper_funcs);
2710
2711 state = drm_kunit_helper_atomic_state_alloc(test, drm, &ctx);
2712 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, state);
2713
2714 retry_conn_state:
2715 new_conn_state = drm_atomic_get_connector_state(state, conn);
2716 if (PTR_ERR(new_conn_state) == -EDEADLK) {
2717 drm_atomic_state_clear(state);
2718 ret = drm_modeset_backoff(&ctx);
2719 if (!ret)
2720 goto retry_conn_state;
2721 }
2722 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, new_conn_state);
2723
2724 crtc_state = drm_atomic_get_crtc_state(state, crtc);
2725 if (PTR_ERR(crtc_state) == -EDEADLK) {
2726 drm_atomic_state_clear(state);
2727 ret = drm_modeset_backoff(&ctx);
2728 if (!ret)
2729 goto retry_conn_state;
2730 }
2731 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, crtc_state);
2732
2733 hdr_data.metadata_type = HDMI_STATIC_METADATA_TYPE1;
2734 hdr_data.hdmi_metadata_type1.eotf = HDMI_EOTF_TRADITIONAL_GAMMA_SDR;
2735 hdr_data.hdmi_metadata_type1.metadata_type = HDMI_STATIC_METADATA_TYPE1;
2736
2737 hdr_blob = drm_property_create_blob(drm, sizeof(hdr_data), &hdr_data);
2738 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, hdr_blob);
2739
2740 ret = drm_property_replace_blob_from_id(drm,
2741 &new_conn_state->hdr_output_metadata,
2742 hdr_blob->base.id,
2743 sizeof(struct hdr_output_metadata), -1,
> 2744 &replaced);
2745 KUNIT_ASSERT_EQ(test, ret, 0);
2746 KUNIT_ASSERT_EQ(test, replaced, true);
2747
2748 crtc_state->mode_changed = true;
2749
2750 old_hdmi_update_failures = priv->hdmi_update_failures;
2751
2752 ret = drm_atomic_check_only(state);
2753 if (ret == -EDEADLK) {
2754 drm_atomic_state_clear(state);
2755 ret = drm_modeset_backoff(&ctx);
2756 if (!ret)
2757 goto retry_conn_state;
2758 }
2759 KUNIT_ASSERT_EQ(test, ret, 0);
2760
2761 ret = drm_atomic_commit(state);
2762 if (ret == -EDEADLK) {
2763 drm_atomic_state_clear(state);
2764 ret = drm_modeset_backoff(&ctx);
2765 if (!ret)
2766 goto retry_conn_state;
2767 }
2768 KUNIT_ASSERT_EQ(test, ret, 0);
2769
2770 KUNIT_EXPECT_LE(test, old_hdmi_update_failures, priv->hdmi_update_failures);
2771
2772 new_conn_state = conn->state;
2773 KUNIT_ASSERT_NOT_NULL(test, new_conn_state);
2774
2775 KUNIT_ASSERT_EQ(test, new_conn_state->hdmi.output_bpc, 10);
2776 KUNIT_ASSERT_EQ(test, new_conn_state->hdmi.infoframes.hdr_drm.set, true);
2777
2778 drm_modeset_drop_locks(&ctx);
2779 drm_modeset_acquire_fini(&ctx);
2780 }
2781
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-01-19 19:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-19 19:25 [drm-tip:drm-tip 1415/1442] drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c:2744:16: error: too few arguments to function call, expected 7, have 6 kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox