lkml.org 
[lkml]   [2022]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[jsarha:topic/cros-sof-v4.19 661/6555] arch/x86/um/user-offsets.c:30:6: error: no previous prototype for 'foo'
Hi Simon,

First bad commit (maybe != root cause):

tree: https://github.com/jsarha/linux topic/cros-sof-v4.19
head: d7a3e91d8d16d1ef8653deec5a1fffc4de034a0c
commit: 1b944fcc75978529942e762d8cf0dc21d6531a91 [661/6555] CHROMIUM: Add -Werror build option
config: um-allyesconfig (https://download.01.org/0day-ci/archive/20220702/202207022055.ARalrDZa-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/jsarha/linux/commit/1b944fcc75978529942e762d8cf0dc21d6531a91
git remote add jsarha https://github.com/jsarha/linux
git fetch --no-tags jsarha topic/cros-sof-v4.19
git checkout 1b944fcc75978529942e762d8cf0dc21d6531a91
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=um prepare

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> arch/x86/um/user-offsets.c:30:6: error: no previous prototype for 'foo' [-Werror=missing-prototypes]
30 | void foo(void)
| ^~~
cc1: all warnings being treated as errors
make[2]: *** [scripts/Makefile.build:131: arch/x86/um/user-offsets.s] Error 1
make[1]: *** [arch/um/Makefile:152: arch/x86/um/user-offsets.s] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:146: sub-make] Error 2
make: Target 'prepare' not remade because of errors.


vim +/foo +30 arch/x86/um/user-offsets.c

45db1c6176c817 arch/x86/um/user-offsets.c H. Peter Anvin 2011-12-05 23
8d0b9dc9be3919 arch/um/sys-x86_64/user-offsets.c Al Viro 2005-05-05 24 #define DEFINE(sym, val) \
8d0b9dc9be3919 arch/um/sys-x86_64/user-offsets.c Al Viro 2005-05-05 25 asm volatile("\n->" #sym " %0 " #val : : "i" (val))
8d0b9dc9be3919 arch/um/sys-x86_64/user-offsets.c Al Viro 2005-05-05 26
ecba97d4aacf4e arch/um/sys-x86_64/user-offsets.c Al Viro 2005-09-28 27 #define DEFINE_LONGS(sym, val) \
ecba97d4aacf4e arch/um/sys-x86_64/user-offsets.c Al Viro 2005-09-28 28 asm volatile("\n->" #sym " %0 " #val : : "i" (val/sizeof(unsigned long)))
ecba97d4aacf4e arch/um/sys-x86_64/user-offsets.c Al Viro 2005-09-28 29
8d0b9dc9be3919 arch/um/sys-x86_64/user-offsets.c Al Viro 2005-05-05 @30 void foo(void)

:::::: The code at line 30 was first introduced by commit
:::::: 8d0b9dc9be3919e9979eac59fd12e8f82b098325 [PATCH] uml: start cross-build support : mk_user_constants

:::::: TO: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

--
0-DAY CI Kernel Test Service
https://01.org/lkp

\
 
 \ /
  Last update: 2022-07-02 14:18    [W:0.094 / U:0.564 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site