linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [hnaz-linux-mm:master 95/340] include/linux/sched/signal.h:383:6: error: implicit declaration of function 'user_mode'
@ 2020-03-10  7:01 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-03-10  7:01 UTC (permalink / raw)
  To: Peter Xu
  Cc: kbuild-all, Johannes Weiner, Andrew Morton, Linux Memory Management List

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

tree:   https://github.com/hnaz/linux-mm master
head:   5d9ee416b5701096536c7a63c04dbe25012baa9e
commit: 76e15e67350bfb1e0b1b151255c1d0b075143424 [95/340] mm: return faster for non-fatal signals in user mode faults
config: alpha-defconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.2.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 76e15e67350bfb1e0b1b151255c1d0b075143424
        # save the attached .config to linux build tree
        GCC_VERSION=9.2.0 make.cross ARCH=alpha 

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

All errors (new ones prefixed by >>):

   In file included from include/asm-generic/bug.h:5,
                    from arch/alpha/include/asm/bug.h:23,
                    from include/linux/bug.h:5,
                    from include/linux/thread_info.h:12,
                    from include/asm-generic/current.h:5,
                    from ./arch/alpha/include/generated/asm/current.h:1,
                    from include/linux/sched.h:12,
                    from arch/alpha/kernel/asm-offsets.c:10:
   include/linux/sched/signal.h: In function 'fault_signal_pending':
   include/linux/sched/signal.h:381:33: error: 'VM_FAULT_RETRY' undeclared (first use in this function)
     381 |  return unlikely((fault_flags & VM_FAULT_RETRY) &&
         |                                 ^~~~~~~~~~~~~~
   include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
      78 | # define unlikely(x) __builtin_expect(!!(x), 0)
         |                                          ^
   include/linux/sched/signal.h:381:33: note: each undeclared identifier is reported only once for each function it appears in
     381 |  return unlikely((fault_flags & VM_FAULT_RETRY) &&
         |                                 ^~~~~~~~~~~~~~
   include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
      78 | # define unlikely(x) __builtin_expect(!!(x), 0)
         |                                          ^
>> include/linux/sched/signal.h:383:6: error: implicit declaration of function 'user_mode' [-Werror=implicit-function-declaration]
     383 |     (user_mode(regs) && signal_pending(current))));
         |      ^~~~~~~~~
   include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
      78 | # define unlikely(x) __builtin_expect(!!(x), 0)
         |                                          ^
   cc1: some warnings being treated as errors
   make[2]: *** [scripts/Makefile.build:101: arch/alpha/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1113: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:180: sub-make] Error 2
   20 real  4 user  7 sys  59.21% cpu 	make prepare

vim +/user_mode +383 include/linux/sched/signal.h

   371	
   372	/*
   373	 * This should only be used in fault handlers to decide whether we
   374	 * should stop the current fault routine to handle the signals
   375	 * instead, especially with the case where we've got interrupted with
   376	 * a VM_FAULT_RETRY.
   377	 */
   378	static inline bool fault_signal_pending(unsigned int fault_flags,
   379						struct pt_regs *regs)
   380	{
   381		return unlikely((fault_flags & VM_FAULT_RETRY) &&
   382				(fatal_signal_pending(current) ||
 > 383				 (user_mode(regs) && signal_pending(current))));
   384	}
   385	

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

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

only message in thread, other threads:[~2020-03-10  7:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-10  7:01 [hnaz-linux-mm:master 95/340] include/linux/sched/signal.h:383:6: error: implicit declaration of function 'user_mode' kbuild 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).