[radeon-alex:drm-next 77/94] drivers/gpu/drm/amd/amdgpu/smuio_v11_0.c:38:6: warning: no previous prototype for function 'smuio_v11_0_update_rom_clock_gating'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next
head:   d99bd826bd53b4dd02219834e6fff7833c3c1ba0
commit: d1ffa512c635d5df81e18f2686b5e5060ca03f18 [77/94] drm/amdgpu: implement smuio v11_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 d1ffa512c635d5df81e18f2686b5e5060ca03f18
        # 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@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/smuio_v11_0.c:38:6: warning: no previous prototype for function 'smuio_v11_0_update_rom_clock_gating' [-Wmissing-prototypes]
   void smuio_v11_0_update_rom_clock_gating(struct amdgpu_device *adev, bool enable)
        ^
   drivers/gpu/drm/amd/amdgpu/smuio_v11_0.c:38:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void smuio_v11_0_update_rom_clock_gating(struct amdgpu_device *adev, bool enable)
   ^
   static 
>> drivers/gpu/drm/amd/amdgpu/smuio_v11_0.c:59:6: warning: no previous prototype for function 'smuio_v11_0_get_clock_gating_state' [-Wmissing-prototypes]
   void smuio_v11_0_get_clock_gating_state(struct amdgpu_device *adev, u32 *flags)
        ^
   drivers/gpu/drm/amd/amdgpu/smuio_v11_0.c:59:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void smuio_v11_0_get_clock_gating_state(struct amdgpu_device *adev, u32 *flags)
   ^
   static 
   2 warnings generated.

vim +/smuio_v11_0_update_rom_clock_gating +38 drivers/gpu/drm/amd/amdgpu/smuio_v11_0.c

    37	
  > 38	void smuio_v11_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_v11_0_get_clock_gating_state(struct amdgpu_device *adev, u32 *flags)
    60	{
    61		u32 data;
    62	
    63		/* CGTT_ROM_CLK_CTRL0 is not available for APU */
    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@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux