[linux-next:master 7253/8914] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:2720:6: warning: no previous prototype for function 'dc_reset_state'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   f2528c29385819a84480cacef4886b049761e2c5
commit: 97ca308925a50aa80711ccfaf814fa3898374862 [7253/8914] drm/amd/display: Add minimal pipe split transition state
config: riscv-randconfig-r006-20220707 (https://download.01.org/0day-ci/archive/20220709/202207090100.acXdJ79H-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 562c3467a6738aa89203f72fc1d1343e5baadf3c)
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 riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=97ca308925a50aa80711ccfaf814fa3898374862
        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 97ca308925a50aa80711ccfaf814fa3898374862
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:2720:6: warning: no previous prototype for function 'dc_reset_state' [-Wmissing-prototypes]
   void dc_reset_state(struct dc *dc, struct dc_state *context)
        ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:2720:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dc_reset_state(struct dc *dc, struct dc_state *context)
   ^
   static 
   1 warning generated.


vim +/dc_reset_state +2720 drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c

  2719	
> 2720	void dc_reset_state(struct dc *dc, struct dc_state *context)
  2721	{
  2722		dc_resource_state_destruct(context);
  2723	
  2724		/* clear the structure, but don't reset the reference count */
  2725		memset(context, 0, offsetof(struct dc_state, refcount));
  2726	
  2727		init_state(dc, context);
  2728	}
  2729	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp




[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