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]
Date:   Wed, 17 Jun 2020 23:59:07 +0800
From:   kernel test robot <lkp@...el.com>
To:     Hawking Zhang <Hawking.Zhang@....com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Alex Deucher <alexander.deucher@....com>,
        Huang Rui <ray.huang@....com>
Subject: drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:1568:6: warning: no previous
 prototype for 'gfx_v10_0_rlc_stop'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   69119673bd50b176ded34032fadd41530fb5af21
commit: c6b6a42175f5d36d8e7f85afb8acb6559210641e drm/amdgpu: add navi10 common ip block (v3)
date:   12 months ago
config: ia64-randconfig-r012-20200617 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
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
        git checkout c6b6a42175f5d36d8e7f85afb8acb6559210641e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 

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/gfx_v10_0.c:1568:6: warning: no previous prototype for 'gfx_v10_0_rlc_stop' [-Wmissing-prototypes]
1568 | void gfx_v10_0_rlc_stop(struct amdgpu_device *adev)
|      ^~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:25:
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c: In function 'gfx_v10_0_set_gfx_eop_interrupt_state':
drivers/gpu/drm/amd/amdgpu/amdgpu.h:1027:24: warning: this statement may fall through [-Wimplicit-fallthrough=]
1027 | #define WREG32(reg, v) amdgpu_mm_wreg(adev, (reg), (v), 0)
|                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:4568:3: note: in expansion of macro 'WREG32'
4568 |   WREG32(cp_int_cntl_reg, cp_int_cntl);
|   ^~~~~~
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:4569:2: note: here
4569 |  case AMDGPU_IRQ_STATE_ENABLE:
|  ^~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:53,
from drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:25:
At top level:
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 +/gfx_v10_0_rlc_stop +1568 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c

a644d85a5cd4ef Hawking Zhang 2019-03-04  1567  
a644d85a5cd4ef Hawking Zhang 2019-03-04 @1568  void gfx_v10_0_rlc_stop(struct amdgpu_device *adev)
a644d85a5cd4ef Hawking Zhang 2019-03-04  1569  {
a644d85a5cd4ef Hawking Zhang 2019-03-04  1570  	u32 tmp = RREG32_SOC15(GC, 0, mmRLC_CNTL);
a644d85a5cd4ef Hawking Zhang 2019-03-04  1571  
a644d85a5cd4ef Hawking Zhang 2019-03-04  1572  	tmp = REG_SET_FIELD(tmp, RLC_CNTL, RLC_ENABLE_F32, 0);
a644d85a5cd4ef Hawking Zhang 2019-03-04  1573  	WREG32_SOC15(GC, 0, mmRLC_CNTL, tmp);
a644d85a5cd4ef Hawking Zhang 2019-03-04  1574  
a644d85a5cd4ef Hawking Zhang 2019-03-04  1575  	gfx_v10_0_enable_gui_idle_interrupt(adev, false);
a644d85a5cd4ef Hawking Zhang 2019-03-04  1576  }
a644d85a5cd4ef Hawking Zhang 2019-03-04  1577  

:::::: The code at line 1568 was first introduced by commit
:::::: a644d85a5cd4efbb1eb62751ef8a98a70d9794bc drm/amdgpu: add gfx v10 implementation (v10)

:::::: TO: Hawking Zhang <Hawking.Zhang@....com>
:::::: CC: Alex Deucher <alexander.deucher@....com>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ