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 X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 274B8C433DF for ; Wed, 20 May 2020 02:05:26 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E31902081A for ; Wed, 20 May 2020 02:05:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="tEJcumUO" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E31902081A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 630AE8003E; Tue, 19 May 2020 22:05:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5BA008002C; Tue, 19 May 2020 22:05:24 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4CF8D8003E; Tue, 19 May 2020 22:05:24 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0004.hostedemail.com [216.40.44.4]) by kanga.kvack.org (Postfix) with ESMTP id 32B1D8002C for ; Tue, 19 May 2020 22:05:24 -0400 (EDT) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id F179B8248D7C for ; Wed, 20 May 2020 02:05:23 +0000 (UTC) X-FDA: 76835455326.24.desk87_2f15723fc493d X-HE-Tag: desk87_2f15723fc493d X-Filterd-Recvd-Size: 4695 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf30.hostedemail.com (Postfix) with ESMTP for ; Wed, 20 May 2020 02:05:23 +0000 (UTC) Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4218D207C4; Wed, 20 May 2020 02:05:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589940322; bh=J07K8e4bxMw3Ifcw17dOS6S3xJ9mamPamK7Mzm2gnUA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tEJcumUO1hNnj/cwbR1GyBglhBs4NU4QhGd6LHL0p6mj27MR6KBCdyU9yjSD4CGqr 4UKSNkU0yPA7DmbZ+LsCgY6PMIusNFq7+WjH7gV2cC5qsL72vCbrl1AGPD5lSUud93 n3deb6x/nyYRWGKGzZzq5A1KYv80FYBZmKA8KyC0= Date: Tue, 19 May 2020 19:05:21 -0700 From: Andrew Morton To: kbuild test robot Cc: kbuild-all@lists.01.org, Linux Memory Management List , Johannes Weiner , Vincent Chen , Palmer Dabbelt Subject: Re: [hnaz-linux-mm:master 380/523] arch/riscv/kernel/kgdb.c:47:5: warning: no previous prototype for 'decode_register_index' Message-Id: <20200519190521.d19192c75279e5ca95209bc9@linux-foundation.org> In-Reply-To: <202005191618.9XxheOor%lkp@intel.com> References: <202005191618.9XxheOor%lkp@intel.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: On Tue, 19 May 2020 16:44:22 +0800 kbuild test robot wrote: > Hi Andrew, > > First bad commit (maybe != root cause): > > tree: https://github.com/hnaz/linux-mm master > head: 2bbf0589bfeb27800c730b76eacf34528eee5418 > commit: 91cd0b1b65c463042fdeb4ab5ffcb64ae43179cf [380/523] linux-next-rejects > config: riscv-allyesconfig (attached as .config) > compiler: riscv64-linux-gcc (GCC) 9.3.0 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > git checkout 91cd0b1b65c463042fdeb4ab5ffcb64ae43179cf > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kbuild test robot > > All warnings (new ones prefixed by >>, old ones prefixed by <<): > > >> arch/riscv/kernel/kgdb.c:47:5: warning: no previous prototype for 'decode_register_index' [-Wmissing-prototypes] > 47 | int decode_register_index(unsigned long opcode, int offset) > | ^~~~~~~~~~~~~~~~~~~~~ > >> arch/riscv/kernel/kgdb.c:52:5: warning: no previous prototype for 'decode_register_index_short' [-Wmissing-prototypes] > 52 | int decode_register_index_short(unsigned long opcode, int offset) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > >> arch/riscv/kernel/kgdb.c:58:5: warning: no previous prototype for 'get_step_address' [-Wmissing-prototypes] > 58 | int get_step_address(struct pt_regs *regs, unsigned long *next_addr) > | ^~~~~~~~~~~~~~~~ > >> arch/riscv/kernel/kgdb.c:139:5: warning: no previous prototype for 'do_single_step' [-Wmissing-prototypes] > 139 | int do_single_step(struct pt_regs *regs) > | ^~~~~~~~~~~~~~ > >> arch/riscv/kernel/kgdb.c:276:6: warning: no previous prototype for 'kgdb_arch_handle_qxfer_pkt' [-Wmissing-prototypes] > 276 | void kgdb_arch_handle_qxfer_pkt(char *remcom_in_buffer, > | ^~~~~~~~~~~~~~~~~~~~~~~~~~ > >> arch/riscv/kernel/kgdb.c:323:5: warning: no previous prototype for 'kgdb_riscv_kgdbbreak' [-Wmissing-prototypes] > 323 | int kgdb_riscv_kgdbbreak(unsigned long addr) > | ^~~~~~~~~~~~~~~~~~~~ > In file included from arch/riscv/include/asm/kgdb.h:109, > from include/linux/kgdb.h:20, > from arch/riscv/kernel/kgdb.c:9: > arch/riscv/include/asm/gdb_xml.h:7:19: warning: 'riscv_gdb_stub_feature' defined but not used [-Wunused-const-variable=] > 7 | static const char riscv_gdb_stub_feature[64] = > | ^~~~~~~~~~~~~~~~~~~~~~ I doubt if linux-next-rejects caused this error - all that patch does is fix up a reject between linux-next patches and https://ozlabs.org/~akpm/mmotm/broken-out/riscv-support-debug_wx.patch I'm more suspecting that this error is due Vincent's e4f2aa5808fc9 ("riscv: Add KGDB support") or 899dc734805df ("riscv: Use the XML target descriptions to report 3 system registers").