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: <202207300903.wVzezhrh-lkp@intel.com>
Date:   Sat, 30 Jul 2022 09:41:11 +0800
From:   kernel test robot <lkp@...el.com>
To:     Atish Patra <atishp@...osinc.com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        Atish Patra <Atish.Patra@....com>, linux-kernel@...r.kernel.org
Subject: [atishp04:kvm_perf_rfc_snapshot 25/25]
 arch/riscv/kernel/vdso.c:22:8: error: redefinition of 'vdso_data'

tree:   https://github.com/atishp04/linux kvm_perf_rfc_snapshot
head:   42182a0a79a8768e22fd70232c3aca2bc1a26a43
commit: 42182a0a79a8768e22fd70232c3aca2bc1a26a43 [25/25] RISC-V: PoC for SBI PMU SNAPSHOT
config: riscv-randconfig-r042-20220729 (https://download.01.org/0day-ci/archive/20220730/202207300903.wVzezhrh-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 52cd00cabf479aa7eb6dbb063b7ba41ea57bce9e)
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-riscv-linux-gnu
        # https://github.com/atishp04/linux/commit/42182a0a79a8768e22fd70232c3aca2bc1a26a43
        git remote add atishp04 https://github.com/atishp04/linux
        git fetch --no-tags atishp04 kvm_perf_rfc_snapshot
        git checkout 42182a0a79a8768e22fd70232c3aca2bc1a26a43
        # 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 arch/riscv/kernel/

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

All errors (new ones prefixed by >>):

   In file included from arch/riscv/kernel/vdso.c:17:
   In file included from arch/riscv/include/asm/vdso/vsyscall.h:8:
   In file included from include/vdso/datapage.h:137:
   arch/riscv/include/asm/vdso/gettimeofday.h:21:31: error: use of undeclared identifier '__NR_gettimeofday'
           register long nr asm("a7") = __NR_gettimeofday;
                                        ^
   arch/riscv/include/asm/vdso/gettimeofday.h:37:31: error: use of undeclared identifier '__NR_clock_gettime'
           register long nr asm("a7") = __NR_clock_gettime;
                                        ^
   arch/riscv/include/asm/vdso/gettimeofday.h:53:31: error: use of undeclared identifier '__NR_clock_getres'
           register long nr asm("a7") = __NR_clock_getres;
                                        ^
>> arch/riscv/kernel/vdso.c:22:8: error: redefinition of 'vdso_data'
   struct vdso_data {
          ^
   include/vdso/datapage.h:90:8: note: previous definition is here
   struct vdso_data {
          ^
   4 errors generated.


vim +/vdso_data +22 arch/riscv/kernel/vdso.c

bb4a23c994aebc Tong Tiangen   2021-09-01  18  
0aa2ec8a475fb5 Guo Ren        2021-01-02  19  #ifdef CONFIG_GENERIC_TIME_VSYSCALL
ad5d1122b82fbd Vincent Chen   2020-06-09  20  #include <vdso/datapage.h>
ad5d1122b82fbd Vincent Chen   2020-06-09  21  #else
bb4a23c994aebc Tong Tiangen   2021-09-01 @22  struct vdso_data {
bb4a23c994aebc Tong Tiangen   2021-09-01  23  };
ad5d1122b82fbd Vincent Chen   2020-06-09  24  #endif
76d2a0493a17d4 Palmer Dabbelt 2017-07-10  25  

:::::: The code at line 22 was first introduced by commit
:::::: bb4a23c994aebcd96c567a0be8e964d516bd4a61 riscv/vdso: Refactor asm/vdso.h

:::::: TO: Tong Tiangen <tongtiangen@...wei.com>
:::::: CC: Palmer Dabbelt <palmerdabbelt@...gle.com>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ