From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3F19C04A68 for ; Sat, 30 Jul 2022 06:32:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231270AbiG3Gcu (ORCPT ); Sat, 30 Jul 2022 02:32:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229706AbiG3Gcs (ORCPT ); Sat, 30 Jul 2022 02:32:48 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6732B2018F for ; Fri, 29 Jul 2022 23:32:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659162767; x=1690698767; h=date:from:to:cc:subject:message-id:mime-version; bh=G7OZtJYEwW7lknYm40+K0W+Er9UsWRL6hJ0Mvc/VOVU=; b=e+JhBDuzaDK0x2y+bs+RToImhdjfxy8X1cBQEj9TjJcHGVZudxYP7qAm A+mmiSmT6sZat1/31im884eSOuEM8x3Hl5snG5QNVyw+H8oRP5Ed84kIa rZUH0g5oEU7x7SfAemmzG6soXanxDh904CGtA0DD5xBkBHvNWDF+UpnYb jGX8ju8mv6pwoJnrHYM49Q4rBwW/HMTHMNetc5b8tOIAWAMkXNj6/68mN XWcAesVXWyJzB97U2ew56p8DVWhgN5xtE6gy7DK2fbJqSr2jBDVQ8hGHw sM//0JV6D+THdGhqH/sk4stoyxEYh1RHnCFCNV4Og6hUHb9iixQazlwER w==; X-IronPort-AV: E=McAfee;i="6400,9594,10423"; a="290100136" X-IronPort-AV: E=Sophos;i="5.93,203,1654585200"; d="scan'208";a="290100136" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jul 2022 23:32:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,203,1654585200"; d="scan'208";a="669492113" Received: from lkp-server01.sh.intel.com (HELO e0eace57cfef) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 29 Jul 2022 23:32:45 -0700 Received: from kbuild by e0eace57cfef with local (Exim 4.96) (envelope-from ) id 1oHg1k-000CWC-2X; Sat, 30 Jul 2022 06:32:44 +0000 Date: Sat, 30 Jul 2022 14:32:32 +0800 From: kernel test robot To: Atish Patra Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Atish Patra , linux-kernel@vger.kernel.org Subject: [atishp04:kvm_perf_rfc_snapshot 25/25] arch/riscv/kernel/vdso.c:22:8: error: redefinition of 'vdso_data' Message-ID: <202207301403.BxXhQQKp-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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-r021-20220729 (https://download.01.org/0day-ci/archive/20220730/202207301403.BxXhQQKp-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 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 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 :::::: CC: Palmer Dabbelt -- 0-DAY CI Kernel Test Service https://01.org/lkp