Hi Thomas, kernel test robot noticed the following build errors:
[auto build test ERROR on drm-misc/drm-misc-next] [also build test ERROR on linus/master v7.4-rc2 next-20261111] [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/Thomas-Zimmermann/drm-radeon-Inline-drm_crtc_init/20261112-134508 base: https://gitlab.freedesktop.org/drm/misc/kernel.git drm-misc-next patch link: https://lore.kernel.org/r/20261112125039.66082-3-tzimmermann%40suse.de patch subject: [PATCH v2 2/2] drm: Remove drm_crtc_init() config: arc-randconfig-1001-20261112 (https://download.01.org/0day-ci/archive/20261113/[email protected]/config) compiler: arc-linux-gcc (GCC) 12.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261113/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): drivers/gpu/drm/amd/amdgpu/dce_v10_0.c: In function 'dce_v10_0_crtc_init': >> drivers/gpu/drm/amd/amdgpu/dce_v10_0.c:2677:9: error: implicit declaration >> of function 'drm_crtc_init'; did you mean 'drm_exec_init'? >> [-Werror=implicit-function-declaration] 2677 | drm_crtc_init(adev_to_drm(adev), &amdgpu_crtc->base, &dce_v10_0_crtc_funcs); | ^~~~~~~~~~~~~ | drm_exec_init cc1: some warnings being treated as errors -- drivers/gpu/drm/amd/amdgpu/dce_v8_0.c: In function 'dce_v8_0_crtc_init': >> drivers/gpu/drm/amd/amdgpu/dce_v8_0.c:2603:9: error: implicit declaration of >> function 'drm_crtc_init'; did you mean 'drm_exec_init'? >> [-Werror=implicit-function-declaration] 2603 | drm_crtc_init(adev_to_drm(adev), &amdgpu_crtc->base, &dce_v8_0_crtc_funcs); | ^~~~~~~~~~~~~ | drm_exec_init cc1: some warnings being treated as errors -- drivers/gpu/drm/amd/amdgpu/dce_v6_0.c: In function 'dce_v6_0_crtc_init': >> drivers/gpu/drm/amd/amdgpu/dce_v6_0.c:2645:9: error: implicit declaration of >> function 'drm_crtc_init'; did you mean 'drm_exec_init'? >> [-Werror=implicit-function-declaration] 2645 | drm_crtc_init(adev_to_drm(adev), &amdgpu_crtc->base, &dce_v6_0_crtc_funcs); | ^~~~~~~~~~~~~ | drm_exec_init cc1: some warnings being treated as errors vim +2677 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 7e50642d41050c Alex Deucher 2024-10-31 2667 aaa36a976bbb9b Alex Deucher 2015-04-20 2668 static int dce_v10_0_crtc_init(struct amdgpu_device *adev, int index) aaa36a976bbb9b Alex Deucher 2015-04-20 2669 { aaa36a976bbb9b Alex Deucher 2015-04-20 2670 struct amdgpu_crtc *amdgpu_crtc; aaa36a976bbb9b Alex Deucher 2015-04-20 2671 aaa36a976bbb9b Alex Deucher 2015-04-20 2672 amdgpu_crtc = kzalloc(sizeof(struct amdgpu_crtc) + aaa36a976bbb9b Alex Deucher 2015-04-20 2673 (AMDGPUFB_CONN_LIMIT * sizeof(struct drm_connector *)), GFP_KERNEL); aaa36a976bbb9b Alex Deucher 2015-04-20 2674 if (amdgpu_crtc == NULL) aaa36a976bbb9b Alex Deucher 2015-04-20 2675 return -ENOMEM; aaa36a976bbb9b Alex Deucher 2015-04-20 2676 4a580877bdcb83 Luben Tuikov 2020-08-24 @2677 drm_crtc_init(adev_to_drm(adev), &amdgpu_crtc->base, &dce_v10_0_crtc_funcs); aaa36a976bbb9b Alex Deucher 2015-04-20 2678 aaa36a976bbb9b Alex Deucher 2015-04-20 2679 drm_mode_crtc_set_gamma_size(&amdgpu_crtc->base, 256); aaa36a976bbb9b Alex Deucher 2015-04-20 2680 amdgpu_crtc->crtc_id = index; aaa36a976bbb9b Alex Deucher 2015-04-20 2681 adev->mode_info.crtcs[index] = amdgpu_crtc; aaa36a976bbb9b Alex Deucher 2015-04-20 2682 aaa36a976bbb9b Alex Deucher 2015-04-20 2683 amdgpu_crtc->max_cursor_width = 128; aaa36a976bbb9b Alex Deucher 2015-04-20 2684 amdgpu_crtc->max_cursor_height = 128; 4a580877bdcb83 Luben Tuikov 2020-08-24 2685 adev_to_drm(adev)->mode_config.cursor_width = amdgpu_crtc->max_cursor_width; 4a580877bdcb83 Luben Tuikov 2020-08-24 2686 adev_to_drm(adev)->mode_config.cursor_height = amdgpu_crtc->max_cursor_height; aaa36a976bbb9b Alex Deucher 2015-04-20 2687 aaa36a976bbb9b Alex Deucher 2015-04-20 2688 switch (amdgpu_crtc->crtc_id) { aaa36a976bbb9b Alex Deucher 2015-04-20 2689 case 0: aaa36a976bbb9b Alex Deucher 2015-04-20 2690 default: aaa36a976bbb9b Alex Deucher 2015-04-20 2691 amdgpu_crtc->crtc_offset = CRTC0_REGISTER_OFFSET; aaa36a976bbb9b Alex Deucher 2015-04-20 2692 break; aaa36a976bbb9b Alex Deucher 2015-04-20 2693 case 1: aaa36a976bbb9b Alex Deucher 2015-04-20 2694 amdgpu_crtc->crtc_offset = CRTC1_REGISTER_OFFSET; aaa36a976bbb9b Alex Deucher 2015-04-20 2695 break; aaa36a976bbb9b Alex Deucher 2015-04-20 2696 case 2: aaa36a976bbb9b Alex Deucher 2015-04-20 2697 amdgpu_crtc->crtc_offset = CRTC2_REGISTER_OFFSET; aaa36a976bbb9b Alex Deucher 2015-04-20 2698 break; aaa36a976bbb9b Alex Deucher 2015-04-20 2699 case 3: aaa36a976bbb9b Alex Deucher 2015-04-20 2700 amdgpu_crtc->crtc_offset = CRTC3_REGISTER_OFFSET; aaa36a976bbb9b Alex Deucher 2015-04-20 2701 break; aaa36a976bbb9b Alex Deucher 2015-04-20 2702 case 4: aaa36a976bbb9b Alex Deucher 2015-04-20 2703 amdgpu_crtc->crtc_offset = CRTC4_REGISTER_OFFSET; aaa36a976bbb9b Alex Deucher 2015-04-20 2704 break; aaa36a976bbb9b Alex Deucher 2015-04-20 2705 case 5: aaa36a976bbb9b Alex Deucher 2015-04-20 2706 amdgpu_crtc->crtc_offset = CRTC5_REGISTER_OFFSET; aaa36a976bbb9b Alex Deucher 2015-04-20 2707 break; aaa36a976bbb9b Alex Deucher 2015-04-20 2708 } aaa36a976bbb9b Alex Deucher 2015-04-20 2709 aaa36a976bbb9b Alex Deucher 2015-04-20 2710 amdgpu_crtc->pll_id = ATOM_PPLL_INVALID; aaa36a976bbb9b Alex Deucher 2015-04-20 2711 amdgpu_crtc->adjusted_clock = 0; aaa36a976bbb9b Alex Deucher 2015-04-20 2712 amdgpu_crtc->encoder = NULL; aaa36a976bbb9b Alex Deucher 2015-04-20 2713 amdgpu_crtc->connector = NULL; aaa36a976bbb9b Alex Deucher 2015-04-20 2714 drm_crtc_helper_add(&amdgpu_crtc->base, &dce_v10_0_crtc_helper_funcs); 7e50642d41050c Alex Deucher 2024-10-31 2715 drm_plane_helper_add(amdgpu_crtc->base.primary, &dce_v10_0_drm_primary_plane_helper_funcs); aaa36a976bbb9b Alex Deucher 2015-04-20 2716 aaa36a976bbb9b Alex Deucher 2015-04-20 2717 return 0; aaa36a976bbb9b Alex Deucher 2015-04-20 2718 } aaa36a976bbb9b Alex Deucher 2015-04-20 2719 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
