[vfs:untested-uaccess 53/79] arch/mn10300/kernel/mn10300_ksyms.c:29:15: error: '__generic_copy_from_user' undeclared here (not in a function)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git untested-uaccess
head:   e4c5cc79ec8eab6bc3e74d9994b33f368f137223
commit: 8d6d3f932311964950d994b1edfade9e952580f6 [53/79] mn10300: switch to RAW_COPY_USER
config: mn10300-asb2364_defconfig (attached as .config)
compiler: am33_2.0-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 8d6d3f932311964950d994b1edfade9e952580f6
        # save the attached .config to linux build tree
        make.cross ARCH=mn10300 

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

   arch/mn10300/lib/checksum.c: In function 'csum_partial_copy':
>> arch/mn10300/lib/checksum.c:56:2: warning: ignoring return value of 'copy_from_user', declared with attribute warn_unused_result [-Wunused-result]
     copy_from_user(dst, src, len);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
   In file included from include/linux/linkage.h:6:0,
                    from include/linux/kernel.h:6,
                    from include/linux/list.h:8,
                    from include/linux/module.h:9,
                    from arch/mn10300/kernel/mn10300_ksyms.c:11:
>> arch/mn10300/kernel/mn10300_ksyms.c:29:15: error: '__generic_copy_from_user' undeclared here (not in a function)
    EXPORT_SYMBOL(__generic_copy_from_user);
                  ^
   include/linux/export.h:65:16: note: in definition of macro '___EXPORT_SYMBOL'
     extern typeof(sym) sym;      \
                   ^~~
   arch/mn10300/kernel/mn10300_ksyms.c:29:1: note: in expansion of macro 'EXPORT_SYMBOL'
    EXPORT_SYMBOL(__generic_copy_from_user);
    ^~~~~~~~~~~~~
>> arch/mn10300/kernel/mn10300_ksyms.c:30:15: error: '__generic_copy_to_user' undeclared here (not in a function)
    EXPORT_SYMBOL(__generic_copy_to_user);
                  ^
   include/linux/export.h:65:16: note: in definition of macro '___EXPORT_SYMBOL'
     extern typeof(sym) sym;      \
                   ^~~
   arch/mn10300/kernel/mn10300_ksyms.c:30:1: note: in expansion of macro 'EXPORT_SYMBOL'
    EXPORT_SYMBOL(__generic_copy_to_user);
    ^~~~~~~~~~~~~

vim +/__generic_copy_from_user +29 arch/mn10300/kernel/mn10300_ksyms.c

b920de1b7 David Howells  2008-02-08   5   *
b920de1b7 David Howells  2008-02-08   6   * This program is free software; you can redistribute it and/or
b920de1b7 David Howells  2008-02-08   7   * modify it under the terms of the GNU General Public Licence
b920de1b7 David Howells  2008-02-08   8   * as published by the Free Software Foundation; either version
b920de1b7 David Howells  2008-02-08   9   * 2 of the Licence, or (at your option) any later version.
b920de1b7 David Howells  2008-02-08  10   */
b920de1b7 David Howells  2008-02-08 @11  #include <linux/module.h>
7c0f6ba68 Linus Torvalds 2016-12-24  12  #include <linux/uaccess.h>
7fc7228c0 David Howells  2008-07-04  13  #include <asm/pgtable.h>
b920de1b7 David Howells  2008-02-08  14  
b920de1b7 David Howells  2008-02-08  15  
7fc7228c0 David Howells  2008-07-04  16  EXPORT_SYMBOL(empty_zero_page);
7fc7228c0 David Howells  2008-07-04  17  
b920de1b7 David Howells  2008-02-08  18  EXPORT_SYMBOL(change_bit);
b920de1b7 David Howells  2008-02-08  19  EXPORT_SYMBOL(test_and_change_bit);
b920de1b7 David Howells  2008-02-08  20  
b920de1b7 David Howells  2008-02-08  21  EXPORT_SYMBOL(memcpy);
b920de1b7 David Howells  2008-02-08  22  EXPORT_SYMBOL(memmove);
b920de1b7 David Howells  2008-02-08  23  EXPORT_SYMBOL(memset);
b920de1b7 David Howells  2008-02-08  24  
b920de1b7 David Howells  2008-02-08  25  EXPORT_SYMBOL(strncpy_from_user);
b920de1b7 David Howells  2008-02-08  26  EXPORT_SYMBOL(__strncpy_from_user);
b920de1b7 David Howells  2008-02-08  27  EXPORT_SYMBOL(clear_user);
b920de1b7 David Howells  2008-02-08  28  EXPORT_SYMBOL(__clear_user);
b920de1b7 David Howells  2008-02-08 @29  EXPORT_SYMBOL(__generic_copy_from_user);
b920de1b7 David Howells  2008-02-08 @30  EXPORT_SYMBOL(__generic_copy_to_user);
b920de1b7 David Howells  2008-02-08  31  EXPORT_SYMBOL(strnlen_user);
b920de1b7 David Howells  2008-02-08  32  
b920de1b7 David Howells  2008-02-08  33  extern u64 __ashrdi3(u64, unsigned);

:::::: The code at line 29 was first introduced by commit
:::::: b920de1b77b72ca9432ac3f97edb26541e65e5dd mn10300: add the MN10300/AM33 architecture to the kernel

:::::: TO: David Howells <dhowells@xxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux