Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20655040rwd; Thu, 29 Jun 2023 05:29:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Om6UC8lT+IgpxU6yAJtKj13a3U1BMlqD9+VkWdVfyINpNZIEWCLKFTn+3NdJC+/H+H7n3 X-Received: by 2002:a05:6a20:840f:b0:112:5404:88cd with SMTP id c15-20020a056a20840f00b00112540488cdmr33693636pzd.60.1688041741290; Thu, 29 Jun 2023 05:29:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688041741; cv=none; d=google.com; s=arc-20160816; b=Ky/iPbqbz/WSXPOPDw6d+fzSg7DTgzhWrySQfDiNNAbnT8R5RvVbl987Akx9fPG8wB hnv+1koOmO+kKvWFoqItKWKwGD7AFkkevSH+PmIBI+zU97riC1/UWI+g0E8jxjcB7Tht yoAx2BSR6uglOamdLMpt/wqIhr/M2diXnlLGRE1FDPg0Ncm5tDc/ae3HGQZSlB+yU2B4 7AsA32fry52bu++v6v6+NZkdvWNLkxqO4u1DmDw3+WMMSQAz3OH1SiWmkIQiJ3fa1LvD AoyGC1EkzQoa59O8o2BPDEcQKkK1kyKJBNyI4vulnQ9gtOdh4hDX7qgbcgi5y4P2sBhh 8QaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=fnZm8msgPUNhVQfXppaMC8YE5l/343C8YLhPAg85g90=; fh=A0h/wX5I3CN6DEWdKi6jBX+krdsJnXthniD/1iEx46Y=; b=aXYQUbJDoSBpVJrtKzmFmCFEcbNnvTZkbXKlrY3TQfa/lvsyZX/GOVYBb6PZULNg37 59w9fGiYNpkw+7EA+QlyXOLgkCTXk3VL/P5mCrGEMrS8tCNKL1YKcOmYvgMYwbke4iJO SZohjx+FuMwy8spmX7ory7Zp7H7kGHkW9zEYcQEok27wOPsoWS5B4ekYYXbSI6E+B0/h 5MS01jcQMvGlrgomBSdDZ26eLAIePQJfk1knAoWDvIhebwVhzeN8n2lQuaF7CMaiYRFJ Fv7HDCKY5LbtekTvVcP03sEj+Hbxal/wbNbeHuCuMCa+Ow6ZEpsy4lU9nE8cDPJC3RSQ xScg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eOcYqXoT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f3-20020a056a00228300b0066d45f035a5si9913980pfe.320.2023.06.29.05.28.49; Thu, 29 Jun 2023 05:29:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eOcYqXoT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232042AbjF2M1Y (ORCPT + 99 others); Thu, 29 Jun 2023 08:27:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232311AbjF2M06 (ORCPT ); Thu, 29 Jun 2023 08:26:58 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43E973C06 for ; Thu, 29 Jun 2023 05:26:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688041590; x=1719577590; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=0o1PLQFg9YJAxU4F7OxUhopL9W2Htn2NqsUM9AgVd30=; b=eOcYqXoTGUn13rk4b5Q2NGrRZ4nV7w2ALpi5T01cLtQhY0GGCsVsPgXT cPY6xKuOAbRoquPnoA9T+trsuzgn001yWWkSIxjzw2FDUc8uElHEBnv+H R/Q0awqGUA0z0Nu6jMNhlDPFF8c9TtkWBTuon17PoMWzhtB9Gd5CWyoAg Z8YiSse7xAKNeJnxSbt9ppkcSa0edU+Fnau0So++sjxOiJha265Wjm0ZR S2T0DFwkAlt5MKtoe3yYNJVrVjNWeDvI6MpHQ6hgRkRKiP0oJYXZSJRK1 R8xK/ir1sjiPVG0A8XgzmrDgKqR53K7ILzaXfxruZcwSt9WYjrKl/Utru w==; X-IronPort-AV: E=McAfee;i="6600,9927,10755"; a="360941775" X-IronPort-AV: E=Sophos;i="6.01,168,1684825200"; d="scan'208";a="360941775" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jun 2023 05:26:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10755"; a="711397816" X-IronPort-AV: E=Sophos;i="6.01,168,1684825200"; d="scan'208";a="711397816" Received: from lkp-server01.sh.intel.com (HELO 783282924a45) ([10.239.97.150]) by orsmga007.jf.intel.com with ESMTP; 29 Jun 2023 05:26:26 -0700 Received: from kbuild by 783282924a45 with local (Exim 4.96) (envelope-from ) id 1qEqjB-000E8z-1o; Thu, 29 Jun 2023 12:26:25 +0000 Date: Thu, 29 Jun 2023 20:25:31 +0800 From: kernel test robot To: =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org, Andy Chiu Cc: oe-kbuild-all@lists.linux.dev, =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , linux-kernel@vger.kernel.org, linux@rivosinc.com, =?iso-8859-1?Q?R=E9mi?= Denis-Courmont , Darius Rad Subject: Re: [PATCH v3] riscv: Discard vector state on syscalls Message-ID: <202306292011.OGfLGBam-lkp@intel.com> References: <20230629062730.985184-1-bjorn@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230629062730.985184-1-bjorn@kernel.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bj?rn, kernel test robot noticed the following build errors: [auto build test ERROR on 488833ccdcac118da16701f4ee0673b20ba47fe3] url: https://github.com/intel-lab-lkp/linux/commits/Bj-rn-T-pel/riscv-Discard-vector-state-on-syscalls/20230629-142852 base: 488833ccdcac118da16701f4ee0673b20ba47fe3 patch link: https://lore.kernel.org/r/20230629062730.985184-1-bjorn%40kernel.org patch subject: [PATCH v3] riscv: Discard vector state on syscalls config: riscv-allnoconfig (https://download.01.org/0day-ci/archive/20230629/202306292011.OGfLGBam-lkp@intel.com/config) compiler: riscv64-linux-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20230629/202306292011.OGfLGBam-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202306292011.OGfLGBam-lkp@intel.com/ All errors (new ones prefixed by >>): arch/riscv/kernel/traps.c: In function 'do_trap_ecall_u': >> arch/riscv/kernel/traps.c:299:17: error: implicit declaration of function 'riscv_v_vstate_discard'; did you mean 'riscv_v_vstate_restore'? [-Werror=implicit-function-declaration] 299 | riscv_v_vstate_discard(regs); | ^~~~~~~~~~~~~~~~~~~~~~ | riscv_v_vstate_restore cc1: some warnings being treated as errors vim +299 arch/riscv/kernel/traps.c 290 291 asmlinkage __visible __trap_section void do_trap_ecall_u(struct pt_regs *regs) 292 { 293 if (user_mode(regs)) { 294 ulong syscall = regs->a7; 295 296 regs->epc += 4; 297 regs->orig_a0 = regs->a0; 298 > 299 riscv_v_vstate_discard(regs); 300 301 syscall = syscall_enter_from_user_mode(regs, syscall); 302 303 if (syscall < NR_syscalls) 304 syscall_handler(regs, syscall); 305 else 306 regs->a0 = -ENOSYS; 307 308 syscall_exit_to_user_mode(regs); 309 } else { 310 irqentry_state_t state = irqentry_nmi_enter(regs); 311 312 do_trap_error(regs, SIGILL, ILL_ILLTRP, regs->epc, 313 "Oops - environment call from U-mode"); 314 315 irqentry_nmi_exit(regs, state); 316 } 317 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki