Hi Ville, kernel test robot noticed the following build errors: [auto build test ERROR on drm-exynos/exynos-drm-next] [also build test ERROR on linus/master v6.14-rc5] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Ville-Syrjala/drm-client-Build-the-tests-with-CONFIG_DRM_KUNIT_TEST-m/20250303-175715 base: https://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos.git exynos-drm-next patch link: https://lore.kernel.org/r/20250303094808.11860-1-ville.syrjala%40linux.intel.com patch subject: [PATCH] drm/client: Build the tests with CONFIG_DRM_KUNIT_TEST=m config: riscv-randconfig-002-20250303 (https://download.01.org/0day-ci/archive/20250303/202503032114.TQkZ0b7R-lkp@xxxxxxxxx/config) compiler: riscv32-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250303/202503032114.TQkZ0b7R-lkp@xxxxxxxxx/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@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202503032114.TQkZ0b7R-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): riscv32-linux-ld: drivers/gpu/drm/drm_client_modeset.o: in function `drm_client_modeset_test_init': >> drivers/gpu/drm/tests/drm_client_modeset_test.c:59:(.text.drm_client_modeset_test_init+0xa4): undefined reference to `drm_kunit_helper_alloc_device' riscv32-linux-ld: drivers/gpu/drm/drm_client_modeset.o: in function `__drm_kunit_helper_alloc_drm_device': >> include/drm/drm_kunit_helpers.h:63:(.text.drm_client_modeset_test_init+0x198): undefined reference to `__drm_kunit_helper_alloc_drm_device_with_driver' vim +59 drivers/gpu/drm/tests/drm_client_modeset_test.c 8fc0380f6ba7e9 Maxime Ripard 2022-11-14 52 8fc0380f6ba7e9 Maxime Ripard 2022-11-14 53 static int drm_client_modeset_test_init(struct kunit *test) 8fc0380f6ba7e9 Maxime Ripard 2022-11-14 54 { 8fc0380f6ba7e9 Maxime Ripard 2022-11-14 55 struct drm_client_modeset_test_priv *priv; 8fc0380f6ba7e9 Maxime Ripard 2022-11-14 56 int ret; 8fc0380f6ba7e9 Maxime Ripard 2022-11-14 57 8fc0380f6ba7e9 Maxime Ripard 2022-11-14 58 priv = kunit_kzalloc(test, sizeof(*priv), GFP_KERNEL); 8fc0380f6ba7e9 Maxime Ripard 2022-11-14 @59 KUNIT_ASSERT_NOT_NULL(test, priv); 8fc0380f6ba7e9 Maxime Ripard 2022-11-14 60 8fc0380f6ba7e9 Maxime Ripard 2022-11-14 61 test->priv = priv; 8fc0380f6ba7e9 Maxime Ripard 2022-11-14 62 9ecd8045bf64f8 Maxime Ripard 2022-12-01 63 priv->dev = drm_kunit_helper_alloc_device(test); 9ecd8045bf64f8 Maxime Ripard 2022-12-01 64 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, priv->dev); 9ecd8045bf64f8 Maxime Ripard 2022-12-01 65 a9143c5852a7a1 Maxime Ripard 2022-12-01 66 priv->drm = __drm_kunit_helper_alloc_drm_device(test, priv->dev, a9143c5852a7a1 Maxime Ripard 2022-12-01 67 sizeof(*priv->drm), 0, a9143c5852a7a1 Maxime Ripard 2022-12-01 68 DRIVER_MODESET); 8fc0380f6ba7e9 Maxime Ripard 2022-11-14 69 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, priv->drm); 8fc0380f6ba7e9 Maxime Ripard 2022-11-14 70 8fc0380f6ba7e9 Maxime Ripard 2022-11-14 71 ret = drmm_connector_init(priv->drm, &priv->connector, 8fc0380f6ba7e9 Maxime Ripard 2022-11-14 72 &drm_client_modeset_connector_funcs, 8fc0380f6ba7e9 Maxime Ripard 2022-11-14 73 DRM_MODE_CONNECTOR_Unknown, 8fc0380f6ba7e9 Maxime Ripard 2022-11-14 74 NULL); 8fc0380f6ba7e9 Maxime Ripard 2022-11-14 75 KUNIT_ASSERT_EQ(test, ret, 0); 8fc0380f6ba7e9 Maxime Ripard 2022-11-14 76 8fc0380f6ba7e9 Maxime Ripard 2022-11-14 77 drm_connector_helper_add(&priv->connector, &drm_client_modeset_connector_helper_funcs); 8fc0380f6ba7e9 Maxime Ripard 2022-11-14 78 fedcaf726f542b Maxime Ripard 2022-11-17 79 priv->connector.interlace_allowed = true; fedcaf726f542b Maxime Ripard 2022-11-17 80 priv->connector.doublescan_allowed = true; fedcaf726f542b Maxime Ripard 2022-11-17 81 8fc0380f6ba7e9 Maxime Ripard 2022-11-14 82 return 0; 8fc0380f6ba7e9 Maxime Ripard 2022-11-14 83 } 8fc0380f6ba7e9 Maxime Ripard 2022-11-14 84 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki