linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [tip:tmp.tmp2 241/364] arch/x86/include/asm/uaccess.h:477:16: error: implicit declaration of function 'in_task'
@ 2021-06-14  2:24 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-14  2:24 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: kbuild-all, clang-built-linux, linux-kernel, x86

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head:   adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: 5bef49c748201f780b3b15803bb38885eb52480b [241/364] sched/headers, mm: Simplify <linux/swap.h> dependencies
config: x86_64-randconfig-a015-20210613 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d2012d965d60c3258b3a69d024491698f8aec386)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=5bef49c748201f780b3b15803bb38885eb52480b
        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 5bef49c748201f780b3b15803bb38885eb52480b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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 kernel/locking/rwsem.c:20:
   include/linux/sched.h:459:26: error: field has incomplete type 'struct irqtrace_events'
           struct irqtrace_events          irqtrace;
                                           ^
   include/linux/sched.h:459:9: note: forward declaration of 'struct irqtrace_events'
           struct irqtrace_events          irqtrace;
                  ^
   include/linux/sched.h:475:30: error: array has incomplete element type 'struct held_lock'
           struct held_lock                held_locks[MAX_LOCK_DEPTH];
                                                     ^
   include/linux/sched.h:475:9: note: forward declaration of 'struct held_lock'
           struct held_lock                held_locks[MAX_LOCK_DEPTH];
                  ^
   In file included from kernel/locking/rwsem.c:22:
   In file included from include/linux/sched/task.h:11:
   In file included from include/linux/uaccess.h:11:
>> arch/x86/include/asm/uaccess.h:477:16: error: implicit declaration of function 'in_task' [-Werror,-Wimplicit-function-declaration]
           if (unlikely(!access_ok(ptr,len)))
                         ^
   arch/x86/include/asm/uaccess.h:72:2: note: expanded from macro 'access_ok'
           WARN_ON_IN_IRQ();                                               \
           ^
   arch/x86/include/asm/uaccess.h:48:16: note: expanded from macro 'WARN_ON_IN_IRQ'
           WARN_ON_ONCE(!in_task() && !pagefault_disabled())
                         ^
   arch/x86/include/asm/uaccess.h:477:16: note: did you mean 'rt_task'?
   arch/x86/include/asm/uaccess.h:72:2: note: expanded from macro 'access_ok'
           WARN_ON_IN_IRQ();                                               \
           ^
   arch/x86/include/asm/uaccess.h:48:16: note: expanded from macro 'WARN_ON_IN_IRQ'
           WARN_ON_ONCE(!in_task() && !pagefault_disabled())
                         ^
   include/linux/sched/rt.h:16:19: note: 'rt_task' declared here
   static inline int rt_task(struct task_struct *p)
                     ^
   In file included from kernel/locking/rwsem.c:22:
   In file included from include/linux/sched/task.h:11:
   In file included from include/linux/uaccess.h:11:
>> arch/x86/include/asm/uaccess.h:477:16: error: implicit declaration of function 'in_task' [-Werror,-Wimplicit-function-declaration]
           if (unlikely(!access_ok(ptr,len)))
                         ^
   arch/x86/include/asm/uaccess.h:72:2: note: expanded from macro 'access_ok'
           WARN_ON_IN_IRQ();                                               \
           ^
   arch/x86/include/asm/uaccess.h:48:16: note: expanded from macro 'WARN_ON_IN_IRQ'
           WARN_ON_ONCE(!in_task() && !pagefault_disabled())
                         ^
   In file included from kernel/locking/rwsem.c:22:
   In file included from include/linux/sched/task.h:11:
>> include/linux/uaccess.h:208:6: error: implicit declaration of function 'in_task' [-Werror,-Wimplicit-function-declaration]
           if (access_ok(to, n) && access_ok(from, n))
               ^
   arch/x86/include/asm/uaccess.h:72:2: note: expanded from macro 'access_ok'
           WARN_ON_IN_IRQ();                                               \
           ^
   arch/x86/include/asm/uaccess.h:48:16: note: expanded from macro 'WARN_ON_IN_IRQ'
           WARN_ON_ONCE(!in_task() && !pagefault_disabled())
                         ^
   In file included from kernel/locking/rwsem.c:22:
   In file included from include/linux/sched/task.h:11:
   include/linux/uaccess.h:208:26: error: implicit declaration of function 'in_task' [-Werror,-Wimplicit-function-declaration]
           if (access_ok(to, n) && access_ok(from, n))
                                   ^
   arch/x86/include/asm/uaccess.h:72:2: note: expanded from macro 'access_ok'
           WARN_ON_IN_IRQ();                                               \
           ^
   arch/x86/include/asm/uaccess.h:48:16: note: expanded from macro 'WARN_ON_IN_IRQ'
           WARN_ON_ONCE(!in_task() && !pagefault_disabled())
                         ^
   6 errors generated.
--
   In file included from kernel/locking/lockdep.c:33:
   In file included from include/linux/sched/task.h:11:
   In file included from include/linux/uaccess.h:11:
>> arch/x86/include/asm/uaccess.h:477:16: error: implicit declaration of function 'in_task' [-Werror,-Wimplicit-function-declaration]
           if (unlikely(!access_ok(ptr,len)))
                         ^
   arch/x86/include/asm/uaccess.h:72:2: note: expanded from macro 'access_ok'
           WARN_ON_IN_IRQ();                                               \
           ^
   arch/x86/include/asm/uaccess.h:48:16: note: expanded from macro 'WARN_ON_IN_IRQ'
           WARN_ON_ONCE(!in_task() && !pagefault_disabled())
                         ^
   In file included from kernel/locking/lockdep.c:33:
   In file included from include/linux/sched/task.h:11:
>> include/linux/uaccess.h:208:6: error: implicit declaration of function 'in_task' [-Werror,-Wimplicit-function-declaration]
           if (access_ok(to, n) && access_ok(from, n))
               ^
   arch/x86/include/asm/uaccess.h:72:2: note: expanded from macro 'access_ok'
           WARN_ON_IN_IRQ();                                               \
           ^
   arch/x86/include/asm/uaccess.h:48:16: note: expanded from macro 'WARN_ON_IN_IRQ'
           WARN_ON_ONCE(!in_task() && !pagefault_disabled())
                         ^
   In file included from kernel/locking/lockdep.c:33:
   In file included from include/linux/sched/task.h:11:
   include/linux/uaccess.h:208:26: error: implicit declaration of function 'in_task' [-Werror,-Wimplicit-function-declaration]
           if (access_ok(to, n) && access_ok(from, n))
                                   ^
   arch/x86/include/asm/uaccess.h:72:2: note: expanded from macro 'access_ok'
           WARN_ON_IN_IRQ();                                               \
           ^
   arch/x86/include/asm/uaccess.h:48:16: note: expanded from macro 'WARN_ON_IN_IRQ'
           WARN_ON_ONCE(!in_task() && !pagefault_disabled())
                         ^
   In file included from kernel/locking/lockdep.c:64:
   In file included from include/trace/events/lock.h:87:
   In file included from include/trace/define_trace.h:102:
   In file included from include/trace/trace_events.h:21:
   In file included from include/linux/trace_events.h:10:
   In file included from include/linux/perf_event.h:57:
   include/linux/cgroup.h:481:9: error: no member named 'flags' in 'struct task_struct'
           return task_css_set_check(task, false);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/cgroup.h:455:12: note: expanded from macro 'task_css_set_check'
                   ((task)->flags & PF_EXITING) || (__c))
                   ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rcupdate.h:510:32: note: expanded from macro 'rcu_dereference_check'
           __rcu_dereference_check((p), (c) || rcu_read_lock_held(), __rcu)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rcupdate.h:372:21: note: expanded from macro '__rcu_dereference_check'
           RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_check() usage"); \
           ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rcupdate.h:314:52: note: expanded from macro 'RCU_LOCKDEP_WARN'
                   if (debug_lockdep_rcu_enabled() && !__warned && (c)) {  \
                                                                    ^
   In file included from kernel/locking/lockdep.c:64:
   In file included from include/trace/events/lock.h:87:
   In file included from include/trace/define_trace.h:102:
   In file included from include/trace/trace_events.h:21:
   In file included from include/linux/trace_events.h:10:
   In file included from include/linux/perf_event.h:57:
   include/linux/cgroup.h:494:9: error: no member named 'flags' in 'struct task_struct'
           return task_css_check(task, subsys_id, false);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/cgroup.h:471:2: note: expanded from macro 'task_css_check'
           task_css_set_check((task), (__c))->subsys[(subsys_id)]
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/cgroup.h:455:12: note: expanded from macro 'task_css_set_check'
                   ((task)->flags & PF_EXITING) || (__c))
                   ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rcupdate.h:510:32: note: expanded from macro 'rcu_dereference_check'
           __rcu_dereference_check((p), (c) || rcu_read_lock_held(), __rcu)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rcupdate.h:372:21: note: expanded from macro '__rcu_dereference_check'
           RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_check() usage"); \
           ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rcupdate.h:314:52: note: expanded from macro 'RCU_LOCKDEP_WARN'
                   if (debug_lockdep_rcu_enabled() && !__warned && (c)) {  \
                                                                    ^
   In file included from kernel/locking/lockdep.c:64:
   In file included from include/trace/events/lock.h:87:
   In file included from include/trace/define_trace.h:102:
   In file included from include/trace/trace_events.h:21:
   In file included from include/linux/trace_events.h:10:
   In file included from include/linux/perf_event.h:57:
   include/linux/cgroup.h:538:9: error: no member named 'flags' in 'struct task_struct'
           return task_css_check(task, subsys_id, true) ==
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/cgroup.h:471:2: note: expanded from macro 'task_css_check'
           task_css_set_check((task), (__c))->subsys[(subsys_id)]
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/cgroup.h:455:12: note: expanded from macro 'task_css_set_check'
                   ((task)->flags & PF_EXITING) || (__c))
                   ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rcupdate.h:510:32: note: expanded from macro 'rcu_dereference_check'
           __rcu_dereference_check((p), (c) || rcu_read_lock_held(), __rcu)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rcupdate.h:372:21: note: expanded from macro '__rcu_dereference_check'
           RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_check() usage"); \
           ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rcupdate.h:314:52: note: expanded from macro 'RCU_LOCKDEP_WARN'
                   if (debug_lockdep_rcu_enabled() && !__warned && (c)) {  \
                                                                    ^
   In file included from kernel/locking/lockdep.c:64:
   In file included from include/trace/events/lock.h:87:
   In file included from include/trace/define_trace.h:102:
   In file included from include/trace/trace_events.h:21:
   In file included from include/linux/trace_events.h:10:
   include/linux/perf_event.h:943:22: error: no member named 'flags' in 'struct task_struct'
           return container_of(task_css_check(task, perf_event_cgrp_id,
                  ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/cgroup.h:471:2: note: expanded from macro 'task_css_check'
           task_css_set_check((task), (__c))->subsys[(subsys_id)]
           ^
   include/linux/cgroup.h:455:12: note: expanded from macro 'task_css_set_check'
--
   In file included from mm/kasan/common.c:14:
   In file included from include/linux/kasan.h:28:
   In file included from include/linux/pgtable.h:6:
   In file included from arch/x86/include/asm/pgtable.h:26:
   In file included from arch/x86/include/asm/fpu/xstate.h:5:
   In file included from include/linux/uaccess.h:11:
>> arch/x86/include/asm/uaccess.h:477:16: error: implicit declaration of function 'in_task' [-Werror,-Wimplicit-function-declaration]
           if (unlikely(!access_ok(ptr,len)))
                         ^
   arch/x86/include/asm/uaccess.h:72:2: note: expanded from macro 'access_ok'
           WARN_ON_IN_IRQ();                                               \
           ^
   arch/x86/include/asm/uaccess.h:48:16: note: expanded from macro 'WARN_ON_IN_IRQ'
           WARN_ON_ONCE(!in_task() && !pagefault_disabled())
                         ^
   In file included from mm/kasan/common.c:14:
   In file included from include/linux/kasan.h:28:
   In file included from include/linux/pgtable.h:6:
   In file included from arch/x86/include/asm/pgtable.h:26:
   In file included from arch/x86/include/asm/fpu/xstate.h:5:
>> include/linux/uaccess.h:208:6: error: implicit declaration of function 'in_task' [-Werror,-Wimplicit-function-declaration]
           if (access_ok(to, n) && access_ok(from, n))
               ^
   arch/x86/include/asm/uaccess.h:72:2: note: expanded from macro 'access_ok'
           WARN_ON_IN_IRQ();                                               \
           ^
   arch/x86/include/asm/uaccess.h:48:16: note: expanded from macro 'WARN_ON_IN_IRQ'
           WARN_ON_ONCE(!in_task() && !pagefault_disabled())
                         ^
   In file included from mm/kasan/common.c:14:
   In file included from include/linux/kasan.h:28:
   In file included from include/linux/pgtable.h:6:
   In file included from arch/x86/include/asm/pgtable.h:26:
   In file included from arch/x86/include/asm/fpu/xstate.h:5:
   include/linux/uaccess.h:208:26: error: implicit declaration of function 'in_task' [-Werror,-Wimplicit-function-declaration]
           if (access_ok(to, n) && access_ok(from, n))
                                   ^
   arch/x86/include/asm/uaccess.h:72:2: note: expanded from macro 'access_ok'
           WARN_ON_IN_IRQ();                                               \
           ^
   arch/x86/include/asm/uaccess.h:48:16: note: expanded from macro 'WARN_ON_IN_IRQ'
           WARN_ON_ONCE(!in_task() && !pagefault_disabled())
                         ^
   In file included from mm/kasan/common.c:31:
   In file included from mm/kasan/../slab.h:43:
   In file included from include/linux/memcontrol.h:22:
   In file included from include/linux/writeback.h:14:
   In file included from include/linux/blk-cgroup.h:17:
   include/linux/cgroup.h:481:9: error: no member named 'flags' in 'struct task_struct'
           return task_css_set_check(task, false);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/cgroup.h:455:12: note: expanded from macro 'task_css_set_check'
                   ((task)->flags & PF_EXITING) || (__c))
                   ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rcupdate.h:510:32: note: expanded from macro 'rcu_dereference_check'
           __rcu_dereference_check((p), (c) || rcu_read_lock_held(), __rcu)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rcupdate.h:372:21: note: expanded from macro '__rcu_dereference_check'
           RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_check() usage"); \
           ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rcupdate.h:314:52: note: expanded from macro 'RCU_LOCKDEP_WARN'
                   if (debug_lockdep_rcu_enabled() && !__warned && (c)) {  \
                                                                    ^
   In file included from mm/kasan/common.c:31:
   In file included from mm/kasan/../slab.h:43:
   In file included from include/linux/memcontrol.h:22:
   In file included from include/linux/writeback.h:14:
   In file included from include/linux/blk-cgroup.h:17:
   include/linux/cgroup.h:494:9: error: no member named 'flags' in 'struct task_struct'
           return task_css_check(task, subsys_id, false);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/cgroup.h:471:2: note: expanded from macro 'task_css_check'
           task_css_set_check((task), (__c))->subsys[(subsys_id)]
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/cgroup.h:455:12: note: expanded from macro 'task_css_set_check'
                   ((task)->flags & PF_EXITING) || (__c))
                   ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rcupdate.h:510:32: note: expanded from macro 'rcu_dereference_check'
           __rcu_dereference_check((p), (c) || rcu_read_lock_held(), __rcu)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rcupdate.h:372:21: note: expanded from macro '__rcu_dereference_check'
           RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_check() usage"); \
           ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rcupdate.h:314:52: note: expanded from macro 'RCU_LOCKDEP_WARN'
                   if (debug_lockdep_rcu_enabled() && !__warned && (c)) {  \
                                                                    ^
   In file included from mm/kasan/common.c:31:
   In file included from mm/kasan/../slab.h:43:
   In file included from include/linux/memcontrol.h:22:
   In file included from include/linux/writeback.h:14:
   In file included from include/linux/blk-cgroup.h:17:
   include/linux/cgroup.h:538:9: error: no member named 'flags' in 'struct task_struct'
           return task_css_check(task, subsys_id, true) ==
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/cgroup.h:471:2: note: expanded from macro 'task_css_check'
           task_css_set_check((task), (__c))->subsys[(subsys_id)]
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/cgroup.h:455:12: note: expanded from macro 'task_css_set_check'
                   ((task)->flags & PF_EXITING) || (__c))
                   ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rcupdate.h:510:32: note: expanded from macro 'rcu_dereference_check'
           __rcu_dereference_check((p), (c) || rcu_read_lock_held(), __rcu)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rcupdate.h:372:21: note: expanded from macro '__rcu_dereference_check'
           RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_check() usage"); \
           ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rcupdate.h:314:52: note: expanded from macro 'RCU_LOCKDEP_WARN'
                   if (debug_lockdep_rcu_enabled() && !__warned && (c)) {  \
                                                                    ^
   6 errors generated.
--
   In file included from mm/kasan/shadow.c:14:
   In file included from include/linux/kasan.h:28:
   In file included from include/linux/pgtable.h:6:
   In file included from arch/x86/include/asm/pgtable.h:26:
   In file included from arch/x86/include/asm/fpu/xstate.h:5:
   In file included from include/linux/uaccess.h:11:
>> arch/x86/include/asm/uaccess.h:477:16: error: implicit declaration of function 'in_task' [-Werror,-Wimplicit-function-declaration]
           if (unlikely(!access_ok(ptr,len)))
                         ^
   arch/x86/include/asm/uaccess.h:72:2: note: expanded from macro 'access_ok'
           WARN_ON_IN_IRQ();                                               \
           ^
   arch/x86/include/asm/uaccess.h:48:16: note: expanded from macro 'WARN_ON_IN_IRQ'
           WARN_ON_ONCE(!in_task() && !pagefault_disabled())
                         ^
   In file included from mm/kasan/shadow.c:14:
   In file included from include/linux/kasan.h:28:
   In file included from include/linux/pgtable.h:6:
   In file included from arch/x86/include/asm/pgtable.h:26:
   In file included from arch/x86/include/asm/fpu/xstate.h:5:
>> include/linux/uaccess.h:208:6: error: implicit declaration of function 'in_task' [-Werror,-Wimplicit-function-declaration]
           if (access_ok(to, n) && access_ok(from, n))
               ^
   arch/x86/include/asm/uaccess.h:72:2: note: expanded from macro 'access_ok'
           WARN_ON_IN_IRQ();                                               \
           ^
   arch/x86/include/asm/uaccess.h:48:16: note: expanded from macro 'WARN_ON_IN_IRQ'
           WARN_ON_ONCE(!in_task() && !pagefault_disabled())
                         ^
   In file included from mm/kasan/shadow.c:14:
   In file included from include/linux/kasan.h:28:
   In file included from include/linux/pgtable.h:6:
   In file included from arch/x86/include/asm/pgtable.h:26:
   In file included from arch/x86/include/asm/fpu/xstate.h:5:
   include/linux/uaccess.h:208:26: error: implicit declaration of function 'in_task' [-Werror,-Wimplicit-function-declaration]
           if (access_ok(to, n) && access_ok(from, n))
                                   ^
   arch/x86/include/asm/uaccess.h:72:2: note: expanded from macro 'access_ok'
           WARN_ON_IN_IRQ();                                               \
           ^
   arch/x86/include/asm/uaccess.h:48:16: note: expanded from macro 'WARN_ON_IN_IRQ'
           WARN_ON_ONCE(!in_task() && !pagefault_disabled())
                         ^
   3 errors generated.
..


vim +/in_task +477 arch/x86/include/asm/uaccess.h

ca23386216b9d4 include/asm-x86/uaccess.h      Glauber Costa  2008-06-13  468  
5b24a7a2aa2040 arch/x86/include/asm/uaccess.h Linus Torvalds 2015-12-17  469  /*
5b24a7a2aa2040 arch/x86/include/asm/uaccess.h Linus Torvalds 2015-12-17  470   * The "unsafe" user accesses aren't really "unsafe", but the naming
5b24a7a2aa2040 arch/x86/include/asm/uaccess.h Linus Torvalds 2015-12-17  471   * is a big fat warning: you have to not only do the access_ok()
5b24a7a2aa2040 arch/x86/include/asm/uaccess.h Linus Torvalds 2015-12-17  472   * checking before using them, but you have to surround them with the
5b24a7a2aa2040 arch/x86/include/asm/uaccess.h Linus Torvalds 2015-12-17  473   * user_access_begin/end() pair.
5b24a7a2aa2040 arch/x86/include/asm/uaccess.h Linus Torvalds 2015-12-17  474   */
b7f89bfe52cd52 arch/x86/include/asm/uaccess.h Peter Zijlstra 2019-04-03  475  static __must_check __always_inline bool user_access_begin(const void __user *ptr, size_t len)
594cc251fdd0d2 arch/x86/include/asm/uaccess.h Linus Torvalds 2019-01-04  476  {
594cc251fdd0d2 arch/x86/include/asm/uaccess.h Linus Torvalds 2019-01-04 @477  	if (unlikely(!access_ok(ptr,len)))
594cc251fdd0d2 arch/x86/include/asm/uaccess.h Linus Torvalds 2019-01-04  478  		return 0;
6e693b3ffecb0b arch/x86/include/asm/uaccess.h Will Deacon    2019-01-19  479  	__uaccess_begin_nospec();
594cc251fdd0d2 arch/x86/include/asm/uaccess.h Linus Torvalds 2019-01-04  480  	return 1;
594cc251fdd0d2 arch/x86/include/asm/uaccess.h Linus Torvalds 2019-01-04  481  }
594cc251fdd0d2 arch/x86/include/asm/uaccess.h Linus Torvalds 2019-01-04  482  #define user_access_begin(a,b)	user_access_begin(a,b)
5b24a7a2aa2040 arch/x86/include/asm/uaccess.h Linus Torvalds 2015-12-17  483  #define user_access_end()	__uaccess_end()
5b24a7a2aa2040 arch/x86/include/asm/uaccess.h Linus Torvalds 2015-12-17  484  

:::::: The code at line 477 was first introduced by commit
:::::: 594cc251fdd0d231d342d88b2fdff4bc42fb0690 make 'user_access_begin()' do 'access_ok()'

:::::: TO: Linus Torvalds <torvalds@linux-foundation.org>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.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: 41944 bytes --]

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

only message in thread, other threads:[~2021-06-14  2:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-14  2:24 [tip:tmp.tmp2 241/364] arch/x86/include/asm/uaccess.h:477:16: error: implicit declaration of function 'in_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;
as well as URLs for NNTP newsgroup(s).