lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202301181911.jxzKcHlV-lkp@intel.com>
Date:   Wed, 18 Jan 2023 19:29:18 +0800
From:   kernel test robot <lkp@...el.com>
To:     "Stanley.Yang" <Stanley.Yang@....com>
Cc:     llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
        linux-kernel@...r.kernel.org,
        Alex Deucher <alexander.deucher@....com>,
        Tao Zhou <tao.zhou1@....com>
Subject: drivers/gpu/drm/amd/amdgpu/umc_v6_7.c:53:24: warning: unused
 function 'get_umc_v6_7_channel_index'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   c1649ec55708ae42091a2f1bca1ab49ecd722d55
commit: 37ff945f804c2d40d030713fc8692e793a81eff8 drm/amdgpu: fix convert bad page retiremt
date:   12 months ago
config: riscv-randconfig-r042-20230117
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 4196ca3278f78c6e19246e54ab0ecb364e37d66a)
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/torvalds/linux.git/commit/?id=37ff945f804c2d40d030713fc8692e793a81eff8
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 37ff945f804c2d40d030713fc8692e793a81eff8
        # 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 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/gpu/drm/amd/amdgpu/

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/umc_v6_7.c:53:24: warning: unused function 'get_umc_v6_7_channel_index' [-Wunused-function]
   static inline uint32_t get_umc_v6_7_channel_index(struct amdgpu_device *adev,
                          ^
   1 warning generated.


vim +/get_umc_v6_7_channel_index +53 drivers/gpu/drm/amd/amdgpu/umc_v6_7.c

878b9e944c566d Hawking Zhang 2021-03-09  52  
8882f90a3fe245 Stanley.Yang  2021-11-16 @53  static inline uint32_t get_umc_v6_7_channel_index(struct amdgpu_device *adev,
8882f90a3fe245 Stanley.Yang  2021-11-16  54  					      uint32_t umc_inst,
8882f90a3fe245 Stanley.Yang  2021-11-16  55  					      uint32_t ch_inst)
8882f90a3fe245 Stanley.Yang  2021-11-16  56  {
8882f90a3fe245 Stanley.Yang  2021-11-16  57  	return adev->umc.channel_idx_tbl[umc_inst * adev->umc.channel_inst_num + ch_inst];
8882f90a3fe245 Stanley.Yang  2021-11-16  58  }
8882f90a3fe245 Stanley.Yang  2021-11-16  59  

:::::: The code at line 53 was first introduced by commit
:::::: 8882f90a3fe2457c8b3f86bbbbef8754f704f5ef drm/amdgpu: add new query interface for umc block v2

:::::: TO: Stanley.Yang <Stanley.Yang@....com>
:::::: CC: Alex Deucher <alexander.deucher@....com>

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

View attachment "config" of type "text/plain" (166723 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ