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>] [day] [month] [year] [list]
Message-ID: <201912151917.l16gTUwN%lkp@intel.com>
Date:   Sun, 15 Dec 2019 19:37:23 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Christoph Hellwig <hch@....de>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Paul Walmsley <paul.walmsley@...ive.com>,
        Anup Patel <anup@...infault.org>
Subject: arch/riscv//kernel/riscv_ksyms.c:13:15: error: '__asm_copy_to_user'
 undeclared here (not in a function); did you mean '__copy_to_user'?

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   510c9788991c58827373bca719d8cffa4d65f846
commit: 6bd33e1ece528f67646db33bf97406b747dafda0 riscv: add nommu support
date:   4 weeks ago
config: riscv-randconfig-a001-20191215 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 7.5.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 6bd33e1ece528f67646db33bf97406b747dafda0
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.0 make.cross ARCH=riscv 

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

All error/warnings (new ones prefixed by >>):

   In file included from arch/riscv//kernel/riscv_ksyms.c:6:0:
>> arch/riscv//kernel/riscv_ksyms.c:13:15: error: '__asm_copy_to_user' undeclared here (not in a function); did you mean '__copy_to_user'?
    EXPORT_SYMBOL(__asm_copy_to_user);
                  ^
   include/linux/export.h:102:16: note: in definition of macro '___export_symbol_common'
     extern typeof(sym) sym;      \
                   ^~~
   include/linux/export.h:169:34: note: in expansion of macro '___EXPORT_SYMBOL'
    #define __EXPORT_SYMBOL(sym,sec) ___EXPORT_SYMBOL(sym,sec)
                                     ^~~~~~~~~~~~~~~~
   include/linux/export.h:179:29: note: in expansion of macro '__EXPORT_SYMBOL'
    #define EXPORT_SYMBOL(sym)  __EXPORT_SYMBOL(sym, "")
                                ^~~~~~~~~~~~~~~
   arch/riscv//kernel/riscv_ksyms.c:13:1: note: in expansion of macro 'EXPORT_SYMBOL'
    EXPORT_SYMBOL(__asm_copy_to_user);
    ^~~~~~~~~~~~~
>> arch/riscv//kernel/riscv_ksyms.c:14:15: error: '__asm_copy_from_user' undeclared here (not in a function); did you mean '__asm_copy_to_user'?
    EXPORT_SYMBOL(__asm_copy_from_user);
                  ^
   include/linux/export.h:102:16: note: in definition of macro '___export_symbol_common'
     extern typeof(sym) sym;      \
                   ^~~
   include/linux/export.h:169:34: note: in expansion of macro '___EXPORT_SYMBOL'
    #define __EXPORT_SYMBOL(sym,sec) ___EXPORT_SYMBOL(sym,sec)
                                     ^~~~~~~~~~~~~~~~
   include/linux/export.h:179:29: note: in expansion of macro '__EXPORT_SYMBOL'
    #define EXPORT_SYMBOL(sym)  __EXPORT_SYMBOL(sym, "")
                                ^~~~~~~~~~~~~~~
   arch/riscv//kernel/riscv_ksyms.c:14:1: note: in expansion of macro 'EXPORT_SYMBOL'
    EXPORT_SYMBOL(__asm_copy_from_user);
    ^~~~~~~~~~~~~
--
   In file included from include/linux/init.h:5:0,
                    from include/linux/moduleparam.h:5,
                    from drivers/gpu//drm/udl/udl_fb.c:11:
   drivers/gpu//drm/udl/udl_fb.c: In function 'udl_fb_mmap':
>> drivers/gpu//drm/udl/udl_fb.c:185:52: error: 'PAGE_SHARED' undeclared (first use in this function); did you mean 'ACPI_SHARED'?
      if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
                                                       ^
   include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
    #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                       ^~~~
>> drivers/gpu//drm/udl/udl_fb.c:185:3: note: in expansion of macro 'if'
      if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
      ^~
   drivers/gpu//drm/udl/udl_fb.c:185:52: note: each undeclared identifier is reported only once for each function it appears in
      if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
                                                       ^
   include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
    #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                       ^~~~
>> drivers/gpu//drm/udl/udl_fb.c:185:3: note: in expansion of macro 'if'
      if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
      ^~
--
   In file included from include/linux/kernel.h:11:0,
                    from include/linux/list.h:9,
                    from include/linux/module.h:9,
                    from drivers/video/fbdev/udlfb.c:16:
   drivers/video/fbdev/udlfb.c: In function 'dlfb_ops_mmap':
   drivers/video/fbdev/udlfb.c:343:52: error: 'PAGE_SHARED' undeclared (first use in this function); did you mean 'ACPI_SHARED'?
      if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
                                                       ^
   include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
    #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                       ^~~~
>> drivers/video/fbdev/udlfb.c:343:3: note: in expansion of macro 'if'
      if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
      ^~
   drivers/video/fbdev/udlfb.c:343:52: note: each undeclared identifier is reported only once for each function it appears in
      if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
                                                       ^
   include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
    #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                       ^~~~
>> drivers/video/fbdev/udlfb.c:343:3: note: in expansion of macro 'if'
      if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
      ^~
--
   In file included from include/linux/kernel.h:11:0,
                    from include/linux/list.h:9,
                    from include/linux/module.h:9,
                    from drivers/video/fbdev/smscufx.c:22:
   drivers/video/fbdev/smscufx.c: In function 'ufx_ops_mmap':
   drivers/video/fbdev/smscufx.c:796:52: error: 'PAGE_SHARED' undeclared (first use in this function); did you mean 'ACPI_SHARED'?
      if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
                                                       ^
   include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
    #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                       ^~~~
>> drivers/video/fbdev/smscufx.c:796:3: note: in expansion of macro 'if'
      if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
      ^~
   drivers/video/fbdev/smscufx.c:796:52: note: each undeclared identifier is reported only once for each function it appears in
      if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
                                                       ^
   include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
    #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                       ^~~~
>> drivers/video/fbdev/smscufx.c:796:3: note: in expansion of macro 'if'
      if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
      ^~

vim +13 arch/riscv//kernel/riscv_ksyms.c

e2c0cdfba7f699 Palmer Dabbelt     2017-07-10  @6  #include <linux/export.h>
e2c0cdfba7f699 Palmer Dabbelt     2017-07-10   7  #include <linux/uaccess.h>
e2c0cdfba7f699 Palmer Dabbelt     2017-07-10   8  
e2c0cdfba7f699 Palmer Dabbelt     2017-07-10   9  /*
e2c0cdfba7f699 Palmer Dabbelt     2017-07-10  10   * Assembly functions that may be used (directly or indirectly) by modules
e2c0cdfba7f699 Palmer Dabbelt     2017-07-10  11   */
24948b7ec0f31d Olof Johansson     2017-11-29  12  EXPORT_SYMBOL(__clear_user);
86406d51d3600b Luc Van Oostenryck 2018-06-09 @13  EXPORT_SYMBOL(__asm_copy_to_user);
86406d51d3600b Luc Van Oostenryck 2018-06-09 @14  EXPORT_SYMBOL(__asm_copy_from_user);

:::::: The code at line 13 was first introduced by commit
:::::: 86406d51d3600bfa2b6f86e1e6bfce712bec0d53 riscv: split the declaration of __copy_user

:::::: TO: Luc Van Oostenryck <luc.vanoostenryck@...il.com>
:::::: CC: Palmer Dabbelt <palmer@...ive.com>

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ