mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [rcu:tglx.2020.05.05a 105/140] arch/x86/kernel/traps.c:819:24: error: 'tsk' undeclared
Date: Sun, 17 May 2020 19:26:32 +0800	[thread overview]
Message-ID: <202005171929.ZVVDCTIJ%lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git tglx.2020.05.05a
head:   e6d36eed49b863bbe393e3c07cae737cd9c475e3
commit: ca303aa341bab5cdb3a3b41391ff262e252cd3f3 [105/140] x86/traps: Restructure #DB handling
config: i386-tinyconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
        git checkout ca303aa341bab5cdb3a3b41391ff262e252cd3f3
        # save the attached .config to linux build tree
        make ARCH=i386 

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

Note: the rcu/tglx.2020.05.05a HEAD e6d36eed49b863bbe393e3c07cae737cd9c475e3 builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>, old ones prefixed by <<):

arch/x86/kernel/traps.c: In function 'exc_debug_kernel':
>> arch/x86/kernel/traps.c:819:24: error: 'tsk' undeclared (first use in this function)
clear_tsk_thread_flag(tsk, TIF_BLOCKSTEP);
^~~
arch/x86/kernel/traps.c:819:24: note: each undeclared identifier is reported only once for each function it appears in
arch/x86/kernel/traps.c: In function 'exc_debug_user':
arch/x86/kernel/traps.c:842:24: error: 'tsk' undeclared (first use in this function)
clear_tsk_thread_flag(tsk, TIF_BLOCKSTEP);
^~~

vim +/tsk +819 arch/x86/kernel/traps.c

   809	
   810	static __always_inline void exc_debug_kernel(struct pt_regs *regs,
   811						     unsigned long dr6)
   812	{
   813		nmi_enter();
   814		/*
   815		 * The SDM says "The processor clears the BTF flag when it
   816		 * generates a debug exception."  Clear TIF_BLOCKSTEP to keep
   817		 * TIF_BLOCKSTEP in sync with the hardware BTF flag.
   818		 */
 > 819		clear_tsk_thread_flag(tsk, TIF_BLOCKSTEP);
   820	
   821		/*
   822		 * Catch SYSENTER with TF set and clear DR_STEP. If this hit a
   823		 * watchpoint at the same time then that will still be handled.
   824		 */
   825		if ((dr6 & DR_STEP) && is_sysenter_singlestep(regs))
   826			dr6 &= ~DR_STEP;
   827	
   828		/*
   829		 * If DR6 is zero, no point in trying to handle it. The kernel is
   830		 * not using INT1.
   831		 */
   832		if (dr6)
   833			handle_debug(regs, dr6, false);
   834	
   835		nmi_exit();
   836	}
   837	

---
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: 7252 bytes --]

                 reply	other threads:[~2020-05-17 11:28 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=202005171929.ZVVDCTIJ%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tglx@linutronix.de \
    /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

Powered by JetHome