mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [tip:tmp.tmp2 108/364] arch/x86/include/asm/uaccess.h:47:16: error: implicit declaration of function 'in_task'; did you mean 'rt_task'?
@ 2021-06-13 21:38 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-13 21:38 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: kbuild-all, linux-kernel, x86

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head:   adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: a8bbfcd6b3ffac4ebcc0deb770d628fe6b8f2d05 [108/364] sched/headers: Remove <linux/mutex.h> from <linux/sched.h>
config: i386-defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=a8bbfcd6b3ffac4ebcc0deb770d628fe6b8f2d05
        git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
        git fetch --no-tags tip tmp.tmp2
        git checkout a8bbfcd6b3ffac4ebcc0deb770d628fe6b8f2d05
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

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

All errors (new ones prefixed by >>):

   In file included from include/linux/export.h:43,
                    from include/linux/linkage.h:7,
                    from include/linux/kernel.h:10,
                    from kernel/locking/rwsem.c:19:
   arch/x86/include/asm/uaccess.h: In function 'user_access_begin':
>> arch/x86/include/asm/uaccess.h:47:16: error: implicit declaration of function 'in_task'; did you mean 'rt_task'? [-Werror=implicit-function-declaration]
      47 |  WARN_ON_ONCE(!in_task() && !pagefault_disabled())
         |                ^~~~~~~
   include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
      78 | # define unlikely(x) __builtin_expect(!!(x), 0)
         |                                          ^
   arch/x86/include/asm/uaccess.h:47:2: note: in expansion of macro 'WARN_ON_ONCE'
      47 |  WARN_ON_ONCE(!in_task() && !pagefault_disabled())
         |  ^~~~~~~~~~~~
   arch/x86/include/asm/uaccess.h:71:2: note: in expansion of macro 'WARN_ON_IN_IRQ'
      71 |  WARN_ON_IN_IRQ();      \
         |  ^~~~~~~~~~~~~~
   arch/x86/include/asm/uaccess.h:476:16: note: in expansion of macro 'access_ok'
     476 |  if (unlikely(!access_ok(ptr,len)))
         |                ^~~~~~~~~
   cc1: some warnings being treated as errors


vim +47 arch/x86/include/asm/uaccess.h

ca23386216b9d4 include/asm-x86/uaccess.h      Glauber Costa    2008-06-13  43  
7c4788950ba592 arch/x86/include/asm/uaccess.h Peter Zijlstra   2016-11-22  44  #ifdef CONFIG_DEBUG_ATOMIC_SLEEP
2d8d8fac3b4eab arch/x86/include/asm/uaccess.h Masami Hiramatsu 2019-05-15  45  static inline bool pagefault_disabled(void);
2d8d8fac3b4eab arch/x86/include/asm/uaccess.h Masami Hiramatsu 2019-05-15  46  # define WARN_ON_IN_IRQ()	\
2d8d8fac3b4eab arch/x86/include/asm/uaccess.h Masami Hiramatsu 2019-05-15 @47  	WARN_ON_ONCE(!in_task() && !pagefault_disabled())
7c4788950ba592 arch/x86/include/asm/uaccess.h Peter Zijlstra   2016-11-22  48  #else
7c4788950ba592 arch/x86/include/asm/uaccess.h Peter Zijlstra   2016-11-22  49  # define WARN_ON_IN_IRQ()
7c4788950ba592 arch/x86/include/asm/uaccess.h Peter Zijlstra   2016-11-22  50  #endif
7c4788950ba592 arch/x86/include/asm/uaccess.h Peter Zijlstra   2016-11-22  51  

:::::: The code at line 47 was first introduced by commit
:::::: 2d8d8fac3b4eab035dcd0068e1f5a746a697fbb3 x86/uaccess: Allow access_ok() in irq context if pagefault_disabled

:::::: TO: Masami Hiramatsu <mhiramat@kernel.org>
:::::: CC: Steven Rostedt (VMware) <rostedt@goodmis.org>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-13 21:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-13 21:38 [tip:tmp.tmp2 108/364] arch/x86/include/asm/uaccess.h:47:16: error: implicit declaration of function 'in_task'; did you mean 'rt_task'? kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®