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=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 C8C75C433DF for ; Wed, 20 May 2020 09:00:52 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 617562075F for ; Wed, 20 May 2020 09:00:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="US8gTFSN" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 617562075F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id AC5F480007; Wed, 20 May 2020 05:00:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A9CF8900002; Wed, 20 May 2020 05:00:51 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9DA4580007; Wed, 20 May 2020 05:00:51 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0199.hostedemail.com [216.40.44.199]) by kanga.kvack.org (Postfix) with ESMTP id 87C57900002 for ; Wed, 20 May 2020 05:00:51 -0400 (EDT) Received: from smtpin05.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 4840C180AD81A for ; Wed, 20 May 2020 09:00:51 +0000 (UTC) X-FDA: 76836502302.05.floor79_2482d59313616 X-HE-Tag: floor79_2482d59313616 X-Filterd-Recvd-Size: 6580 Received: from mail-qt1-f195.google.com (mail-qt1-f195.google.com [209.85.160.195]) by imf10.hostedemail.com (Postfix) with ESMTP for ; Wed, 20 May 2020 09:00:50 +0000 (UTC) Received: by mail-qt1-f195.google.com with SMTP id c24so1939048qtw.7 for ; Wed, 20 May 2020 02:00:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dMRTcDlKRh0oOiWcNgn3eD5OFlnBAI9lziMiJjJcreY=; b=US8gTFSNJJ4Aib9oQ/dpuUkaamA6ITqTI0xAx2AhUYzoje6uuiUyn1kW7UnBkRXT0H vx21XR/o0Ki1f86xJV/e0DBoMS62pBxtXL9zt7aBCSvPQMK0c6eGuxCHlpHmplw2EiYd QUG0u3r6oMwXyTvt6r9ZbsLOjBOkPZUlFrjN4PKijpXPX7aAZP+28zhD6s+xDb6jJkvU 6Q5DUDMVCZ0EH1tFBKR6QZpeJHmoc5+xY0mZLaQOSSSRQJUYVfJRC7xxUiMDikFI9HTA VO7DsueT/YUOjCxgaBVjoTA2VsxCjQPrjK1Umk2d4Pfvlwt/7LzfnC07LEs+tyREPszZ YVTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dMRTcDlKRh0oOiWcNgn3eD5OFlnBAI9lziMiJjJcreY=; b=IZu6fZoMbDaWlZlULNDvmviMOb7J0+4XLbwF8M9lP+Q2L2NXqJ/pZDA9ZLtK+Yssmj NhRBdxIR2P+6VSqrNqOnKVKSFw1Dnnx9vb+BRHXvLbICGP65xkUfTTFxLKRvElu5+Gi1 Gva1oQYDShv5AEeb2Mty5h80BBgxiH49+jlzaB7c2UaTwzKoMmTsvlcI0Tko+jsIEXLI 5i3eMqFKx0QWmo83QCY27OXhKoI3kFv1zncdvkoRei8i88QFEjpWQrxbczODxqeWuYdi PPQ279utQAH69ZP9nuXIuNWAl8S5XX2FtCmOG8tzn8/CmNITeTqWGlHxdXVGz/rkAo7a FZPw== X-Gm-Message-State: AOAM530AwQCMouGKH7eVZwiyoigTFxggoi/UFUwzWvJGG/f88mPhGj8v 0Ywhlr5qhM+ABomXuseYBLcA5vKLo/OyHF5umFFvUk978vM= X-Google-Smtp-Source: ABdhPJz6BfPoiesRQp+mQZR2s9JJJ3jL0s/QRUr8qbeWIdpAnfo3p86NDtI5fsh69BWpj0XlXQRIA6muGHx4YqpkAJQ= X-Received: by 2002:aed:2762:: with SMTP id n89mr4192610qtd.26.1589965249880; Wed, 20 May 2020 02:00:49 -0700 (PDT) MIME-Version: 1.0 References: <202005191618.9XxheOor%lkp@intel.com> <20200519190521.d19192c75279e5ca95209bc9@linux-foundation.org> In-Reply-To: <20200519190521.d19192c75279e5ca95209bc9@linux-foundation.org> From: Vincent Chen Date: Wed, 20 May 2020 17:00:38 +0800 Message-ID: Subject: Re: [hnaz-linux-mm:master 380/523] arch/riscv/kernel/kgdb.c:47:5: warning: no previous prototype for 'decode_register_index' To: Andrew Morton Cc: kbuild test robot , kbuild-all@lists.01.org, Linux Memory Management List , Johannes Weiner , Palmer Dabbelt Content-Type: text/plain; charset="UTF-8" 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 Wed, May 20, 2020 at 10:05 AM Andrew Morton wrote: > > 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"). > > I tried to use the following commands to reproduce the above warning messages, but I failed. 1. git clone https://github.com/hnaz/linux-mm 2. wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross 3. chmod +x ~/bin/make.cross 4. cd linux-mm 5. git checkout 91cd0b1b65c463042fdeb4ab5ffcb64ae43179cf 6. make ARCH=riscv allyesconfig 7. COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv Could you help me correct the reproduce steps? Thank you.