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: <202210042043.8TYefYlm-lkp@intel.com>
Date:   Tue, 4 Oct 2022 20:56:07 +0800
From:   kernel test robot <lkp@...el.com>
To:     Roman Li <roman.li@....com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org,
        Alex Deucher <alexander.deucher@....com>
Subject: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_resource.c:124:29:
 warning: unused variable 'DCN_BASE'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   725737e7c21d2d25a4312c2aaa82a52bd03e3126
commit: ee7b62e127c8cc6db24f83e5e116357649f6e41f drm/amd/display: Enable DCN314 in DC
date:   3 months ago
config: x86_64-buildonly-randconfig-r005-20221003
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ee7b62e127c8cc6db24f83e5e116357649f6e41f
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout ee7b62e127c8cc6db24f83e5e116357649f6e41f
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/drm/

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

All warnings (new ones prefixed by >>):

           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_hwseq.h:678:28: note: expanded from macro 'HWS_SF'
           .field_name = blk_name ## reg_name ## __ ## field_name ## post_fix
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   <scratch space>:43:1: note: expanded from here
   DOMAIN3_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dcn/dcn_3_1_4_sh_mask.h:10016:111: note: expanded from macro 'DOMAIN3_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK'
   #define DOMAIN3_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK                                                       0xC0000000L
                                                                                                                 ^~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_resource.c:946:3: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
                   HWSEQ_DCN31_MASK_SH_LIST(_MASK)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_resource.c:928:2: note: expanded from macro 'HWSEQ_DCN31_MASK_SH_LIST'
           HWS_SF(, DOMAIN17_PG_STATUS, DOMAIN_PGFSM_PWR_STATUS, mask_sh), \
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_hwseq.h:678:28: note: expanded from macro 'HWS_SF'
           .field_name = blk_name ## reg_name ## __ ## field_name ## post_fix
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   <scratch space>:49:1: note: expanded from here
   DOMAIN17_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dcn/dcn_3_1_4_sh_mask.h:10036:111: note: expanded from macro 'DOMAIN17_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK'
   #define DOMAIN17_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK                                                      0xC0000000L
                                                                                                                 ^~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_resource.c:946:3: note: previous initialization is here
                   HWSEQ_DCN31_MASK_SH_LIST(_MASK)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_resource.c:927:2: note: expanded from macro 'HWSEQ_DCN31_MASK_SH_LIST'
           HWS_SF(, DOMAIN16_PG_STATUS, DOMAIN_PGFSM_PWR_STATUS, mask_sh), \
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_hwseq.h:678:28: note: expanded from macro 'HWS_SF'
           .field_name = blk_name ## reg_name ## __ ## field_name ## post_fix
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   <scratch space>:46:1: note: expanded from here
   DOMAIN16_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dcn/dcn_3_1_4_sh_mask.h:10026:111: note: expanded from macro 'DOMAIN16_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK'
   #define DOMAIN16_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK                                                      0xC0000000L
                                                                                                                 ^~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_resource.c:946:3: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
                   HWSEQ_DCN31_MASK_SH_LIST(_MASK)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_resource.c:929:2: note: expanded from macro 'HWSEQ_DCN31_MASK_SH_LIST'
           HWS_SF(, DOMAIN18_PG_STATUS, DOMAIN_PGFSM_PWR_STATUS, mask_sh), \
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_hwseq.h:678:28: note: expanded from macro 'HWS_SF'
           .field_name = blk_name ## reg_name ## __ ## field_name ## post_fix
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   <scratch space>:52:1: note: expanded from here
   DOMAIN18_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dcn/dcn_3_1_4_sh_mask.h:10046:111: note: expanded from macro 'DOMAIN18_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK'
   #define DOMAIN18_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK                                                      0xC0000000L
                                                                                                                 ^~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_resource.c:946:3: note: previous initialization is here
                   HWSEQ_DCN31_MASK_SH_LIST(_MASK)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_resource.c:928:2: note: expanded from macro 'HWSEQ_DCN31_MASK_SH_LIST'
           HWS_SF(, DOMAIN17_PG_STATUS, DOMAIN_PGFSM_PWR_STATUS, mask_sh), \
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_hwseq.h:678:28: note: expanded from macro 'HWS_SF'
           .field_name = blk_name ## reg_name ## __ ## field_name ## post_fix
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   <scratch space>:49:1: note: expanded from here
   DOMAIN17_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dcn/dcn_3_1_4_sh_mask.h:10036:111: note: expanded from macro 'DOMAIN17_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK'
   #define DOMAIN17_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK                                                      0xC0000000L
                                                                                                                 ^~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_resource.c:946:3: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
                   HWSEQ_DCN31_MASK_SH_LIST(_MASK)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_resource.c:930:2: note: expanded from macro 'HWSEQ_DCN31_MASK_SH_LIST'
           HWS_SF(, DOMAIN19_PG_STATUS, DOMAIN_PGFSM_PWR_STATUS, mask_sh), \
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_hwseq.h:678:28: note: expanded from macro 'HWS_SF'
           .field_name = blk_name ## reg_name ## __ ## field_name ## post_fix
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   <scratch space>:55:1: note: expanded from here
   DOMAIN19_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dcn/dcn_3_1_4_sh_mask.h:10056:111: note: expanded from macro 'DOMAIN19_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK'
   #define DOMAIN19_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK                                                      0xC0000000L
                                                                                                                 ^~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_resource.c:946:3: note: previous initialization is here
                   HWSEQ_DCN31_MASK_SH_LIST(_MASK)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_resource.c:929:2: note: expanded from macro 'HWSEQ_DCN31_MASK_SH_LIST'
           HWS_SF(, DOMAIN18_PG_STATUS, DOMAIN_PGFSM_PWR_STATUS, mask_sh), \
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_hwseq.h:678:28: note: expanded from macro 'HWS_SF'
           .field_name = blk_name ## reg_name ## __ ## field_name ## post_fix
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   <scratch space>:52:1: note: expanded from here
   DOMAIN18_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dcn/dcn_3_1_4_sh_mask.h:10046:111: note: expanded from macro 'DOMAIN18_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK'
   #define DOMAIN18_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK                                                      0xC0000000L
                                                                                                                 ^~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_resource.c:124:29: warning: unused variable 'DCN_BASE' [-Wunused-const-variable]
   static const struct IP_BASE DCN_BASE = { { { { 0x00000012, 0x000000C0, 0x000034C0, 0x00009000, 0x02403C00, 0, 0, 0 } },
                               ^
   107 warnings generated.
--
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_dio_stream_encoder.c:64:6: warning: no previous prototype for function 'enc314_stream_encoder_dvi_set_stream_attribute' [-Wmissing-prototypes]
   void enc314_stream_encoder_dvi_set_stream_attribute(
        ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_dio_stream_encoder.c:64:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void enc314_stream_encoder_dvi_set_stream_attribute(
   ^
   static 
   1 warning generated.
--
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_dccg.c:140:6: warning: no previous prototype for function 'dccg314_set_dtbclk_dto' [-Wmissing-prototypes]
   void dccg314_set_dtbclk_dto(
        ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_dccg.c:140:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dccg314_set_dtbclk_dto(
   ^
   static 
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_dccg.c:184:6: warning: no previous prototype for function 'dccg314_set_dpstreamclk' [-Wmissing-prototypes]
   void dccg314_set_dpstreamclk(
        ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_dccg.c:184:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dccg314_set_dpstreamclk(
   ^
   static 
   2 warnings generated.
--
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_optc.c:153:6: warning: no previous prototype for function 'optc314_phantom_crtc_post_enable' [-Wmissing-prototypes]
   void optc314_phantom_crtc_post_enable(struct timing_generator *optc)
        ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_optc.c:153:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void optc314_phantom_crtc_post_enable(struct timing_generator *optc)
   ^
   static 
   1 warning generated.


vim +/DCN_BASE +124 drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_resource.c

3cffeffe051a96 Roman Li 2022-06-28  123  
3cffeffe051a96 Roman Li 2022-06-28 @124  static const struct IP_BASE DCN_BASE = { { { { 0x00000012, 0x000000C0, 0x000034C0, 0x00009000, 0x02403C00, 0, 0, 0 } },
3cffeffe051a96 Roman Li 2022-06-28  125  					{ { 0, 0, 0, 0, 0, 0, 0, 0 } },
3cffeffe051a96 Roman Li 2022-06-28  126  					{ { 0, 0, 0, 0, 0, 0, 0, 0 } },
3cffeffe051a96 Roman Li 2022-06-28  127  					{ { 0, 0, 0, 0, 0, 0, 0, 0 } },
3cffeffe051a96 Roman Li 2022-06-28  128  					{ { 0, 0, 0, 0, 0, 0, 0, 0 } },
3cffeffe051a96 Roman Li 2022-06-28  129  					{ { 0, 0, 0, 0, 0, 0, 0, 0 } },
3cffeffe051a96 Roman Li 2022-06-28  130  					{ { 0, 0, 0, 0, 0, 0, 0, 0 } } } };
3cffeffe051a96 Roman Li 2022-06-28  131  
3cffeffe051a96 Roman Li 2022-06-28  132  

:::::: The code at line 124 was first introduced by commit
:::::: 3cffeffe051a961417bc26f2053bced4cff83119 drm/amd/display: Add DCN314 DC resources

:::::: TO: Roman Li <roman.li@....com>
:::::: CC: Alex Deucher <alexander.deucher@....com>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (200408 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ