Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp484226rwb; Thu, 22 Sep 2022 02:20:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7rkXuP1rB8xRMTeoqNjvuGLUbHuYse+mcZCPC7PxP2P4bl/s22efen2d5kF7K34bz0qhjW X-Received: by 2002:a17:902:f541:b0:176:e8f1:cd57 with SMTP id h1-20020a170902f54100b00176e8f1cd57mr2369418plf.8.1663838421282; Thu, 22 Sep 2022 02:20:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663838421; cv=none; d=google.com; s=arc-20160816; b=bImscxrRGxLnkMw4voYmpFxpN61QS4oXjJtPN1uRpYMuMvn86t+R2jZh/eAihBOIja PSq4XoKY+BkNo75RzKiWuxoJnLLT98htU9JnB9POl9uTBJvzeOQHC17npgXYGmHJsQv2 O3WC/gK5ktC01htJv6rVS+BSoEXbN80fBt1uzBslp+U6FBrJeosw1oa508uL3JXNDYhW 101Zakm5zWO1NDqNcasNsg814nlpj3yvmA0ZIQlKQj3UOpwZFFRxiLjqVm+fQWhPfpfF RShl3xHaOY08yAjF2OanLiUqGZ15ybCol+sFkbU0n8yJb6+cvfg9GQg6TVn7ippMuLrB f4pQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Nl73mhB1Xlk1k74FvhD1TVhnllH0GfPtpX6K5lB0NTc=; b=xb+0mnxJhWBP3BuvfF12uE0bbjg/T1iuP0/GG0pf5WhqghIzqb/oqrm2fhXLSKS76h faI3Ylze/xbofZrzcvurrBtdyxyRuf2O/KD4PUGHE35x3o4O2IQlpvK7ML0KYr8vPEu7 MU2dXsuvLTS3IFBR9UXI0xQ1ZOiOnDgZnXmlmAeTRQiLCKAKrucuVu9lB90zWrKcvXXf FI50w6Y3/I/5nkaStVYFZXSrrQGlUVtiz5mkXHJv3VLoxnwquuiD6y7UD6ToTRekaE/d SNkDwqiNXN6EYcwRAZlU+K5m4QoOcly3tSteT3Sr2lduPd/BzaaaRWvYVU9Y2082Muaq DpnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GaFRPgCl; 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 n126-20020a632784000000b00439c389fd32si5475304pgn.61.2022.09.22.02.20.10; Thu, 22 Sep 2022 02:20:21 -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=GaFRPgCl; 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 S230175AbiIVIlU (ORCPT + 99 others); Thu, 22 Sep 2022 04:41:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229603AbiIVIlS (ORCPT ); Thu, 22 Sep 2022 04:41:18 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3FCCCDCD7 for ; Thu, 22 Sep 2022 01:41:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663836077; x=1695372077; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=XQUe670CShxlWUDBqu1z+myoybYpLDIoh+28QXjCsow=; b=GaFRPgClEHaWx12EiNUqBVla+crH26D6WAwMMOYbfNsW4RQN+PlPf74E zqngTvVXf45CM+IX32yggx5H+wkPrzum/sao24tnwitLti5H/NGELACBp ofy/+872utR64rcWm+1dNNwtaL8yBhxrO7F+HVxVLI6ytofMSY8uJzi5j Ps6C5bnCbb21kI47wRlBe6F1xBmS95amXoTjrmdaOnQe2UdnbdMSBGiUG dbsU3k+rgKjV4nfnfFBu6ayaKis2VwyD+8Nw0lUroRnCf67rOiVozPCn2 971dk7FVyFja4stMKmAAY+rIlhAkwfFPwhkLmc2CxOsq4Ei78VM0ZvF6r Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10477"; a="362006875" X-IronPort-AV: E=Sophos;i="5.93,335,1654585200"; d="scan'208";a="362006875" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2022 01:41:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,335,1654585200"; d="scan'208";a="652883646" Received: from lkp-server01.sh.intel.com (HELO c0a60f19fe7e) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 22 Sep 2022 01:41:14 -0700 Received: from kbuild by c0a60f19fe7e with local (Exim 4.96) (envelope-from ) id 1obHlh-0004VQ-17; Thu, 22 Sep 2022 08:41:13 +0000 Date: Thu, 22 Sep 2022 16:40:33 +0800 From: kernel test robot To: Binglei Wang , paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, naveen.n.rao@linux.ibm.com, anil.s.keshavamurthy@intel.com, davem@davemloft.net, hiramat@kernel.org Cc: kbuild-all@lists.01.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Binglei Wang Subject: Re: [PATCH] rethook: add riscv rethook implementation. Message-ID: <202209221624.rWsWQbRt-lkp@intel.com> References: <20220922040443.605175-1-l3b2w1@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220922040443.605175-1-l3b2w1@gmail.com> 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 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 Binglei, Thank you for the patch! Yet something to improve: [auto build test ERROR on rostedt-trace/for-next] [also build test ERROR on linus/master v6.0-rc6 next-20220921] [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/Binglei-Wang/rethook-add-riscv-rethook-implementation/20220922-120748 base: https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next config: arc-defconfig (https://download.01.org/0day-ci/archive/20220922/202209221624.rWsWQbRt-lkp@intel.com/config) compiler: arc-elf-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/3f86f610d114317cd7f7a7a1c9116fa0b916667a git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Binglei-Wang/rethook-add-riscv-rethook-implementation/20220922-120748 git checkout 3f86f610d114317cd7f7a7a1c9116fa0b916667a # 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=arc SHELL=/bin/bash 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/arc/kernel/kprobes.c:7: include/linux/kprobes.h: In function 'arch_prepare_kretprobe': include/linux/kprobes.h:225:49: error: 'struct pt_regs' has no member named 'ra'; did you mean 'r0'? 225 | ri->ret_addr = (kprobe_opcode_t *)regs->ra; | ^~ | r0 include/linux/kprobes.h:227:15: error: 'struct pt_regs' has no member named 'ra'; did you mean 'r0'? 227 | regs->ra = (unsigned long) &__kretprobe_trampoline; | ^~ | r0 arch/arc/kernel/kprobes.c: At top level: arch/arc/kernel/kprobes.c:193:15: warning: no previous prototype for 'arc_kprobe_handler' [-Wmissing-prototypes] 193 | int __kprobes arc_kprobe_handler(unsigned long addr, struct pt_regs *regs) | ^~~~~~~~~~~~~~~~~~ >> arch/arc/kernel/kprobes.c:371:16: error: redefinition of 'arch_prepare_kretprobe' 371 | void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/kprobes.h:222:29: note: previous definition of 'arch_prepare_kretprobe' with type 'void(struct kretprobe_instance *, struct pt_regs *)' 222 | static nokprobe_inline void arch_prepare_kretprobe(struct kretprobe_instance *ri, | ^~~~~~~~~~~~~~~~~~~~~~ vim +/arch_prepare_kretprobe +371 arch/arc/kernel/kprobes.c 4d86dfbbda09b3 Vineet Gupta 2013-01-22 370 4d86dfbbda09b3 Vineet Gupta 2013-01-22 @371 void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, 4d86dfbbda09b3 Vineet Gupta 2013-01-22 372 struct pt_regs *regs) 4d86dfbbda09b3 Vineet Gupta 2013-01-22 373 { 4d86dfbbda09b3 Vineet Gupta 2013-01-22 374 4d86dfbbda09b3 Vineet Gupta 2013-01-22 375 ri->ret_addr = (kprobe_opcode_t *) regs->blink; f75dd136b65ccc Masami Hiramatsu 2020-08-29 376 ri->fp = NULL; 4d86dfbbda09b3 Vineet Gupta 2013-01-22 377 4d86dfbbda09b3 Vineet Gupta 2013-01-22 378 /* Replace the return addr with trampoline addr */ adf8a61a940c49 Masami Hiramatsu 2021-09-14 379 regs->blink = (unsigned long)&__kretprobe_trampoline; 4d86dfbbda09b3 Vineet Gupta 2013-01-22 380 } 4d86dfbbda09b3 Vineet Gupta 2013-01-22 381 -- 0-DAY CI Kernel Test Service https://01.org/lkp