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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:   Thu, 30 Sep 2021 10:30:13 +0800
From:   kernel test robot <lkp@...el.com>
To:     Jarkko Sakkinen <jarkko@...nel.org>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org, Borislav Petkov <bp@...e.de>,
        Sean Christopherson <sean.j.christopherson@...el.com>
Subject: [bp:tip-x86-sgx 11/25] arch/x86/kernel/cpu/sgx/encl.h:45:19:
 warning: variable 'encl' set but not used

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/bp/bp.git tip-x86-sgx
head:   56e2d0eff4f8db87cf77d9c8481041878177c680
commit: 4b634f57cac2e1d28cfa0ca961e561362fc3f957 [11/25] x86/sgx: Add an SGX misc driver interface
config: x86_64-randconfig-a014-20210929 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 28981015526f2192440c18f18e8a20cd11b0779c)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/bp/bp.git/commit/?id=4b634f57cac2e1d28cfa0ca961e561362fc3f957
        git remote add bp https://git.kernel.org/pub/scm/linux/kernel/git/bp/bp.git
        git fetch --no-tags bp tip-x86-sgx
        git checkout 4b634f57cac2e1d28cfa0ca961e561362fc3f957
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

   In file included from arch/x86/kernel/cpu/sgx/driver.c:11:
>> arch/x86/kernel/cpu/sgx/encl.h:45:19: warning: variable 'encl' set but not used [-Wunused-but-set-variable]
           struct sgx_encl *encl;
                            ^
   1 warning generated.


vim +/encl +45 arch/x86/kernel/cpu/sgx/encl.h

    40	
    41	static inline int sgx_encl_find(struct mm_struct *mm, unsigned long addr,
    42					struct vm_area_struct **vma)
    43	{
    44		struct vm_area_struct *result;
  > 45		struct sgx_encl *encl;
    46	
    47		result = find_vma(mm, addr);
    48		if (!result || result->vm_ops != &sgx_vm_ops || addr < result->vm_start)
    49			return -EINVAL;
    50	
    51		encl = result->vm_private_data;
    52		*vma = result;
    53	
    54		return 0;
    55	}
    56	

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

Download attachment ".config.gz" of type "application/gzip" (28927 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ