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  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]
Date:   Sat, 29 Aug 2020 23:27:09 +0800
From:   kernel test robot <lkp@...el.com>
To:     Sung Lee <sung.lee@....com>
Cc:     kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com,
        linux-kernel@...r.kernel.org,
        Alex Deucher <alexander.deucher@....com>,
        Yongqiang Sun <yongqiang.sun@....com>
Subject: drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:97:6:
 warning: no previous prototype for function 'rn_set_low_power_state'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   4d41ead6ead97c3730bbd186a601a64828668f01
commit: d2ce14fd99e91f3de667e5dba5b9affa3e40e725 drm/amd/display: Send DISPLAY_OFF after power down on boot
date:   3 days ago
config: x86_64-randconfig-r014-20200829 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c10e63677f5d20f18010f8f68c631ddc97546f7d)
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
        git checkout d2ce14fd99e91f3de667e5dba5b9affa3e40e725
        # 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 <lkp@...el.com>

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:58:5: warning: no previous prototype for function 'rn_get_active_display_cnt_wa' [-Wmissing-prototypes]
   int rn_get_active_display_cnt_wa(
       ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:58:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int rn_get_active_display_cnt_wa(
   ^
   static 
>> drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:97:6: warning: no previous prototype for function 'rn_set_low_power_state' [-Wmissing-prototypes]
   void rn_set_low_power_state(struct clk_mgr *clk_mgr_base)
        ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:97:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void rn_set_low_power_state(struct clk_mgr *clk_mgr_base)
   ^
   static 
   drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:106:6: warning: no previous prototype for function 'rn_update_clocks' [-Wmissing-prototypes]
   void rn_update_clocks(struct clk_mgr *clk_mgr_base,
        ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:106:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void rn_update_clocks(struct clk_mgr *clk_mgr_base,
   ^
   static 
   drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:388:6: warning: no previous prototype for function 'rn_get_clk_states' [-Wmissing-prototypes]
   void rn_get_clk_states(struct clk_mgr *clk_mgr_base, struct clk_states *s)
        ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:388:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void rn_get_clk_states(struct clk_mgr *clk_mgr_base, struct clk_states *s)
   ^
   static 
   drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:398:6: warning: no previous prototype for function 'rn_enable_pme_wa' [-Wmissing-prototypes]
   void rn_enable_pme_wa(struct clk_mgr *clk_mgr_base)
        ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:398:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void rn_enable_pme_wa(struct clk_mgr *clk_mgr_base)
   ^
   static 
   drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:405:6: warning: no previous prototype for function 'rn_init_clocks' [-Wmissing-prototypes]
   void rn_init_clocks(struct clk_mgr *clk_mgr)
        ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:405:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void rn_init_clocks(struct clk_mgr *clk_mgr)
   ^
   static 
   6 warnings generated.

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d2ce14fd99e91f3de667e5dba5b9affa3e40e725
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout d2ce14fd99e91f3de667e5dba5b9affa3e40e725
vim +/rn_set_low_power_state +97 drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c

    96	
  > 97	void rn_set_low_power_state(struct clk_mgr *clk_mgr_base)
    98	{
    99		struct clk_mgr_internal *clk_mgr = TO_CLK_MGR_INTERNAL(clk_mgr_base);
   100	
   101		rn_vbios_smu_set_dcn_low_power_state(clk_mgr, DCN_PWR_STATE_LOW_POWER);
   102		/* update power state */
   103		clk_mgr_base->clks.pwr_state = DCN_PWR_STATE_LOW_POWER;
   104	}
   105	

---
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" (27883 bytes)

Powered by blists - more mailing lists