[linux-next:master 12531/13075] drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.c:184:19: warning: variable 'dmub' set but not used

[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:   3cdbc01c40e34c57697f8934f2727a88551696be
commit: 499e4b1c722e0e2ca40c56342b766e95f6c31f4a [12531/13075] drm/amd/display: add mechanism to skip DCN init
config: arm64-randconfig-r036-20230416 (https://download.01.org/0day-ci/archive/20230420/202304201027.2upm4i0C-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 437b7602e4a998220871de78afcb020b9c14a661)
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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=499e4b1c722e0e2ca40c56342b766e95f6c31f4a
        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 499e4b1c722e0e2ca40c56342b766e95f6c31f4a
        # 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=arm64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/gpu/drm/amd/amdgpu/ drivers/gpu/drm/amd/display/dc/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Link: https://lore.kernel.org/oe-kbuild-all/202304201027.2upm4i0C-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.c:184:19: warning: variable 'dmub' set but not used [-Wunused-but-set-variable]
           struct dmub_srv *dmub;
                            ^
   1 warning generated.


vim +/dmub +184 drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.c

   181	
   182	bool dc_dmub_srv_optimized_init_done(struct dc_dmub_srv *dc_dmub_srv)
   183	{
 > 184		struct dmub_srv *dmub;
   185		union dmub_fw_boot_status status;
   186	
   187		if (!dc_dmub_srv || !dc_dmub_srv->dmub)
   188			return false;
   189	
   190		dmub = dc_dmub_srv->dmub;
   191	
   192		return status.bits.optimized_init_done;
   193	}
   194	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests




[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