[linux-next:master 5440/5886] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:1638:16: warning: no previous prototype for function 'dpcd_configure_channel_coding'

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

 



Hi Wenjing,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   3e029760e6f8ce90c122c267a039ae73b3f1f5a4
commit: 3df212576e8b6fb94f8e4b856d39853557d22005 [5440/5886] drm/amd/display: add exit training mode and update channel coding in LT
config: powerpc-randconfig-r023-20210528 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 6505c630407c5feec818f0bb1c284f9eeebf2071)
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 powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=3df212576e8b6fb94f8e4b856d39853557d22005
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 3df212576e8b6fb94f8e4b856d39853557d22005
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc 

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/../display/dc/core/dc_link_dp.c:1370:16: warning: no previous prototype for function 'configure_lttpr_mode_transparent' [-Wmissing-prototypes]
   enum dc_status configure_lttpr_mode_transparent(struct dc_link *link)
                  ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:1370:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   enum dc_status configure_lttpr_mode_transparent(struct dc_link *link)
   ^
   static 
   drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:1381:16: warning: no previous prototype for function 'configure_lttpr_mode_non_transparent' [-Wmissing-prototypes]
   enum dc_status configure_lttpr_mode_non_transparent(
                  ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:1381:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   enum dc_status configure_lttpr_mode_non_transparent(
   ^
   static 
>> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:1638:16: warning: no previous prototype for function 'dpcd_configure_channel_coding' [-Wmissing-prototypes]
   enum dc_status dpcd_configure_channel_coding(struct dc_link *link,
                  ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:1638:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   enum dc_status dpcd_configure_channel_coding(struct dc_link *link,
   ^
   static 
   3 warnings generated.


vim +/dpcd_configure_channel_coding +1638 drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c

  1637	
> 1638	enum dc_status dpcd_configure_channel_coding(struct dc_link *link,
  1639			struct link_training_settings *lt_settings)
  1640	{
  1641		enum dp_link_encoding encoding =
  1642				dp_get_link_encoding_format(
  1643						&lt_settings->link_settings);
  1644		enum dc_status status;
  1645	
  1646		status = core_link_write_dpcd(
  1647				link,
  1648				DP_MAIN_LINK_CHANNEL_CODING_SET,
  1649				(uint8_t *) &encoding,
  1650				1);
  1651		DC_LOG_HW_LINK_TRAINING("%s:\n 0x%X MAIN_LINK_CHANNEL_CODING_SET = %x\n",
  1652						__func__,
  1653						DP_MAIN_LINK_CHANNEL_CODING_SET,
  1654						encoding);
  1655	
  1656		return status;
  1657	}
  1658	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux