From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [kees:kspp/memcpy/next-20210618/v0 57/82] lib/test_fortify/test_fortify.h:21:6: error: no previous prototype for function 'do_fortify_tests'
Date: Sat, 19 Jun 2021 20:01:35 +0800 [thread overview]
Message-ID: <202106192033.QVTsyycL-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 7973 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git kspp/memcpy/next-20210618/v0
head: fd2aa2a169de8bde9502e7a2fc48cd03d4bfd996
commit: dd93fde9c4d11dfdf032f768a92ddc9c879fbc78 [57/82] fortify: Add compile-time FORTIFY_SOURCE tests
config: x86_64-randconfig-a002-20210618 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d1baf2895467735ab14f4b3415fce204c0cc8e7f)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git/commit/?id=dd93fde9c4d11dfdf032f768a92ddc9c879fbc78
git remote add kees https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git
git fetch --no-tags kees kspp/memcpy/next-20210618/v0
git checkout dd93fde9c4d11dfdf032f768a92ddc9c879fbc78
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
warning: unsafe memmove() usage lacked '__read_overflow2' warning in lib/test_fortify/read_overflow2-memmove.c
In file included from lib/test_fortify/read_overflow2-memmove.c:5:
>> lib/test_fortify/test_fortify.h:21:6: error: no previous prototype for function 'do_fortify_tests' [-Werror,-Wmissing-prototypes]
void do_fortify_tests(void)
^
lib/test_fortify/test_fortify.h:21:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void do_fortify_tests(void)
^
static
1 error generated.
--
>> warning: unsafe memcmp() usage lacked '__read_overflow' warning in lib/test_fortify/read_overflow-memcmp.c
In file included from lib/test_fortify/read_overflow-memcmp.c:5:
>> lib/test_fortify/test_fortify.h:21:6: error: no previous prototype for function 'do_fortify_tests' [-Werror,-Wmissing-prototypes]
void do_fortify_tests(void)
^
lib/test_fortify/test_fortify.h:21:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void do_fortify_tests(void)
^
static
1 error generated.
--
warning: unsafe memmove() usage lacked '__write_overflow' warning in lib/test_fortify/write_overflow-memmove.c
In file included from lib/test_fortify/write_overflow-memmove.c:5:
>> lib/test_fortify/test_fortify.h:21:6: error: no previous prototype for function 'do_fortify_tests' [-Werror,-Wmissing-prototypes]
void do_fortify_tests(void)
^
lib/test_fortify/test_fortify.h:21:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void do_fortify_tests(void)
^
static
1 error generated.
--
>> warning: unsafe memscan() usage lacked '__read_overflow' warning in lib/test_fortify/read_overflow-memscan.c
In file included from lib/test_fortify/read_overflow-memscan.c:5:
>> lib/test_fortify/test_fortify.h:21:6: error: no previous prototype for function 'do_fortify_tests' [-Werror,-Wmissing-prototypes]
void do_fortify_tests(void)
^
lib/test_fortify/test_fortify.h:21:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void do_fortify_tests(void)
^
static
1 error generated.
--
>> warning: unsafe memcmp() usage lacked '__read_overflow2' warning in lib/test_fortify/read_overflow2-memcmp.c
In file included from lib/test_fortify/read_overflow2-memcmp.c:5:
>> lib/test_fortify/test_fortify.h:21:6: error: no previous prototype for function 'do_fortify_tests' [-Werror,-Wmissing-prototypes]
void do_fortify_tests(void)
^
lib/test_fortify/test_fortify.h:21:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void do_fortify_tests(void)
^
static
1 error generated.
--
warning: unsafe memcpy() usage lacked '__read_overflow2' warning in lib/test_fortify/read_overflow2-memcpy.c
In file included from lib/test_fortify/read_overflow2-memcpy.c:5:
>> lib/test_fortify/test_fortify.h:21:6: error: no previous prototype for function 'do_fortify_tests' [-Werror,-Wmissing-prototypes]
void do_fortify_tests(void)
^
lib/test_fortify/test_fortify.h:21:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void do_fortify_tests(void)
^
static
1 error generated.
--
>> warning: unsafe strscpy() usage lacked '__write_overflow' warning in lib/test_fortify/write_overflow-strscpy.c
In file included from lib/test_fortify/write_overflow-strscpy.c:5:
>> lib/test_fortify/test_fortify.h:21:6: error: no previous prototype for function 'do_fortify_tests' [-Werror,-Wmissing-prototypes]
void do_fortify_tests(void)
^
lib/test_fortify/test_fortify.h:21:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void do_fortify_tests(void)
^
static
1 error generated.
--
warning: unsafe memcpy() usage lacked '__write_overflow' warning in lib/test_fortify/write_overflow-memcpy.c
In file included from lib/test_fortify/write_overflow-memcpy.c:5:
>> lib/test_fortify/test_fortify.h:21:6: error: no previous prototype for function 'do_fortify_tests' [-Werror,-Wmissing-prototypes]
void do_fortify_tests(void)
^
lib/test_fortify/test_fortify.h:21:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void do_fortify_tests(void)
^
static
1 error generated.
--
>> warning: unsafe memchr_inv() usage lacked '__read_overflow' warning in lib/test_fortify/read_overflow-memchr_inv.c
In file included from lib/test_fortify/read_overflow-memchr_inv.c:5:
>> lib/test_fortify/test_fortify.h:21:6: error: no previous prototype for function 'do_fortify_tests' [-Werror,-Wmissing-prototypes]
void do_fortify_tests(void)
^
lib/test_fortify/test_fortify.h:21:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void do_fortify_tests(void)
^
static
1 error generated.
--
>> warning: unsafe memchr() usage lacked '__read_overflow' warning in lib/test_fortify/read_overflow-memchr.c
In file included from lib/test_fortify/read_overflow-memchr.c:5:
>> lib/test_fortify/test_fortify.h:21:6: error: no previous prototype for function 'do_fortify_tests' [-Werror,-Wmissing-prototypes]
void do_fortify_tests(void)
^
lib/test_fortify/test_fortify.h:21:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void do_fortify_tests(void)
^
static
1 error generated.
--
>> warning: unsafe strncpy() usage lacked '__write_overflow' warning in lib/test_fortify/write_overflow-strncpy.c
In file included from lib/test_fortify/write_overflow-strncpy.c:5:
>> lib/test_fortify/test_fortify.h:21:6: error: no previous prototype for function 'do_fortify_tests' [-Werror,-Wmissing-prototypes]
void do_fortify_tests(void)
^
lib/test_fortify/test_fortify.h:21:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void do_fortify_tests(void)
^
static
1 error generated.
..
vim +/do_fortify_tests +21 lib/test_fortify/test_fortify.h
20
> 21 void do_fortify_tests(void)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 38099 bytes --]
reply other threads:[~2021-06-19 12:01 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=202106192033.QVTsyycL-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.