[linux-next:master 11672/12657] drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:357:2: warning: initializer overrides prior initialization of this subobject

Started by kernel test robot on Feb 26, 2021

open the first message on its own page

Message details and related content
Hi Rodrigo,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   d01f2f7e35573049673b71e18be7abfe3f80323f
commit: 3bef92ca4240781399cfab1e844061b80b64a96c [11672/12657] drm/amd/display: Add vupdate_no_lock interrupts for DCN2.1
config: x86_64-randconfig-r003-20210225 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project b889ef4214bc6dc8880fdd4badc0dcd9a3197753)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=3bef92ca4240781399cfab1e844061b80b64a96c
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 3bef92ca4240781399cfab1e844061b80b64a96c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <redacted>

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:43:20: warning: no previous prototype for function 'to_dal_irq_source_dcn21' [-Wmissing-prototypes]
   enum dc_irq_source to_dal_irq_source_dcn21(
                      ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:43:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   enum dc_irq_source to_dal_irq_source_dcn21(
   ^
   static 
quoted
drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:357:2: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
           vupdate_no_lock_int_entry(0),
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:242:39: note: expanded from macro 'vupdate_no_lock_int_entry'
           [DC_IRQ_SOURCE_VUPDATE1 + reg_num] = {\
                                                ^~
   drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:351:2: note: previous initialization is here
           vupdate_int_entry(0),
           ^~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:231:39: note: expanded from macro 'vupdate_int_entry'
           [DC_IRQ_SOURCE_VUPDATE1 + reg_num] = {\
                                                ^~
   drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:358:2: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
           vupdate_no_lock_int_entry(1),
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:242:39: note: expanded from macro 'vupdate_no_lock_int_entry'
           [DC_IRQ_SOURCE_VUPDATE1 + reg_num] = {\
                                                ^~
   drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:352:2: note: previous initialization is here
           vupdate_int_entry(1),
           ^~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:231:39: note: expanded from macro 'vupdate_int_entry'
           [DC_IRQ_SOURCE_VUPDATE1 + reg_num] = {\
                                                ^~
   drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:359:2: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
           vupdate_no_lock_int_entry(2),
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:242:39: note: expanded from macro 'vupdate_no_lock_int_entry'
           [DC_IRQ_SOURCE_VUPDATE1 + reg_num] = {\
                                                ^~
   drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:353:2: note: previous initialization is here
           vupdate_int_entry(2),
           ^~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:231:39: note: expanded from macro 'vupdate_int_entry'
           [DC_IRQ_SOURCE_VUPDATE1 + reg_num] = {\
                                                ^~
   drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:360:2: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
           vupdate_no_lock_int_entry(3),
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:242:39: note: expanded from macro 'vupdate_no_lock_int_entry'
           [DC_IRQ_SOURCE_VUPDATE1 + reg_num] = {\
                                                ^~
   drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:354:2: note: previous initialization is here
           vupdate_int_entry(3),
           ^~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:231:39: note: expanded from macro 'vupdate_int_entry'
           [DC_IRQ_SOURCE_VUPDATE1 + reg_num] = {\
                                                ^~
   drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:361:2: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
           vupdate_no_lock_int_entry(4),
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:242:39: note: expanded from macro 'vupdate_no_lock_int_entry'
           [DC_IRQ_SOURCE_VUPDATE1 + reg_num] = {\
                                                ^~
   drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:355:2: note: previous initialization is here
           vupdate_int_entry(4),
           ^~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:231:39: note: expanded from macro 'vupdate_int_entry'
           [DC_IRQ_SOURCE_VUPDATE1 + reg_num] = {\
                                                ^~
   drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:362:2: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
           vupdate_no_lock_int_entry(5),
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:242:39: note: expanded from macro 'vupdate_no_lock_int_entry'
           [DC_IRQ_SOURCE_VUPDATE1 + reg_num] = {\
                                                ^~
   drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:356:2: note: previous initialization is here
           vupdate_int_entry(5),
           ^~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:231:39: note: expanded from macro 'vupdate_int_entry'
           [DC_IRQ_SOURCE_VUPDATE1 + reg_num] = {\
                                                ^~
   7 warnings generated.


vim +357 drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c

   278	
   279	static const struct irq_source_info
   280	irq_source_info_dcn21[DAL_IRQ_SOURCES_NUMBER] = {
   281		[DC_IRQ_SOURCE_INVALID] = dummy_irq_entry(),
   282		hpd_int_entry(0),
   283		hpd_int_entry(1),
   284		hpd_int_entry(2),
   285		hpd_int_entry(3),
   286		hpd_int_entry(4),
   287		hpd_rx_int_entry(0),
   288		hpd_rx_int_entry(1),
   289		hpd_rx_int_entry(2),
   290		hpd_rx_int_entry(3),
   291		hpd_rx_int_entry(4),
   292		i2c_int_entry(1),
   293		i2c_int_entry(2),
   294		i2c_int_entry(3),
   295		i2c_int_entry(4),
   296		i2c_int_entry(5),
   297		i2c_int_entry(6),
   298		dp_sink_int_entry(1),
   299		dp_sink_int_entry(2),
   300		dp_sink_int_entry(3),
   301		dp_sink_int_entry(4),
   302		dp_sink_int_entry(5),
   303		dp_sink_int_entry(6),
   304		[DC_IRQ_SOURCE_TIMER] = dummy_irq_entry(),
   305		pflip_int_entry(0),
   306		pflip_int_entry(1),
   307		pflip_int_entry(2),
   308		pflip_int_entry(3),
   309		[DC_IRQ_SOURCE_PFLIP5] = dummy_irq_entry(),
   310		[DC_IRQ_SOURCE_PFLIP6] = dummy_irq_entry(),
   311		[DC_IRQ_SOURCE_PFLIP_UNDERLAY0] = dummy_irq_entry(),
   312		gpio_pad_int_entry(0),
   313		gpio_pad_int_entry(1),
   314		gpio_pad_int_entry(2),
   315		gpio_pad_int_entry(3),
   316		gpio_pad_int_entry(4),
   317		gpio_pad_int_entry(5),
   318		gpio_pad_int_entry(6),
   319		gpio_pad_int_entry(7),
   320		gpio_pad_int_entry(8),
   321		gpio_pad_int_entry(9),
   322		gpio_pad_int_entry(10),
   323		gpio_pad_int_entry(11),
   324		gpio_pad_int_entry(12),
   325		gpio_pad_int_entry(13),
   326		gpio_pad_int_entry(14),
   327		gpio_pad_int_entry(15),
   328		gpio_pad_int_entry(16),
   329		gpio_pad_int_entry(17),
   330		gpio_pad_int_entry(18),
   331		gpio_pad_int_entry(19),
   332		gpio_pad_int_entry(20),
   333		gpio_pad_int_entry(21),
   334		gpio_pad_int_entry(22),
   335		gpio_pad_int_entry(23),
   336		gpio_pad_int_entry(24),
   337		gpio_pad_int_entry(25),
   338		gpio_pad_int_entry(26),
   339		gpio_pad_int_entry(27),
   340		gpio_pad_int_entry(28),
   341		gpio_pad_int_entry(29),
   342		gpio_pad_int_entry(30),
   343		dc_underflow_int_entry(1),
   344		dc_underflow_int_entry(2),
   345		dc_underflow_int_entry(3),
   346		dc_underflow_int_entry(4),
   347		dc_underflow_int_entry(5),
   348		dc_underflow_int_entry(6),
   349		[DC_IRQ_SOURCE_DMCU_SCP] = dummy_irq_entry(),
   350		[DC_IRQ_SOURCE_VBIOS_SW] = dummy_irq_entry(),
   351		vupdate_int_entry(0),
   352		vupdate_int_entry(1),
   353		vupdate_int_entry(2),
   354		vupdate_int_entry(3),
   355		vupdate_int_entry(4),
   356		vupdate_int_entry(5),
 > 357		vupdate_no_lock_int_entry(0),
   358		vupdate_no_lock_int_entry(1),
   359		vupdate_no_lock_int_entry(2),
   360		vupdate_no_lock_int_entry(3),
   361		vupdate_no_lock_int_entry(4),
   362		vupdate_no_lock_int_entry(5),
   363		vblank_int_entry(0),
   364		vblank_int_entry(1),
   365		vblank_int_entry(2),
   366		vblank_int_entry(3),
   367		vblank_int_entry(4),
   368		vblank_int_entry(5),
   369	};
   370	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help