[radeon-alex:drm-next-4.17-wip 284/304] drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/rv_hwmgr.c:1067:34: error: positional initialization of field in 'struct' declared with 'designated_init' attribute

kbuild test robot fengguang.wu at intel.com
Fri Feb 9 18:22:30 UTC 2018


tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-4.17-wip
head:   9778e0d1a858869180a199844c578b199040271b
commit: b5d7df79439443dc493cbad1ccf800b0801fcbb6 [284/304] drm/amd/powerplay: implement set_mmhub_powergating_by_smu for Raven
config: x86_64-randconfig-s5-02092347 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout b5d7df79439443dc493cbad1ccf800b0801fcbb6
        # save the attached .config to linux build tree
        make ARCH=x86_64 

Note: the radeon-alex/drm-next-4.17-wip HEAD 9778e0d1a858869180a199844c578b199040271b builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/rv_hwmgr.c:1067:3: error: 'const struct pp_hwmgr_func' has no member named 'set_mmhub_powergating_by_smu'
     .set_mmhub_powergating_by_smu = rv_set_mmhub_powergating_by_smu,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/rv_hwmgr.c:1067:34: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
     .set_mmhub_powergating_by_smu = rv_set_mmhub_powergating_by_smu,
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/rv_hwmgr.c:1067:34: note: (near initialization for 'rv_hwmgr_funcs')
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/rv_hwmgr.c:1067:34: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/rv_hwmgr.c:1067:34: note: (near initialization for 'rv_hwmgr_funcs.check_smc_update_required_for_display_configuration')
   cc1: some warnings being treated as errors

vim +1067 drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/rv_hwmgr.c

  1033	
  1034	static const struct pp_hwmgr_func rv_hwmgr_funcs = {
  1035		.backend_init = rv_hwmgr_backend_init,
  1036		.backend_fini = rv_hwmgr_backend_fini,
  1037		.asic_setup = NULL,
  1038		.apply_state_adjust_rules = rv_apply_state_adjust_rules,
  1039		.force_dpm_level = rv_dpm_force_dpm_level,
  1040		.get_power_state_size = rv_get_power_state_size,
  1041		.powerdown_uvd = NULL,
  1042		.powergate_uvd = NULL,
  1043		.powergate_vce = NULL,
  1044		.get_mclk = rv_dpm_get_mclk,
  1045		.get_sclk = rv_dpm_get_sclk,
  1046		.patch_boot_state = rv_dpm_patch_boot_state,
  1047		.get_pp_table_entry = rv_dpm_get_pp_table_entry,
  1048		.get_num_of_pp_table_entries = rv_dpm_get_num_of_pp_table_entries,
  1049		.set_cpu_power_state = rv_set_cpu_power_state,
  1050		.store_cc6_data = rv_store_cc6_data,
  1051		.force_clock_level = rv_force_clock_level,
  1052		.print_clock_levels = rv_print_clock_levels,
  1053		.get_dal_power_level = rv_get_dal_power_level,
  1054		.get_performance_level = rv_get_performance_level,
  1055		.get_current_shallow_sleep_clocks = rv_get_current_shallow_sleep_clocks,
  1056		.get_clock_by_type_with_latency = rv_get_clock_by_type_with_latency,
  1057		.get_clock_by_type_with_voltage = rv_get_clock_by_type_with_voltage,
  1058		.get_max_high_clocks = rv_get_max_high_clocks,
  1059		.read_sensor = rv_read_sensor,
  1060		.set_active_display_count = rv_set_active_display_count,
  1061		.set_deep_sleep_dcefclk = rv_set_deep_sleep_dcefclk,
  1062		.dynamic_state_management_enable = rv_enable_dpm_tasks,
  1063		.power_off_asic = rv_power_off_asic,
  1064		.asic_setup = rv_setup_asic_task,
  1065		.power_state_set = rv_set_power_state_tasks,
  1066		.dynamic_state_management_disable = rv_disable_dpm_tasks,
> 1067		.set_mmhub_powergating_by_smu = rv_set_mmhub_powergating_by_smu,
  1068	};
  1069	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 32257 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20180210/645a34a3/attachment-0001.gz>


More information about the dri-devel mailing list