lkml.org 
[lkml]   [2021]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[arnd-playground:asm-generic-uaccess-6 10/10] arch/xtensa/kernel/xtensa_ksyms.c:47:15: error: '__strncpy_user' undeclared here (not in a function); did you mean '__strnlen_user'?
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git asm-generic-uaccess-6
head: 3b678070bb03678466211f4f13b156fbae62b0db
commit: 3b678070bb03678466211f4f13b156fbae62b0db [10/10] asm-generic: reverse GENERIC_{STRNCPY_FROM,STRNLEN}_USER symbols
config: xtensa-common_defconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 10.3.0
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
# https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/commit/?id=3b678070bb03678466211f4f13b156fbae62b0db
git remote add arnd-playground https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
git fetch --no-tags arnd-playground asm-generic-uaccess-6
git checkout 3b678070bb03678466211f4f13b156fbae62b0db
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=xtensa SHELL=/bin/bash

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 include/linux/linkage.h:7,
from include/linux/kernel.h:8,
from include/linux/list.h:9,
from include/linux/module.h:12,
from arch/xtensa/kernel/xtensa_ksyms.c:15:
>> arch/xtensa/kernel/xtensa_ksyms.c:47:15: error: '__strncpy_user' undeclared here (not in a function); did you mean '__strnlen_user'?
47 | EXPORT_SYMBOL(__strncpy_user);
| ^~~~~~~~~~~~~~
include/linux/export.h:98:16: note: in definition of macro '___EXPORT_SYMBOL'
98 | extern typeof(sym) sym; \
| ^~~
include/linux/export.h:160:34: note: in expansion of macro '__EXPORT_SYMBOL'
160 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
| ^~~~~~~~~~~~~~~
include/linux/export.h:163:29: note: in expansion of macro '_EXPORT_SYMBOL'
163 | #define EXPORT_SYMBOL(sym) _EXPORT_SYMBOL(sym, "")
| ^~~~~~~~~~~~~~
arch/xtensa/kernel/xtensa_ksyms.c:47:1: note: in expansion of macro 'EXPORT_SYMBOL'
47 | EXPORT_SYMBOL(__strncpy_user);
| ^~~~~~~~~~~~~
arch/xtensa/kernel/xtensa_ksyms.c:83:6: warning: no previous prototype for '__xtensa_libgcc_window_spill' [-Wmissing-prototypes]
83 | void __xtensa_libgcc_window_spill(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +47 arch/xtensa/kernel/xtensa_ksyms.c

5a0015d62668e6 Chris Zankel 2005-06-23 35
5a0015d62668e6 Chris Zankel 2005-06-23 36
5a0015d62668e6 Chris Zankel 2005-06-23 37 /*
5a0015d62668e6 Chris Zankel 2005-06-23 38 * String functions
5a0015d62668e6 Chris Zankel 2005-06-23 39 */
5a0015d62668e6 Chris Zankel 2005-06-23 40 EXPORT_SYMBOL(memset);
5a0015d62668e6 Chris Zankel 2005-06-23 41 EXPORT_SYMBOL(memcpy);
5a0015d62668e6 Chris Zankel 2005-06-23 42 EXPORT_SYMBOL(memmove);
c633544a615414 Max Filippov 2017-12-03 43 EXPORT_SYMBOL(__memset);
c633544a615414 Max Filippov 2017-12-03 44 EXPORT_SYMBOL(__memcpy);
c633544a615414 Max Filippov 2017-12-03 45 EXPORT_SYMBOL(__memmove);
57358ba9564a05 Max Filippov 2017-12-17 46 #ifndef CONFIG_GENERIC_STRNCPY_FROM_USER
d3738f407c8ced Max Filippov 2012-09-17 @47 EXPORT_SYMBOL(__strncpy_user);
57358ba9564a05 Max Filippov 2017-12-17 48 #endif
d3738f407c8ced Max Filippov 2012-09-17 49 EXPORT_SYMBOL(clear_page);
d3738f407c8ced Max Filippov 2012-09-17 50 EXPORT_SYMBOL(copy_page);
5a0015d62668e6 Chris Zankel 2005-06-23 51

:::::: The code at line 47 was first introduced by commit
:::::: d3738f407c8ced4fd17dccf6cce729023c735c73 xtensa: add missing symbol exports

:::::: TO: Max Filippov <jcmvbkbc@gmail.com>
:::::: CC: Chris Zankel <chris@zankel.net>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-07-30 06:19    [W:0.281 / U:0.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site