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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D1A77C61DA4 for ; Wed, 22 Feb 2023 06:56:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=djDh/zuPixdLI3R58Umxt6ZPXQCOwY9rvbvcnYAP82Q=; b=VBzJMG++zc78sJ D4liDAiMOmiIl5ABb0Vuavc1kgwF/enVi8Mzm7PlzpcGyzHfdRX4pEp2uPNwztr/Eah7tJaZSNWM0 1cTgz7BAyfxjefDFSs0QzbrcwRUn/GSuwKDzJkNMrfgDlCsX8C6FbrT/Ty9xo5u4fJ5RapoZx/jBn 0gjAdJvIFT9E3uRTyZccW83SYbNCHpB/82vJkxQZ0donEdxxH+gMjPEO+r0dn/Wt84YveUipgk6Xg i5Xcg222ThVYx0LFSp4be9XrhmNNFJAdI3QG64iHfUR22t8nKXdN6dxNccMyfS0o049ewSkVhTJnj nO+ekqK+IGV6AUGAiaUw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pUj3K-00B0G8-SF; Wed, 22 Feb 2023 06:56:34 +0000 Received: from mga04.intel.com ([192.55.52.120]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pUj3H-00B0FM-Vd for linux-riscv@lists.infradead.org; Wed, 22 Feb 2023 06:56:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677048991; x=1708584991; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=82jIRTqG/oCoc9diigbGRAEiGCekgnVu2ioPgEIZrMQ=; b=X5h2mN37yksm+VNMAWm49wYP5HKm2HAmpN+o5TLhhAouuFKg08KqT6UD gOdDrjjZ/A6lEOlMn7UJUctI6LMOWcc95SGUA0QaTSoJa1tdvjvLWUl97 q03u5YW0rxrBBWWtA5F/RZD8P1ynRPgQoVHUCU+OJEW7NV4Jc7EwzgUVD 8fixW0r7Cyw7tYVZOV7Sy/5e3CkmkQ8Mpspn/R6LadOw2sbrkOuj3/1FR NtNPpOa/EW8TRoLNpLQ7UgzkoVLNRzN5sOkiavLzRx82P+Ey2R+e3SmCh 5JkU2v73FGfQ4uzCFoTyXYHJWA8+0PWFwLV5JpG/i7cQCpZFKtLNDSrCV Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10628"; a="331519486" X-IronPort-AV: E=Sophos;i="5.97,318,1669104000"; d="scan'208";a="331519486" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Feb 2023 22:56:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10628"; a="735771026" X-IronPort-AV: E=Sophos;i="5.97,318,1669104000"; d="scan'208";a="735771026" Received: from lkp-server01.sh.intel.com (HELO 3895f5c55ead) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 21 Feb 2023 22:56:00 -0800 Received: from kbuild by 3895f5c55ead with local (Exim 4.96) (envelope-from ) id 1pUj2l-00005h-2b; Wed, 22 Feb 2023 06:55:59 +0000 Date: Wed, 22 Feb 2023 14:55:47 +0800 From: kernel test robot To: Evan Green , Palmer Dabbelt Cc: oe-kbuild-all@lists.linux.dev, heiko@sntech.de, Conor Dooley , slewis@rivosinc.com, vineetg@rivosinc.com, Evan Green , Albert Ou , Andrew Bresticker , Arnd Bergmann , Celeste Liu , Guo Ren , Jisheng Zhang , Nathan Chancellor , Paul Walmsley , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v3 7/7] RISC-V: Add hwprobe vDSO function and data Message-ID: <202302221419.SOkwfXfm-lkp@intel.com> References: <20230221190858.3159617-8-evan@rivosinc.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230221190858.3159617-8-evan@rivosinc.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230221_225632_074583_9161E0FD X-CRM114-Status: GOOD ( 16.83 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Hi Evan, Thank you for the patch! Yet something to improve: [auto build test ERROR on shuah-kselftest/next] [also build test ERROR on shuah-kselftest/fixes robh/for-next soc/for-next linus/master v6.2] [cannot apply to next-20230222] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Evan-Green/RISC-V-Move-struct-riscv_cpuinfo-to-new-header/20230222-031210 base: https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git next patch link: https://lore.kernel.org/r/20230221190858.3159617-8-evan%40rivosinc.com patch subject: [PATCH v3 7/7] RISC-V: Add hwprobe vDSO function and data config: riscv-rv32_defconfig (https://download.01.org/0day-ci/archive/20230222/202302221419.SOkwfXfm-lkp@intel.com/config) compiler: riscv32-linux-gcc (GCC) 12.1.0 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://github.com/intel-lab-lkp/linux/commit/3f47f3f920ffcb37a461d04a1ee0e245451c869e git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Evan-Green/RISC-V-Move-struct-riscv_cpuinfo-to-new-header/20230222-031210 git checkout 3f47f3f920ffcb37a461d04a1ee0e245451c869e # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv prepare If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202302221419.SOkwfXfm-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/vdso/datapage.h:137, from arch/riscv/kernel/vdso/hwprobe.c:7: arch/riscv/include/asm/vdso/gettimeofday.h: In function 'gettimeofday_fallback': >> arch/riscv/include/asm/vdso/gettimeofday.h:21:38: error: '__NR_gettimeofday' undeclared (first use in this function) 21 | register long nr asm("a7") = __NR_gettimeofday; | ^~~~~~~~~~~~~~~~~ arch/riscv/include/asm/vdso/gettimeofday.h:21:38: note: each undeclared identifier is reported only once for each function it appears in arch/riscv/include/asm/vdso/gettimeofday.h: In function 'clock_gettime_fallback': >> arch/riscv/include/asm/vdso/gettimeofday.h:37:38: error: '__NR_clock_gettime' undeclared (first use in this function) 37 | register long nr asm("a7") = __NR_clock_gettime; | ^~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/vdso/gettimeofday.h: In function 'clock_getres_fallback': >> arch/riscv/include/asm/vdso/gettimeofday.h:53:38: error: '__NR_clock_getres' undeclared (first use in this function) 53 | register long nr asm("a7") = __NR_clock_getres; | ^~~~~~~~~~~~~~~~~ arch/riscv/kernel/vdso/hwprobe.c: At top level: arch/riscv/kernel/vdso/hwprobe.c:14:5: warning: no previous prototype for '__vdso_riscv_hwprobe' [-Wmissing-prototypes] 14 | int __vdso_riscv_hwprobe(struct riscv_hwprobe *pairs, long pair_count, | ^~~~~~~~~~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:252: arch/riscv/kernel/vdso/hwprobe.o] Error 1 make[2]: Target 'include/generated/vdso-offsets.h' not remade because of errors. make[1]: *** [arch/riscv/Makefile:126: vdso_prepare] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:242: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +/__NR_gettimeofday +21 arch/riscv/include/asm/vdso/gettimeofday.h ad5d1122b82fbd6 Vincent Chen 2020-06-09 13 ad5d1122b82fbd6 Vincent Chen 2020-06-09 14 static __always_inline ad5d1122b82fbd6 Vincent Chen 2020-06-09 15 int gettimeofday_fallback(struct __kernel_old_timeval *_tv, ad5d1122b82fbd6 Vincent Chen 2020-06-09 16 struct timezone *_tz) ad5d1122b82fbd6 Vincent Chen 2020-06-09 17 { ad5d1122b82fbd6 Vincent Chen 2020-06-09 18 register struct __kernel_old_timeval *tv asm("a0") = _tv; ad5d1122b82fbd6 Vincent Chen 2020-06-09 19 register struct timezone *tz asm("a1") = _tz; ad5d1122b82fbd6 Vincent Chen 2020-06-09 20 register long ret asm("a0"); ad5d1122b82fbd6 Vincent Chen 2020-06-09 @21 register long nr asm("a7") = __NR_gettimeofday; ad5d1122b82fbd6 Vincent Chen 2020-06-09 22 ad5d1122b82fbd6 Vincent Chen 2020-06-09 23 asm volatile ("ecall\n" ad5d1122b82fbd6 Vincent Chen 2020-06-09 24 : "=r" (ret) ad5d1122b82fbd6 Vincent Chen 2020-06-09 25 : "r"(tv), "r"(tz), "r"(nr) ad5d1122b82fbd6 Vincent Chen 2020-06-09 26 : "memory"); ad5d1122b82fbd6 Vincent Chen 2020-06-09 27 ad5d1122b82fbd6 Vincent Chen 2020-06-09 28 return ret; ad5d1122b82fbd6 Vincent Chen 2020-06-09 29 } ad5d1122b82fbd6 Vincent Chen 2020-06-09 30 ad5d1122b82fbd6 Vincent Chen 2020-06-09 31 static __always_inline ad5d1122b82fbd6 Vincent Chen 2020-06-09 32 long clock_gettime_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) ad5d1122b82fbd6 Vincent Chen 2020-06-09 33 { ad5d1122b82fbd6 Vincent Chen 2020-06-09 34 register clockid_t clkid asm("a0") = _clkid; ad5d1122b82fbd6 Vincent Chen 2020-06-09 35 register struct __kernel_timespec *ts asm("a1") = _ts; ad5d1122b82fbd6 Vincent Chen 2020-06-09 36 register long ret asm("a0"); ad5d1122b82fbd6 Vincent Chen 2020-06-09 @37 register long nr asm("a7") = __NR_clock_gettime; ad5d1122b82fbd6 Vincent Chen 2020-06-09 38 ad5d1122b82fbd6 Vincent Chen 2020-06-09 39 asm volatile ("ecall\n" ad5d1122b82fbd6 Vincent Chen 2020-06-09 40 : "=r" (ret) ad5d1122b82fbd6 Vincent Chen 2020-06-09 41 : "r"(clkid), "r"(ts), "r"(nr) ad5d1122b82fbd6 Vincent Chen 2020-06-09 42 : "memory"); ad5d1122b82fbd6 Vincent Chen 2020-06-09 43 ad5d1122b82fbd6 Vincent Chen 2020-06-09 44 return ret; ad5d1122b82fbd6 Vincent Chen 2020-06-09 45 } ad5d1122b82fbd6 Vincent Chen 2020-06-09 46 ad5d1122b82fbd6 Vincent Chen 2020-06-09 47 static __always_inline ad5d1122b82fbd6 Vincent Chen 2020-06-09 48 int clock_getres_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) ad5d1122b82fbd6 Vincent Chen 2020-06-09 49 { ad5d1122b82fbd6 Vincent Chen 2020-06-09 50 register clockid_t clkid asm("a0") = _clkid; ad5d1122b82fbd6 Vincent Chen 2020-06-09 51 register struct __kernel_timespec *ts asm("a1") = _ts; ad5d1122b82fbd6 Vincent Chen 2020-06-09 52 register long ret asm("a0"); ad5d1122b82fbd6 Vincent Chen 2020-06-09 @53 register long nr asm("a7") = __NR_clock_getres; ad5d1122b82fbd6 Vincent Chen 2020-06-09 54 ad5d1122b82fbd6 Vincent Chen 2020-06-09 55 asm volatile ("ecall\n" ad5d1122b82fbd6 Vincent Chen 2020-06-09 56 : "=r" (ret) ad5d1122b82fbd6 Vincent Chen 2020-06-09 57 : "r"(clkid), "r"(ts), "r"(nr) ad5d1122b82fbd6 Vincent Chen 2020-06-09 58 : "memory"); ad5d1122b82fbd6 Vincent Chen 2020-06-09 59 ad5d1122b82fbd6 Vincent Chen 2020-06-09 60 return ret; ad5d1122b82fbd6 Vincent Chen 2020-06-09 61 } ad5d1122b82fbd6 Vincent Chen 2020-06-09 62 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv