From: kernel test robot <lkp@intel.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Christoph Hellwig <hch@lst.de>
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'?
Date: Fri, 30 Jul 2021 12:17:06 +0800 [thread overview]
Message-ID: <202107301252.3kxsyNC7-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4121 bytes --]
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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 10953 bytes --]
reply other threads:[~2021-07-30 4:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202107301252.3kxsyNC7-lkp@intel.com \
--to=lkp@intel.com \
--cc=arnd@arndb.de \
--cc=hch@lst.de \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®