tree:
https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git
kspp/memcpy/next-20210618/v0
head: fd2aa2a169de8bde9502e7a2fc48cd03d4bfd996
commit: 6d805912063804ea975440760b79392fc0c03948 [81/82] fortify: Work around Clang
inlining bugs
config: arm-aspeed_g5_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.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/kees/linux.git/commit/?id...
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 6d805912063804ea975440760b79392fc0c03948
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/string.h:253,
from arch/arm/boot/compressed/string.c:8:
> include/linux/fortify-string.h:304:7: error: expected declaration
specifiers or '...' before '__builtin_object_size'
304 |
__builtin_object_size(p, 1), \
| ^~~~~~~~~~~~~~~~~~~~~
arch/arm/boot/compressed/string.c:29:7: note: in expansion of macro 'memcpy'
29 | void *memcpy(void *__dest, __const void *__src, size_t __n)
| ^~~~~~
include/linux/fortify-string.h:305:7: error: expected declaration specifiers or
'...' before '__builtin_object_size'
305 | __builtin_object_size(q, 1))
| ^~~~~~~~~~~~~~~~~~~~~
arch/arm/boot/compressed/string.c:29:7: note: in expansion of macro 'memcpy'
29 | void *memcpy(void *__dest, __const void *__src, size_t __n)
| ^~~~~~
include/linux/fortify-string.h:316:9: error: expected declaration specifiers or
'...' before '__builtin_object_size'
316 | __builtin_object_size(p, 1), \
| ^~~~~~~~~~~~~~~~~~~~~
arch/arm/boot/compressed/string.c:63:7: note: in expansion of macro 'memmove'
63 | void *memmove(void *__dest, __const void *__src, size_t count)
| ^~~~~~~
include/linux/fortify-string.h:317:9: error: expected declaration specifiers or
'...' before '__builtin_object_size'
317 | __builtin_object_size(q, 1))
| ^~~~~~~~~~~~~~~~~~~~~
arch/arm/boot/compressed/string.c:63:7: note: in expansion of macro 'memmove'
63 | void *memmove(void *__dest, __const void *__src, size_t count)
| ^~~~~~~
vim +304 include/linux/fortify-string.h
302
303 #define memcpy(p, q, s) __fortify_memcpy(p, q, s, \
304 __builtin_object_size(p, 1), \
305
__builtin_object_size(q, 1))
306 __FORTIFY_INLINE void *__fortify_memcpy(void *p, const void *q,
307 __kernel_size_t size,
308 const size_t p_size_field,
309 const size_t q_size_field)
310 {
311 __fortify_memcpy_chk(p, q, size, p_size_field, q_size_field, "memcpy");
312 return __underlying_memcpy(p, q, size);
313 }
314
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org