[radeon-alex:drm-next 76/94] drivers/gpu/drm/amd/amdgpu/smuio_v9_0.c:38:6: warning: no previous prototype for function 'smuio_v9_0_update_rom_clock_gating'
kernel test robot
lkp at intel.com
Fri Nov 13 09:13:08 UTC 2020
tree: git://people.freedesktop.org/~agd5f/linux.git drm-next
head: d99bd826bd53b4dd02219834e6fff7833c3c1ba0
commit: 09aac699c3992c5ce12e82d3c9d1e4e19e1bd090 [76/94] drm/amdgpu: implement smuio v9_0 callbacks
config: x86_64-randconfig-a005-20201113 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 9e0c35655b6e8186baef8840b26ba4090503b554)
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 remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex drm-next
git checkout 09aac699c3992c5ce12e82d3c9d1e4e19e1bd090
# 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 at intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/amd/amdgpu/smuio_v9_0.c:38:6: warning: no previous prototype for function 'smuio_v9_0_update_rom_clock_gating' [-Wmissing-prototypes]
void smuio_v9_0_update_rom_clock_gating(struct amdgpu_device *adev, bool enable)
^
drivers/gpu/drm/amd/amdgpu/smuio_v9_0.c:38:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void smuio_v9_0_update_rom_clock_gating(struct amdgpu_device *adev, bool enable)
^
static
>> drivers/gpu/drm/amd/amdgpu/smuio_v9_0.c:59:6: warning: no previous prototype for function 'smuio_v9_0_get_clock_gating_state' [-Wmissing-prototypes]
void smuio_v9_0_get_clock_gating_state(struct amdgpu_device *adev, u32 *flags)
^
drivers/gpu/drm/amd/amdgpu/smuio_v9_0.c:59:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void smuio_v9_0_get_clock_gating_state(struct amdgpu_device *adev, u32 *flags)
^
static
2 warnings generated.
vim +/smuio_v9_0_update_rom_clock_gating +38 drivers/gpu/drm/amd/amdgpu/smuio_v9_0.c
37
> 38 void smuio_v9_0_update_rom_clock_gating(struct amdgpu_device *adev, bool enable)
39 {
40 u32 def, data;
41
42 /* enable/disable ROM CG is not supported on APU */
43 if (adev->flags & AMD_IS_APU)
44 return;
45
46 def = data = RREG32_SOC15(SMUIO, 0, mmCGTT_ROM_CLK_CTRL0);
47
48 if (enable && (adev->cg_flags & AMD_CG_SUPPORT_ROM_MGCG))
49 data &= ~(CGTT_ROM_CLK_CTRL0__SOFT_OVERRIDE0_MASK |
50 CGTT_ROM_CLK_CTRL0__SOFT_OVERRIDE1_MASK);
51 else
52 data |= CGTT_ROM_CLK_CTRL0__SOFT_OVERRIDE0_MASK |
53 CGTT_ROM_CLK_CTRL0__SOFT_OVERRIDE1_MASK;
54
55 if (def != data)
56 WREG32_SOC15(SMUIO, 0, mmCGTT_ROM_CLK_CTRL0, data);
57 }
58
> 59 void smuio_v9_0_get_clock_gating_state(struct amdgpu_device *adev, u32 *flags)
60 {
61 u32 data;
62
63 /* CGTT_ROM_CLK_CTRL0 is not availabe for APUs */
64 if (adev->flags & AMD_IS_APU)
65 return;
66
67 data = RREG32_SOC15(SMUIO, 0, mmCGTT_ROM_CLK_CTRL0);
68 if (!(data & CGTT_ROM_CLK_CTRL0__SOFT_OVERRIDE0_MASK))
69 *flags |= AMD_CG_SUPPORT_ROM_MGCG;
70 }
71
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 33095 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20201113/17a4d218/attachment-0001.gz>
More information about the dri-devel
mailing list