lkml.org 
[lkml]   [2019]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[tip:WIP.core/stacktrace 4/32] include/linux/stacktrace.h:65:10: error: 'ENOSYS' undeclared
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.core/stacktrace
head: 9fe290aca53f59fd24187841dd4a8ff41ade91bd
commit: 714f46ba649b163e80d3dd89e83b92f4ba5ac6af [4/32] stacktrace: Provide helpers for common stack trace operations
config: i386-randconfig-x010-201915 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 714f46ba649b163e80d3dd89e83b92f4ba5ac6af
# save the attached .config to linux build tree
make ARCH=i386

All errors (new ones prefixed by >>):

In file included from include/linux/lockdep.h:29:0,
from include/linux/spinlock_types.h:18,
from kernel/bounds.c:14:
include/linux/stacktrace.h:62:19: error: static declaration of 'save_stack_trace_tsk_reliable' follows non-static declaration
static inline int save_stack_trace_tsk_reliable(struct task_struct *tsk,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/stacktrace.h:39:12: note: previous declaration of 'save_stack_trace_tsk_reliable' was here
extern int save_stack_trace_tsk_reliable(struct task_struct *tsk,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/stacktrace.h: In function 'save_stack_trace_tsk_reliable':
>> include/linux/stacktrace.h:65:10: error: 'ENOSYS' undeclared (first use in this function)
return -ENOSYS;
^~~~~~
include/linux/stacktrace.h:65:10: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [kernel/bounds.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [sub-make] Error 2

vim +/ENOSYS +65 include/linux/stacktrace.h

60
61 #if !defined(CONFIG_STACKTRACE) || !defined(CONFIG_HAVE_RELIABLE_STACKTRACE)
> 62 static inline int save_stack_trace_tsk_reliable(struct task_struct *tsk,
63 struct stack_trace *trace)
64 {
> 65 return -ENOSYS;
66 }
67 #endif
68

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2019-04-16 12:13    [W:0.021 / U:0.684 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site