public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: unlisted-recipients:; (no To-header on input)
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [peterz-queue:sched/wchan 7/7] arch/mips/kernel/stacktrace.c:69:6: warning: no previous prototype for '__save_stack_trace_tsk'
Date: Thu, 7 Oct 2021 16:22:48 +0800	[thread overview]
Message-ID: <202110071646.hhTx2yKC-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2113 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/wchan
head:   48f17ab32afc56a67359efc5b8889cb8cb42ec80
commit: 48f17ab32afc56a67359efc5b8889cb8cb42ec80 [7/7] arch: Fix STACKTRACE_SUPPORT
config: mips-loongson1b_defconfig (attached as .config)
compiler: mipsel-linux-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=48f17ab32afc56a67359efc5b8889cb8cb42ec80
        git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
        git fetch --no-tags peterz-queue sched/wchan
        git checkout 48f17ab32afc56a67359efc5b8889cb8cb42ec80
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> arch/mips/kernel/stacktrace.c:69:6: warning: no previous prototype for '__save_stack_trace_tsk' [-Wmissing-prototypes]
      69 | void __save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace, bool savesched)
         |      ^~~~~~~~~~~~~~~~~~~~~~


vim +/__save_stack_trace_tsk +69 arch/mips/kernel/stacktrace.c

    68	
  > 69	void __save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace, bool savesched)
    70	{
    71		struct pt_regs dummyregs;
    72		struct pt_regs *regs = &dummyregs;
    73	
    74		WARN_ON(trace->nr_entries || !trace->max_entries);
    75	
    76		if (tsk != current) {
    77			regs->regs[29] = tsk->thread.reg29;
    78			regs->regs[31] = 0;
    79			regs->cp0_epc = tsk->thread.reg31;
    80		} else
    81			prepare_frametrace(regs);
    82		save_context_stack(trace, tsk, regs, savesched);
    83	}
    84	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 15190 bytes --]

                 reply	other threads:[~2021-10-07  8:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202110071646.hhTx2yKC-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox