lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202007171307.FxBl7xyN%lkp@intel.com>
Date:   Fri, 17 Jul 2020 13:33:15 +0800
From:   kernel test robot <lkp@...el.com>
To:     Jarkko Sakkinen <jarkko.sakkinen@...ux.intel.com>,
        linux-kernel@...r.kernel.org
Cc:     kbuild-all@...ts.01.org,
        Jarkko Sakkinen <jarkko.sakkinen@...ux.intel.com>,
        Andi Kleen <ak@...ux.intel.com>,
        Masami Hiramatsu <mhiramat@...nel.org>,
        Peter Zijlstra <peterz@...radead.org>,
        Andrew Morton <akpm@...ux-foundation.org>,
        Linux Memory Management List <linux-mm@...ck.org>
Subject: Re: [PATCH v4 3/7] vmalloc: Add text_alloc() and text_free()

Hi Jarkko,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on jeyu/modules-next v5.8-rc5 next-20200716]
[cannot apply to tip/x86/core tip/perf/core]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Jarkko-Sakkinen/arch-x86-kprobes-Remove-MODULES-dependency/20200717-110947
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 07a56bb875afbe39dabbf6ba7b83783d166863db
config: sparc-randconfig-s031-20200717 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.2-49-g707c5017-dirty
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=sparc 

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

All errors (new ones prefixed by >>):

   In file included from arch/sparc/include/asm/page.h:10,
                    from arch/sparc/include/asm/string_32.h:13,
                    from arch/sparc/include/asm/string.h:7,
                    from include/linux/string.h:20,
                    from include/linux/bitmap.h:9,
                    from include/linux/cpumask.h:12,
                    from arch/sparc/include/asm/smp_32.h:15,
                    from arch/sparc/include/asm/smp.h:7,
                    from arch/sparc/include/asm/switch_to_32.h:5,
                    from arch/sparc/include/asm/switch_to.h:7,
                    from arch/sparc/include/asm/ptrace.h:120,
                    from arch/sparc/include/asm/thread_info_32.h:19,
                    from arch/sparc/include/asm/thread_info.h:7,
                    from include/linux/thread_info.h:38,
                    from include/asm-generic/preempt.h:5,
                    from ./arch/sparc/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:78,
                    from include/linux/spinlock.h:51,
                    from include/linux/seqlock.h:36,
                    from include/linux/time.h:6,
                    from arch/sparc/vdso/vdso32/../vclock_gettime.c:16,
                    from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
>> include/linux/mmzone.h:1317:29: error: expected identifier or '(' before 'unsigned'
    1317 | static inline int pfn_valid(unsigned long pfn)
         |                             ^~~~~~~~
   arch/sparc/include/asm/page_32.h:133:28: note: in definition of macro 'pfn_valid'
     133 | #define pfn_valid(pfn)  (((pfn) >= (pfn_base)) && (((pfn)-(pfn_base)) < max_mapnr))
         |                            ^~~
>> arch/sparc/include/asm/page_32.h:133:33: error: expected ')' before '>=' token
     133 | #define pfn_valid(pfn)  (((pfn) >= (pfn_base)) && (((pfn)-(pfn_base)) < max_mapnr))
         |                                 ^~
   include/linux/mmzone.h:1317:19: note: in expansion of macro 'pfn_valid'
    1317 | static inline int pfn_valid(unsigned long pfn)
         |                   ^~~~~~~~~
   arch/sparc/include/asm/page_32.h:133:48: error: expected ')' before '&&' token
     133 | #define pfn_valid(pfn)  (((pfn) >= (pfn_base)) && (((pfn)-(pfn_base)) < max_mapnr))
         |                                                ^~
   include/linux/mmzone.h:1317:19: note: in expansion of macro 'pfn_valid'
    1317 | static inline int pfn_valid(unsigned long pfn)
         |                   ^~~~~~~~~
   In file included from include/linux/page-flags-layout.h:28,
                    from include/linux/mmzone.h:19,
                    from include/linux/gfp.h:6,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:9,
                    from include/linux/module.h:16,
                    from include/linux/moduleloader.h:6,
                    from include/linux/vmalloc.h:12,
                    from include/asm-generic/io.h:911,
                    from arch/sparc/include/asm/io_32.h:14,
                    from arch/sparc/include/asm/io.h:7,
                    from arch/sparc/vdso/vdso32/../vclock_gettime.c:18,
                    from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
   include/linux/mmzone.h: In function 'pfn_in_present_section':
>> arch/sparc/include/asm/sparsemem.h:11:33: error: 'MAX_PHYS_ADDRESS_BITS' undeclared (first use in this function); did you mean 'MAX_PHYSADDR_BITS'?
      11 | #define MAX_PHYSMEM_BITS        MAX_PHYS_ADDRESS_BITS
         |                                 ^~~~~~~~~~~~~~~~~~~~~
   include/linux/page-flags-layout.h:31:25: note: in expansion of macro 'MAX_PHYSMEM_BITS'
      31 | #define SECTIONS_SHIFT (MAX_PHYSMEM_BITS - SECTION_SIZE_BITS)
         |                         ^~~~~~~~~~~~~~~~
   include/linux/mmzone.h:1104:34: note: in expansion of macro 'SECTIONS_SHIFT'
    1104 | #define NR_MEM_SECTIONS  (1UL << SECTIONS_SHIFT)
         |                                  ^~~~~~~~~~~~~~
   include/linux/mmzone.h:1336:32: note: in expansion of macro 'NR_MEM_SECTIONS'
    1336 |  if (pfn_to_section_nr(pfn) >= NR_MEM_SECTIONS)
         |                                ^~~~~~~~~~~~~~~
   arch/sparc/include/asm/sparsemem.h:11:33: note: each undeclared identifier is reported only once for each function it appears in
      11 | #define MAX_PHYSMEM_BITS        MAX_PHYS_ADDRESS_BITS
         |                                 ^~~~~~~~~~~~~~~~~~~~~
   include/linux/page-flags-layout.h:31:25: note: in expansion of macro 'MAX_PHYSMEM_BITS'
      31 | #define SECTIONS_SHIFT (MAX_PHYSMEM_BITS - SECTION_SIZE_BITS)
         |                         ^~~~~~~~~~~~~~~~
   include/linux/mmzone.h:1104:34: note: in expansion of macro 'SECTIONS_SHIFT'
    1104 | #define NR_MEM_SECTIONS  (1UL << SECTIONS_SHIFT)
         |                                  ^~~~~~~~~~~~~~
   include/linux/mmzone.h:1336:32: note: in expansion of macro 'NR_MEM_SECTIONS'
    1336 |  if (pfn_to_section_nr(pfn) >= NR_MEM_SECTIONS)
         |                                ^~~~~~~~~~~~~~~
   In file included from include/linux/local_lock.h:5,
                    from include/linux/radix-tree.h:19,
                    from include/linux/idr.h:15,
                    from include/linux/kernfs.h:13,
                    from include/linux/sysfs.h:16,
                    from include/linux/kobject.h:20,
                    from include/linux/of.h:17,
                    from arch/sparc/include/asm/openprom.h:15,
                    from arch/sparc/include/asm/oplib_32.h:12,
                    from arch/sparc/include/asm/oplib.h:7,
                    from arch/sparc/include/asm/pgtable_32.h:32,
                    from arch/sparc/include/asm/pgtable.h:7,
                    from arch/sparc/include/asm/viking.h:13,
                    from arch/sparc/include/asm/mbus.h:12,
                    from arch/sparc/include/asm/elf_32.h:94,
                    from arch/sparc/include/asm/elf.h:7,
                    from include/linux/elf.h:6,
                    from include/linux/module.h:18,
                    from include/linux/moduleloader.h:6,
                    from include/linux/vmalloc.h:12,
                    from include/asm-generic/io.h:911,
                    from arch/sparc/include/asm/io_32.h:14,
                    from arch/sparc/include/asm/io.h:7,
                    from arch/sparc/vdso/vdso32/../vclock_gettime.c:18,
                    from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
   include/linux/local_lock_internal.h: In function 'local_lock_acquire':
>> include/linux/local_lock_internal.h:41:13: error: 'current' undeclared (first use in this function)
      41 |  l->owner = current;
         |             ^~~~~~~
   In file included from include/linux/kernel.h:11,
                    from arch/sparc/vdso/vdso32/../vclock_gettime.c:15,
                    from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
   include/linux/local_lock_internal.h: In function 'local_lock_release':
   include/linux/local_lock_internal.h:46:34: error: 'current' undeclared (first use in this function)
      46 |  DEBUG_LOCKS_WARN_ON(l->owner != current);
         |                                  ^~~~~~~
   include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
      78 | # define unlikely(x) __builtin_expect(!!(x), 0)
         |                                          ^
   include/linux/local_lock_internal.h:46:2: note: in expansion of macro 'DEBUG_LOCKS_WARN_ON'
      46 |  DEBUG_LOCKS_WARN_ON(l->owner != current);
         |  ^~~~~~~~~~~~~~~~~~~
   In file included from include/linux/sched/signal.h:7,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/proc_fs.h:10,
                    from arch/sparc/include/asm/prom.h:18,
                    from include/linux/of.h:250,
                    from arch/sparc/include/asm/openprom.h:15,
                    from arch/sparc/include/asm/oplib_32.h:12,
                    from arch/sparc/include/asm/oplib.h:7,
                    from arch/sparc/include/asm/pgtable_32.h:32,
                    from arch/sparc/include/asm/pgtable.h:7,
                    from arch/sparc/include/asm/viking.h:13,
                    from arch/sparc/include/asm/mbus.h:12,
                    from arch/sparc/include/asm/elf_32.h:94,
                    from arch/sparc/include/asm/elf.h:7,
                    from include/linux/elf.h:6,
                    from include/linux/module.h:18,
                    from include/linux/moduleloader.h:6,
                    from include/linux/vmalloc.h:12,
                    from include/asm-generic/io.h:911,
                    from arch/sparc/include/asm/io_32.h:14,
                    from arch/sparc/include/asm/io.h:7,
                    from arch/sparc/vdso/vdso32/../vclock_gettime.c:18,
                    from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
   include/linux/sched.h: In function 'is_percpu_thread':
>> include/linux/sched.h:1552:10: error: 'current' undeclared (first use in this function)
    1552 |  return (current->flags & PF_NO_SETAFFINITY) &&
         |          ^~~~~~~
   include/linux/sched.h: In function 'current_restore_flags':
   include/linux/sched.h:1613:2: error: 'current' undeclared (first use in this function)
    1613 |  current->flags &= ~flags;
         |  ^~~~~~~
   In file included from arch/sparc/include/asm/uaccess.h:7,
                    from include/linux/uaccess.h:11,
                    from include/linux/sched/task.h:11,
                    from include/linux/sched/signal.h:9,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/proc_fs.h:10,
                    from arch/sparc/include/asm/prom.h:18,
                    from include/linux/of.h:250,
                    from arch/sparc/include/asm/openprom.h:15,
                    from arch/sparc/include/asm/oplib_32.h:12,
                    from arch/sparc/include/asm/oplib.h:7,
                    from arch/sparc/include/asm/pgtable_32.h:32,
                    from arch/sparc/include/asm/pgtable.h:7,
                    from arch/sparc/include/asm/viking.h:13,
                    from arch/sparc/include/asm/mbus.h:12,
                    from arch/sparc/include/asm/elf_32.h:94,
                    from arch/sparc/include/asm/elf.h:7,
                    from include/linux/elf.h:6,
                    from include/linux/module.h:18,
                    from include/linux/moduleloader.h:6,
                    from include/linux/vmalloc.h:12,
                    from include/asm-generic/io.h:911,
                    from arch/sparc/include/asm/io_32.h:14,
                    from arch/sparc/include/asm/io.h:7,
                    from arch/sparc/vdso/vdso32/../vclock_gettime.c:18,
                    from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
   arch/sparc/include/asm/uaccess_32.h: In function 'clear_user':
>> arch/sparc/include/asm/uaccess_32.h:28:19: error: 'current' undeclared (first use in this function)
      28 | #define get_fs() (current->thread.current_ds)
         |                   ^~~~~~~
   arch/sparc/include/asm/uaccess_32.h:38:49: note: in definition of macro '__user_ok'
      38 | #define __user_ok(addr, size) ({ (void)(size); (addr) < STACK_TOP; })
         |                                                 ^~~~
   arch/sparc/include/asm/uaccess_32.h:40:53: note: in expansion of macro 'get_fs'
      40 | #define __access_ok(addr, size) (__user_ok((addr) & get_fs().seg, (size)))
         |                                                     ^~~~~~
   arch/sparc/include/asm/uaccess_32.h:273:11: note: in expansion of macro '__access_ok'
     273 |  if (n && __access_ok((unsigned long) addr, n))
         |           ^~~~~~~~~~~
   In file included from include/linux/kernel.h:11,
                    from arch/sparc/vdso/vdso32/../vclock_gettime.c:15,
                    from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
   include/linux/uaccess.h: In function '_copy_from_user':
>> arch/sparc/include/asm/uaccess_32.h:28:19: error: 'current' undeclared (first use in this function)
      28 | #define get_fs() (current->thread.current_ds)
         |                   ^~~~~~~
   include/linux/compiler.h:77:40: note: in definition of macro 'likely'
      77 | # define likely(x) __builtin_expect(!!(x), 1)
         |                                        ^
   arch/sparc/include/asm/uaccess_32.h:40:34: note: in expansion of macro '__user_ok'
      40 | #define __access_ok(addr, size) (__user_ok((addr) & get_fs().seg, (size)))
         |                                  ^~~~~~~~~
   arch/sparc/include/asm/uaccess_32.h:40:53: note: in expansion of macro 'get_fs'
      40 | #define __access_ok(addr, size) (__user_ok((addr) & get_fs().seg, (size)))
         |                                                     ^~~~~~
   arch/sparc/include/asm/uaccess_32.h:41:31: note: in expansion of macro '__access_ok'
      41 | #define access_ok(addr, size) __access_ok((unsigned long)(addr), size)
         |                               ^~~~~~~~~~~
   include/linux/uaccess.h:111:13: note: in expansion of macro 'access_ok'
     111 |  if (likely(access_ok(from, n))) {
         |             ^~~~~~~~~
   In file included from arch/sparc/include/asm/uaccess.h:7,
                    from include/linux/uaccess.h:11,
                    from include/linux/sched/task.h:11,
                    from include/linux/sched/signal.h:9,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/proc_fs.h:10,
                    from arch/sparc/include/asm/prom.h:18,
                    from include/linux/of.h:250,
                    from arch/sparc/include/asm/openprom.h:15,
                    from arch/sparc/include/asm/oplib_32.h:12,
                    from arch/sparc/include/asm/oplib.h:7,
                    from arch/sparc/include/asm/pgtable_32.h:32,
                    from arch/sparc/include/asm/pgtable.h:7,
                    from arch/sparc/include/asm/viking.h:13,
                    from arch/sparc/include/asm/mbus.h:12,
                    from arch/sparc/include/asm/elf_32.h:94,
                    from arch/sparc/include/asm/elf.h:7,
                    from include/linux/elf.h:6,
                    from include/linux/module.h:18,
                    from include/linux/moduleloader.h:6,
                    from include/linux/vmalloc.h:12,
                    from include/asm-generic/io.h:911,
                    from arch/sparc/include/asm/io_32.h:14,
                    from arch/sparc/include/asm/io.h:7,
                    from arch/sparc/vdso/vdso32/../vclock_gettime.c:18,
                    from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
   include/linux/uaccess.h: In function '_copy_to_user':
>> arch/sparc/include/asm/uaccess_32.h:28:19: error: 'current' undeclared (first use in this function)
      28 | #define get_fs() (current->thread.current_ds)
         |                   ^~~~~~~
   arch/sparc/include/asm/uaccess_32.h:38:49: note: in definition of macro '__user_ok'
      38 | #define __user_ok(addr, size) ({ (void)(size); (addr) < STACK_TOP; })
         |                                                 ^~~~
   arch/sparc/include/asm/uaccess_32.h:40:53: note: in expansion of macro 'get_fs'
      40 | #define __access_ok(addr, size) (__user_ok((addr) & get_fs().seg, (size)))
         |                                                     ^~~~~~
   arch/sparc/include/asm/uaccess_32.h:41:31: note: in expansion of macro '__access_ok'
      41 | #define access_ok(addr, size) __access_ok((unsigned long)(addr), size)
         |                               ^~~~~~~~~~~
   include/linux/uaccess.h:129:6: note: in expansion of macro 'access_ok'
     129 |  if (access_ok(to, n)) {
         |      ^~~~~~~~~
   include/linux/uaccess.h: In function 'copy_in_user':
>> arch/sparc/include/asm/uaccess_32.h:28:19: error: 'current' undeclared (first use in this function)
      28 | #define get_fs() (current->thread.current_ds)
         |                   ^~~~~~~
   arch/sparc/include/asm/uaccess_32.h:38:49: note: in definition of macro '__user_ok'
      38 | #define __user_ok(addr, size) ({ (void)(size); (addr) < STACK_TOP; })
         |                                                 ^~~~
   arch/sparc/include/asm/uaccess_32.h:40:53: note: in expansion of macro 'get_fs'
      40 | #define __access_ok(addr, size) (__user_ok((addr) & get_fs().seg, (size)))
         |                                                     ^~~~~~
   arch/sparc/include/asm/uaccess_32.h:41:31: note: in expansion of macro '__access_ok'
      41 | #define access_ok(addr, size) __access_ok((unsigned long)(addr), size)
         |                               ^~~~~~~~~~~
   include/linux/uaccess.h:160:6: note: in expansion of macro 'access_ok'
     160 |  if (access_ok(to, n) && access_ok(from, n))
         |      ^~~~~~~~~
   In file included from include/linux/sched/task.h:11,
                    from include/linux/sched/signal.h:9,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/proc_fs.h:10,
                    from arch/sparc/include/asm/prom.h:18,
                    from include/linux/of.h:250,
                    from arch/sparc/include/asm/openprom.h:15,
                    from arch/sparc/include/asm/oplib_32.h:12,
                    from arch/sparc/include/asm/oplib.h:7,
                    from arch/sparc/include/asm/pgtable_32.h:32,
                    from arch/sparc/include/asm/pgtable.h:7,
                    from arch/sparc/include/asm/viking.h:13,
                    from arch/sparc/include/asm/mbus.h:12,
                    from arch/sparc/include/asm/elf_32.h:94,
                    from arch/sparc/include/asm/elf.h:7,
                    from include/linux/elf.h:6,
                    from include/linux/module.h:18,
                    from include/linux/moduleloader.h:6,
                    from include/linux/vmalloc.h:12,
                    from include/asm-generic/io.h:911,
                    from arch/sparc/include/asm/io_32.h:14,
                    from arch/sparc/include/asm/io.h:7,
                    from arch/sparc/vdso/vdso32/../vclock_gettime.c:18,
                    from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
>> include/linux/uaccess.h:161:7: error: implicit declaration of function 'raw_copy_in_user'; did you mean 'raw_copy_to_user'? [-Werror=implicit-function-declaration]
     161 |   n = raw_copy_in_user(to, from, n);
         |       ^~~~~~~~~~~~~~~~
         |       raw_copy_to_user
   include/linux/uaccess.h: In function 'pagefault_disabled_inc':
>> include/linux/uaccess.h:168:2: error: 'current' undeclared (first use in this function)
     168 |  current->pagefault_disabled++;
         |  ^~~~~~~
   include/linux/uaccess.h: In function 'pagefault_disabled_dec':
   include/linux/uaccess.h:173:2: error: 'current' undeclared (first use in this function)
     173 |  current->pagefault_disabled--;
         |  ^~~~~~~
   include/linux/uaccess.h: In function 'pagefault_disabled':
   include/linux/uaccess.h:208:9: error: 'current' undeclared (first use in this function)
     208 |  return current->pagefault_disabled != 0;
         |         ^~~~~~~
   In file included from include/linux/kernel.h:15,
                    from arch/sparc/vdso/vdso32/../vclock_gettime.c:15,
                    from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
   include/linux/ratelimit.h: In function 'ratelimit_state_exit':
>> include/linux/ratelimit.h:63:4: error: 'current' undeclared (first use in this function)
      63 |    current->comm, rs->missed);
         |    ^~~~~~~
   include/linux/printk.h:348:37: note: in definition of macro 'pr_warn'
     348 |  printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
         |                                     ^~~~~~~~~~~
   In file included from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/proc_fs.h:10,
                    from arch/sparc/include/asm/prom.h:18,
                    from include/linux/of.h:250,
                    from arch/sparc/include/asm/openprom.h:15,
                    from arch/sparc/include/asm/oplib_32.h:12,
                    from arch/sparc/include/asm/oplib.h:7,
                    from arch/sparc/include/asm/pgtable_32.h:32,
                    from arch/sparc/include/asm/pgtable.h:7,
                    from arch/sparc/include/asm/viking.h:13,
                    from arch/sparc/include/asm/mbus.h:12,
                    from arch/sparc/include/asm/elf_32.h:94,
                    from arch/sparc/include/asm/elf.h:7,
                    from include/linux/elf.h:6,
                    from include/linux/module.h:18,
                    from include/linux/moduleloader.h:6,
                    from include/linux/vmalloc.h:12,
                    from include/asm-generic/io.h:911,
                    from arch/sparc/include/asm/io_32.h:14,
                    from arch/sparc/include/asm/io.h:7,
                    from arch/sparc/vdso/vdso32/../vclock_gettime.c:18,
                    from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
   include/linux/sched/signal.h: In function 'kernel_dequeue_signal':
>> include/linux/sched/signal.h:280:29: error: 'current' undeclared (first use in this function)
     280 |  struct task_struct *task = current;
         |                             ^~~~~~~
   include/linux/sched/signal.h: In function 'kernel_signal_stop':
   include/linux/sched/signal.h:293:17: error: 'current' undeclared (first use in this function)
     293 |  spin_lock_irq(&current->sighand->siglock);
         |                 ^~~~~~~
   include/linux/sched/signal.h: In function 'restart_syscall':
   include/linux/sched/signal.h:352:22: error: 'current' undeclared (first use in this function)
     352 |  set_tsk_thread_flag(current, TIF_SIGPENDING);
         |                      ^~~~~~~
   In file included from include/linux/kernel.h:11,
                    from arch/sparc/vdso/vdso32/../vclock_gettime.c:15,
                    from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
   include/linux/sched/signal.h: In function 'fault_signal_pending':
   include/linux/sched/signal.h:391:26: error: 'current' undeclared (first use in this function)
     391 |    (fatal_signal_pending(current) ||
         |                          ^~~~~~~
   include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
      78 | # define unlikely(x) __builtin_expect(!!(x), 0)
         |                                          ^
   In file included from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/proc_fs.h:10,
                    from arch/sparc/include/asm/prom.h:18,
                    from include/linux/of.h:250,
                    from arch/sparc/include/asm/openprom.h:15,
                    from arch/sparc/include/asm/oplib_32.h:12,
                    from arch/sparc/include/asm/oplib.h:7,
                    from arch/sparc/include/asm/pgtable_32.h:32,
                    from arch/sparc/include/asm/pgtable.h:7,
                    from arch/sparc/include/asm/viking.h:13,
                    from arch/sparc/include/asm/mbus.h:12,
                    from arch/sparc/include/asm/elf_32.h:94,
                    from arch/sparc/include/asm/elf.h:7,
                    from include/linux/elf.h:6,
                    from include/linux/module.h:18,
                    from include/linux/moduleloader.h:6,
                    from include/linux/vmalloc.h:12,
                    from include/asm-generic/io.h:911,
                    from arch/sparc/include/asm/io_32.h:14,
                    from arch/sparc/include/asm/io.h:7,
                    from arch/sparc/vdso/vdso32/../vclock_gettime.c:18,
                    from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
   include/linux/sched/signal.h: In function 'restore_saved_sigmask':
   include/linux/sched/signal.h:497:26: error: 'current' undeclared (first use in this function)
     497 |   __set_current_blocked(&current->saved_sigmask);
         |                          ^~~~~~~
   include/linux/sched/signal.h: In function 'sigmask_to_save':
   include/linux/sched/signal.h:512:19: error: 'current' undeclared (first use in this function)
     512 |  sigset_t *res = &current->blocked;
         |                   ^~~~~~~
   include/linux/sched/signal.h: In function 'on_sig_stack':
   include/linux/sched/signal.h:541:6: error: 'current' undeclared (first use in this function)
     541 |  if (current->sas_ss_flags & SS_AUTODISARM)
         |      ^~~~~~~
   include/linux/sched/signal.h: In function 'sas_ss_flags':
   include/linux/sched/signal.h:555:7: error: 'current' undeclared (first use in this function)
     555 |  if (!current->sas_ss_size)
         |       ^~~~~~~
   include/linux/sched/signal.h: In function 'sigsp':
   include/linux/sched/signal.h:574:10: error: 'current' undeclared (first use in this function)
     574 |   return current->sas_ss_sp + current->sas_ss_size;
         |          ^~~~~~~
   include/linux/sched/signal.h: In function 'rlimit':
   include/linux/sched/signal.h:710:21: error: 'current' undeclared (first use in this function)
     710 |  return task_rlimit(current, limit);
         |                     ^~~~~~~
   include/linux/sched/signal.h: In function 'rlimit_max':
   include/linux/sched/signal.h:715:25: error: 'current' undeclared (first use in this function)
     715 |  return task_rlimit_max(current, limit);
         |                         ^~~~~~~
   In file included from include/linux/rbtree.h:22,
                    from include/linux/vmalloc.h:10,
                    from include/asm-generic/io.h:911,
                    from arch/sparc/include/asm/io_32.h:14,
                    from arch/sparc/include/asm/io.h:7,
                    from arch/sparc/vdso/vdso32/../vclock_gettime.c:18,
                    from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
   include/linux/rcuwait.h: In function 'prepare_to_rcuwait':
>> include/linux/rcuwait.h:47:30: error: 'current' undeclared (first use in this function)
      47 |  rcu_assign_pointer(w->task, current);
         |                              ^~~~~~~
   include/linux/rcupdate.h:409:36: note: in definition of macro 'rcu_assign_pointer'
     409 |  uintptr_t _r_a_p__v = (uintptr_t)(v);          \
         |                                    ^
   In file included from include/linux/sched/signal.h:7,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/proc_fs.h:10,
                    from arch/sparc/include/asm/prom.h:18,
                    from include/linux/of.h:250,
                    from arch/sparc/include/asm/openprom.h:15,
                    from arch/sparc/include/asm/oplib_32.h:12,
                    from arch/sparc/include/asm/oplib.h:7,
                    from arch/sparc/include/asm/pgtable_32.h:32,
                    from arch/sparc/include/asm/pgtable.h:7,
                    from arch/sparc/include/asm/viking.h:13,
                    from arch/sparc/include/asm/mbus.h:12,
                    from arch/sparc/include/asm/elf_32.h:94,
                    from arch/sparc/include/asm/elf.h:7,
                    from include/linux/elf.h:6,
                    from include/linux/module.h:18,
                    from include/linux/moduleloader.h:6,
                    from include/linux/vmalloc.h:12,
                    from include/asm-generic/io.h:911,
                    from arch/sparc/include/asm/io_32.h:14,
                    from arch/sparc/include/asm/io.h:7,
                    from arch/sparc/vdso/vdso32/../vclock_gettime.c:18,
                    from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
   include/linux/rcuwait.h: In function 'finish_rcuwait':
   include/linux/sched.h:133:3: error: 'current' undeclared (first use in this function)
     133 |   current->task_state_change = _THIS_IP_;  \
         |   ^~~~~~~
   include/linux/rcuwait.h:53:2: note: in expansion of macro '__set_current_state'
      53 |  __set_current_state(TASK_RUNNING);
         |  ^~~~~~~~~~~~~~~~~~~
   In file included from include/linux/fs.h:38,
                    from include/linux/proc_fs.h:10,
                    from arch/sparc/include/asm/prom.h:18,
                    from include/linux/of.h:250,
                    from arch/sparc/include/asm/openprom.h:15,
                    from arch/sparc/include/asm/oplib_32.h:12,
                    from arch/sparc/include/asm/oplib.h:7,
                    from arch/sparc/include/asm/pgtable_32.h:32,
                    from arch/sparc/include/asm/pgtable.h:7,
                    from arch/sparc/include/asm/viking.h:13,
                    from arch/sparc/include/asm/mbus.h:12,
                    from arch/sparc/include/asm/elf_32.h:94,
                    from arch/sparc/include/asm/elf.h:7,
                    from include/linux/elf.h:6,
                    from include/linux/module.h:18,
                    from include/linux/moduleloader.h:6,
                    from include/linux/vmalloc.h:12,
                    from include/asm-generic/io.h:911,
                    from arch/sparc/include/asm/io_32.h:14,
                    from arch/sparc/include/asm/io.h:7,
                    from arch/sparc/vdso/vdso32/../vclock_gettime.c:18,
                    from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
   include/linux/ioprio.h: In function 'get_current_ioprio':
>> include/linux/ioprio.h:79:27: error: 'current' undeclared (first use in this function)
      79 |  struct io_context *ioc = current->io_context;
         |                           ^~~~~~~
   In file included from arch/sparc/include/asm/page_32.h:136,
                    from arch/sparc/include/asm/page.h:10,
                    from arch/sparc/include/asm/string_32.h:13,
                    from arch/sparc/include/asm/string.h:7,
                    from include/linux/string.h:20,
                    from include/linux/bitmap.h:9,
                    from include/linux/cpumask.h:12,
                    from arch/sparc/include/asm/smp_32.h:15,
                    from arch/sparc/include/asm/smp.h:7,
                    from arch/sparc/include/asm/switch_to_32.h:5,
                    from arch/sparc/include/asm/switch_to.h:7,
                    from arch/sparc/include/asm/ptrace.h:120,
                    from arch/sparc/include/asm/thread_info_32.h:19,
                    from arch/sparc/include/asm/thread_info.h:7,
                    from include/linux/thread_info.h:38,
                    from include/asm-generic/preempt.h:5,
                    from ./arch/sparc/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:78,
                    from include/linux/spinlock.h:51,
                    from include/linux/seqlock.h:36,
                    from include/linux/time.h:6,
                    from arch/sparc/vdso/vdso32/../vclock_gettime.c:16,
                    from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
   arch/sparc/include/asm/pgtable_32.h: In function 'pmd_page':
   include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'mem_map'?
      54 | #define __pfn_to_page(pfn) (vmemmap + (pfn))
         |                             ^~~~~~~
   include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
      82 | #define pfn_to_page __pfn_to_page
         |                     ^~~~~~~~~~~~~
   arch/sparc/include/asm/pgtable_32.h:135:9: note: in expansion of macro 'pfn_to_page'
     135 |  return pfn_to_page((pmd_val(pmd) & SRMMU_PTD_PMASK) >> (PAGE_SHIFT-4));
         |         ^~~~~~~~~~~
   In file included from arch/sparc/include/asm/page.h:10,
                    from arch/sparc/include/asm/string_32.h:13,
                    from arch/sparc/include/asm/string.h:7,
                    from include/linux/string.h:20,
                    from include/linux/bitmap.h:9,
                    from include/linux/cpumask.h:12,
                    from arch/sparc/include/asm/smp_32.h:15,
                    from arch/sparc/include/asm/smp.h:7,
                    from arch/sparc/include/asm/switch_to_32.h:5,
                    from arch/sparc/include/asm/switch_to.h:7,
                    from arch/sparc/include/asm/ptrace.h:120,
                    from arch/sparc/include/asm/thread_info_32.h:19,
                    from arch/sparc/include/asm/thread_info.h:7,
                    from include/linux/thread_info.h:38,
                    from include/asm-generic/preempt.h:5,
                    from ./arch/sparc/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:78,
                    from include/linux/spinlock.h:51,
                    from include/linux/seqlock.h:36,
                    from include/linux/time.h:6,
                    from arch/sparc/vdso/vdso32/../vclock_gettime.c:16,
                    from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
   arch/sparc/include/asm/pgtable_32.h: In function 'mk_pte':
   include/asm-generic/memory_model.h:55:54: error: 'vmemmap' undeclared (first use in this function); did you mean 'mem_map'?
      55 | #define __page_to_pfn(page) (unsigned long)((page) - vmemmap)
         |                                                      ^~~~~~~
   arch/sparc/include/asm/page_32.h:99:19: note: in definition of macro '__pte'
      99 | #define __pte(x) (x)
         |                   ^
   include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
      81 | #define page_to_pfn __page_to_pfn
         |                     ^~~~~~~~~~~~~
   arch/sparc/include/asm/pgtable_32.h:297:16: note: in expansion of macro 'page_to_pfn'
     297 |  return __pte((page_to_pfn(page) << (PAGE_SHIFT-4)) | pgprot_val(pgprot));
         |                ^~~~~~~~~~~
   In file included from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
   arch/sparc/vdso/vdso32/../vclock_gettime.c: At top level:
   arch/sparc/vdso/vdso32/../vclock_gettime.c:254:1: warning: no previous prototype for '__vdso_clock_gettime' [-Wmissing-prototypes]
     254 | __vdso_clock_gettime(clockid_t clock, struct __kernel_old_timespec *ts)
         | ^~~~~~~~~~~~~~~~~~~~
   arch/sparc/vdso/vdso32/../vclock_gettime.c:282:1: warning: no previous prototype for '__vdso_clock_gettime_stick' [-Wmissing-prototypes]
     282 | __vdso_clock_gettime_stick(clockid_t clock, struct __kernel_old_timespec *ts)
         | ^~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/sparc/vdso/vdso32/../vclock_gettime.c:307:1: warning: no previous prototype for '__vdso_gettimeofday' [-Wmissing-prototypes]
     307 | __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
         | ^~~~~~~~~~~~~~~~~~~
   arch/sparc/vdso/vdso32/../vclock_gettime.c:343:1: warning: no previous prototype for '__vdso_gettimeofday_stick' [-Wmissing-prototypes]
     343 | __vdso_gettimeofday_stick(struct __kernel_old_timeval *tv, struct timezone *tz)
         | ^~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +1317 include/linux/mmzone.h

f46edbd1b1516d Dan Williams   2019-07-18  1315  
7b7bf499f79de3 Will Deacon    2011-05-19  1316  #ifndef CONFIG_HAVE_ARCH_PFN_VALID
d41dee369bff3b Andy Whitcroft 2005-06-23 @1317  static inline int pfn_valid(unsigned long pfn)
d41dee369bff3b Andy Whitcroft 2005-06-23  1318  {
f46edbd1b1516d Dan Williams   2019-07-18  1319  	struct mem_section *ms;
f46edbd1b1516d Dan Williams   2019-07-18  1320  
d41dee369bff3b Andy Whitcroft 2005-06-23  1321  	if (pfn_to_section_nr(pfn) >= NR_MEM_SECTIONS)
d41dee369bff3b Andy Whitcroft 2005-06-23  1322  		return 0;
f46edbd1b1516d Dan Williams   2019-07-18  1323  	ms = __nr_to_section(pfn_to_section_nr(pfn));
f46edbd1b1516d Dan Williams   2019-07-18  1324  	if (!valid_section(ms))
f46edbd1b1516d Dan Williams   2019-07-18  1325  		return 0;
f46edbd1b1516d Dan Williams   2019-07-18  1326  	/*
f46edbd1b1516d Dan Williams   2019-07-18  1327  	 * Traditionally early sections always returned pfn_valid() for
f46edbd1b1516d Dan Williams   2019-07-18  1328  	 * the entire section-sized span.
f46edbd1b1516d Dan Williams   2019-07-18  1329  	 */
f46edbd1b1516d Dan Williams   2019-07-18  1330  	return early_section(ms) || pfn_section_valid(ms, pfn);
d41dee369bff3b Andy Whitcroft 2005-06-23  1331  }
7b7bf499f79de3 Will Deacon    2011-05-19  1332  #endif
d41dee369bff3b Andy Whitcroft 2005-06-23  1333  

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

Download attachment ".config.gz" of type "application/gzip" (31687 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ