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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B616C433F5 for ; Thu, 28 Oct 2021 19:58:49 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B8FC0610EA for ; Thu, 28 Oct 2021 19:58:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B8FC0610EA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=iogearbox.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id C42966B0071; Thu, 28 Oct 2021 15:58:47 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BF1DA6B0072; Thu, 28 Oct 2021 15:58:47 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ADFC36B0073; Thu, 28 Oct 2021 15:58:47 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0195.hostedemail.com [216.40.44.195]) by kanga.kvack.org (Postfix) with ESMTP id 839286B0071 for ; Thu, 28 Oct 2021 15:58:47 -0400 (EDT) Received: from smtpin08.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 0C7C639F2A for ; Thu, 28 Oct 2021 19:58:47 +0000 (UTC) X-FDA: 78746909094.08.A2ECEC7 Received: from www62.your-server.de (www62.your-server.de [213.133.104.62]) by imf22.hostedemail.com (Postfix) with ESMTP id 6CC211901 for ; Thu, 28 Oct 2021 19:58:46 +0000 (UTC) Received: from sslproxy01.your-server.de ([78.46.139.224]) by www62.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1mgBXc-0001Ta-Ik; Thu, 28 Oct 2021 21:58:24 +0200 Received: from [85.1.206.226] (helo=linux.home) by sslproxy01.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mgBXc-000TSU-AP; Thu, 28 Oct 2021 21:58:24 +0200 Subject: Re: [linux-next:master 11855/12471] arch/riscv/net/bpf_jit_comp64.c:462:5: warning: no previous prototype for function 'rv_bpf_fixup_exception' To: kernel test robot , Tong Tiangen Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Linux Memory Management List , bjorn@kernel.org References: <202110290334.2zdMyRq4-lkp@intel.com> From: Daniel Borkmann Message-ID: <0d291bf9-af19-9658-8b58-0ec814dba6d6@iogearbox.net> Date: Thu, 28 Oct 2021 21:58:23 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <202110290334.2zdMyRq4-lkp@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.103.3/26336/Thu Oct 28 10:21:55 2021) X-Rspamd-Queue-Id: 6CC211901 Authentication-Results: imf22.hostedemail.com; dkim=none; spf=pass (imf22.hostedemail.com: domain of daniel@iogearbox.net designates 213.133.104.62 as permitted sender) smtp.mailfrom=daniel@iogearbox.net; dmarc=none X-Stat-Signature: kt75h3cnxg4nuoxnggz1egwaohprnwf9 X-Rspamd-Server: rspam06 X-HE-Tag: 1635451126-150067 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: [ +Bjorn ] On 10/28/21 9:45 PM, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > head: 503f375baa99edff894eb1a534d2ac0b4f799573 > commit: 252c765bd764a246a8bd516fabf6d6123df4a24f [11855/12471] riscv, bpf: Add BPF exception tables > config: riscv-randconfig-r042-20211028 (attached as .config) > compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5db7568a6a1fcb408eb8988abdaff2a225a8eb72) > 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-riscv64-linux-gnu > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=252c765bd764a246a8bd516fabf6d6123df4a24f > git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > git fetch --no-tags linux-next master > git checkout 252c765bd764a246a8bd516fabf6d6123df4a24f > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All warnings (new ones prefixed by >>): > >>> arch/riscv/net/bpf_jit_comp64.c:462:5: warning: no previous prototype for function 'rv_bpf_fixup_exception' [-Wmissing-prototypes] > int rv_bpf_fixup_exception(const struct exception_table_entry *ex, > ^ > arch/riscv/net/bpf_jit_comp64.c:462:1: note: declare 'static' if the function is not intended to be used outside of this translation unit > int rv_bpf_fixup_exception(const struct exception_table_entry *ex, > ^ > static > 1 warning generated. Tong, Bjorn, ptal > vim +/rv_bpf_fixup_exception +462 arch/riscv/net/bpf_jit_comp64.c > > 461 > > 462 int rv_bpf_fixup_exception(const struct exception_table_entry *ex, > 463 struct pt_regs *regs) > 464 { > 465 off_t offset = FIELD_GET(BPF_FIXUP_OFFSET_MASK, ex->fixup); > 466 int regs_offset = FIELD_GET(BPF_FIXUP_REG_MASK, ex->fixup); > 467 > 468 *(unsigned long *)((void *)regs + pt_regmap[regs_offset]) = 0; > 469 regs->epc = (unsigned long)&ex->fixup - offset; > 470 > 471 return 1; > 472 } > 473 > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org >