lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202006172016.ozY75OM2%lkp@intel.com>
Date:   Wed, 17 Jun 2020 20:19:19 +0800
From:   kernel test robot <lkp@...el.com>
To:     Anthony Koo <Anthony.Koo@....com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Alex Deucher <alexander.deucher@....com>,
        Aric Cyr <Aric.Cyr@....com>
Subject: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_init.c:107:20:
 warning: initialized field overwritten

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   69119673bd50b176ded34032fadd41530fb5af21
commit: 78c7738211e027f122ada3f59c2c5e8a83ee3c59 drm/amd/display: cleanup of function pointer tables
date:   7 months ago
config: i386-randconfig-s001-20200617 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-rc1-6-g78f577f8-dirty
        git checkout 78c7738211e027f122ada3f59c2c5e8a83ee3c59
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>, old ones prefixed by <<):

>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_init.c:107:20: warning: initialized field overwritten [-Woverride-init]
107 |  .dsc_pg_control = dcn20_dsc_pg_control,
|                    ^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_init.c:107:20: note: (near initialization for 'dcn20_funcs.dsc_pg_control')
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_init.c:119:6: warning: no previous prototype for 'dcn20_hw_sequencer_construct' [-Wmissing-prototypes]
119 | void dcn20_hw_sequencer_construct(struct dc *dc)
|      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_init.c:26:
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:124:22: warning: 'DP_DVI_CONVERTER_ID_4' defined but not used [-Wunused-const-variable=]
124 | static const uint8_t DP_DVI_CONVERTER_ID_4[] = "m2DVIa";
|                      ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:122:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_3' defined but not used [-Wunused-const-variable=]
122 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_3[] = "dnomlA";
|                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_2' defined but not used [-Wunused-const-variable=]
120 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_2[] = "sivarT";
|                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:34,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_init.c:26:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
|                                ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
|                                ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
|                                ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
|                                ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
|                                ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
|                                ^~~~~~~~~~~~~

vim +107 drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_init.c

    29	
    30	static const struct hw_sequencer_funcs dcn20_funcs = {
    31		.program_gamut_remap = dcn10_program_gamut_remap,
    32		.init_hw = dcn10_init_hw,
    33		.init_pipes = dcn10_init_pipes,
    34		.apply_ctx_to_hw = dce110_apply_ctx_to_hw,
    35		.apply_ctx_for_surface = NULL,
    36		.program_front_end_for_ctx = dcn20_program_front_end_for_ctx,
    37		.update_plane_addr = dcn20_update_plane_addr,
    38		.plane_atomic_disconnect = dcn10_plane_atomic_disconnect,
    39		.update_dchub = dcn10_update_dchub,
    40		.update_mpcc = dcn20_update_mpcc,
    41		.update_pending_status = dcn10_update_pending_status,
    42		.set_input_transfer_func = dcn20_set_input_transfer_func,
    43		.set_output_transfer_func = dcn20_set_output_transfer_func,
    44		.program_output_csc = dcn20_program_output_csc,
    45		.power_down = dce110_power_down,
    46		.enable_accelerated_mode = dce110_enable_accelerated_mode,
    47		.enable_timing_synchronization = dcn10_enable_timing_synchronization,
    48		.enable_per_frame_crtc_position_reset = dcn10_enable_per_frame_crtc_position_reset,
    49		.update_info_frame = dce110_update_info_frame,
    50		.send_immediate_sdp_message = dcn10_send_immediate_sdp_message,
    51		.enable_stream = dcn20_enable_stream,
    52		.disable_stream = dce110_disable_stream,
    53		.unblank_stream = dcn20_unblank_stream,
    54		.blank_stream = dce110_blank_stream,
    55		.enable_audio_stream = dce110_enable_audio_stream,
    56		.disable_audio_stream = dce110_disable_audio_stream,
    57		.enable_display_power_gating = dcn10_dummy_display_power_gating,
    58		.disable_plane = dcn20_disable_plane,
    59		.blank_pixel_data = dcn20_blank_pixel_data,
    60		.pipe_control_lock = dcn20_pipe_control_lock,
    61		.pipe_control_lock_global = dcn20_pipe_control_lock_global,
    62		.prepare_bandwidth = dcn20_prepare_bandwidth,
    63		.optimize_bandwidth = dcn20_optimize_bandwidth,
    64		.update_bandwidth = dcn20_update_bandwidth,
    65		.reset_hw_ctx_wrap = dcn20_reset_hw_ctx_wrap,
    66		.enable_stream_timing = dcn20_enable_stream_timing,
    67		.set_drr = dcn10_set_drr,
    68		.get_position = dcn10_get_position,
    69		.set_static_screen_control = dcn10_set_static_screen_control,
    70		.setup_stereo = dcn10_setup_stereo,
    71		.set_avmute = dce110_set_avmute,
    72		.log_hw_state = dcn10_log_hw_state,
    73		.get_hw_state = dcn10_get_hw_state,
    74		.clear_status_bits = dcn10_clear_status_bits,
    75		.wait_for_mpcc_disconnect = dcn10_wait_for_mpcc_disconnect,
    76		.edp_backlight_control = dce110_edp_backlight_control,
    77		.edp_power_control = dce110_edp_power_control,
    78		.edp_wait_for_hpd_ready = dce110_edp_wait_for_hpd_ready,
    79		.set_cursor_position = dcn10_set_cursor_position,
    80		.set_cursor_attribute = dcn10_set_cursor_attribute,
    81		.set_cursor_sdr_white_level = dcn10_set_cursor_sdr_white_level,
    82		.disable_stream_gating = dcn20_disable_stream_gating,
    83		.enable_stream_gating = dcn20_enable_stream_gating,
    84		.setup_periodic_interrupt = dcn10_setup_periodic_interrupt,
    85		.setup_vupdate_interrupt = dcn20_setup_vupdate_interrupt,
    86		.set_clock = dcn10_set_clock,
    87		.get_clock = dcn10_get_clock,
    88		.did_underflow_occur = dcn10_did_underflow_occur,
    89		.init_blank = dcn20_init_blank,
    90		.disable_vga = dcn20_disable_vga,
    91		.bios_golden_init = dcn10_bios_golden_init,
    92		.plane_atomic_disable = dcn20_plane_atomic_disable,
    93		.plane_atomic_power_down = dcn10_plane_atomic_power_down,
    94		.enable_power_gating_plane = dcn20_enable_power_gating_plane,
    95		.dpp_pg_control = dcn20_dpp_pg_control,
    96		.hubp_pg_control = dcn20_hubp_pg_control,
    97		.dsc_pg_control = NULL,
    98		.program_triplebuffer = dcn20_program_triple_buffer,
    99		.enable_writeback = dcn20_enable_writeback,
   100		.disable_writeback = dcn20_disable_writeback,
   101		.update_odm = dcn20_update_odm,
   102		.dmdata_status_done = dcn20_dmdata_status_done,
   103		.program_dmdata_engine = dcn20_program_dmdata_engine,
   104		.init_sys_ctx = dcn20_init_sys_ctx,
   105		.init_vm_ctx = dcn20_init_vm_ctx,
   106		.set_flip_control_gsl = dcn20_set_flip_control_gsl,
 > 107		.dsc_pg_control = dcn20_dsc_pg_control,
   108		.get_surface_visual_confirm_color = dcn10_get_surface_visual_confirm_color,
   109		.get_hdr_visual_confirm_color = dcn10_get_hdr_visual_confirm_color,
   110		.set_hdr_multiplier = dcn10_set_hdr_multiplier,
   111		.verify_allow_pstate_change_high = dcn10_verify_allow_pstate_change_high,
   112		.wait_for_blank_complete = dcn20_wait_for_blank_complete,
   113		.dccg_init = dcn20_dccg_init,
   114		.set_blend_lut = dcn20_set_blend_lut,
   115		.set_shaper_3dlut = dcn20_set_shaper_3dlut,
   116		.get_vupdate_offset_from_vsync = dcn10_get_vupdate_offset_from_vsync,
   117	};
   118	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (33607 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ