Re: [PATCH v5 19/25] xtensa: define syscall_get_* functions

From: kbuild test robot
Date: Wed Dec 19 2018 - 00:58:55 EST


Hi Dmitry,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v4.20-rc7]
[cannot apply to next-20181218]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Dmitry-V-Levin/ptrace-add-PTRACE_GET_SYSCALL_INFO-request/20181210-174745
config: xtensa-iss_defconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 8.1.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=8.1.0 make.cross ARCH=xtensa

All errors (new ones prefixed by >>):

^~~~~~~~~~
include/linux/signal.h:122:20: note: in definition of macro '_SIG_SET_BINOP'
static inline void name(sigset_t *r, const sigset_t *a, const sigset_t *b) \
^~~~
include/linux/signal.h:153:16: error: invalid storage class for function 'sigandnsets'
_SIG_SET_BINOP(sigandnsets, _sig_andn)
^~~~~~~~~~~
include/linux/signal.h:122:20: note: in definition of macro '_SIG_SET_BINOP'
static inline void name(sigset_t *r, const sigset_t *a, const sigset_t *b) \
^~~~
include/linux/signal.h:177:13: error: invalid storage class for function 'signotset'
_SIG_SET_OP(signotset, _sig_not)
^~~~~~~~~
include/linux/signal.h:161:20: note: in definition of macro '_SIG_SET_OP'
static inline void name(sigset_t *set) \
^~~~
include/linux/signal.h:182:20: error: invalid storage class for function 'sigemptyset'
static inline void sigemptyset(sigset_t *set)
^~~~~~~~~~~
include/linux/signal.h:195:20: error: invalid storage class for function 'sigfillset'
static inline void sigfillset(sigset_t *set)
^~~~~~~~~~
include/linux/signal.h:210:20: error: invalid storage class for function 'sigaddsetmask'
static inline void sigaddsetmask(sigset_t *set, unsigned long mask)
^~~~~~~~~~~~~
include/linux/signal.h:215:20: error: invalid storage class for function 'sigdelsetmask'
static inline void sigdelsetmask(sigset_t *set, unsigned long mask)
^~~~~~~~~~~~~
include/linux/signal.h:220:19: error: invalid storage class for function 'sigtestsetmask'
static inline int sigtestsetmask(sigset_t *set, unsigned long mask)
^~~~~~~~~~~~~~
include/linux/signal.h:225:20: error: invalid storage class for function 'siginitset'
static inline void siginitset(sigset_t *set, unsigned long mask)
^~~~~~~~~~
include/linux/signal.h:237:20: error: invalid storage class for function 'siginitsetinv'
static inline void siginitsetinv(sigset_t *set, unsigned long mask)
^~~~~~~~~~~~~
include/linux/signal.h:251:20: error: invalid storage class for function 'init_sigpending'
static inline void init_sigpending(struct sigpending *sig)
^~~~~~~~~~~~~~~
include/linux/signal.h:260:19: error: invalid storage class for function 'valid_signal'
static inline int valid_signal(unsigned long sig)
^~~~~~~~~~~~
include/linux/signal.h:285:20: error: invalid storage class for function 'allow_signal'
static inline void allow_signal(int sig)
^~~~~~~~~~~~
include/linux/signal.h:295:20: error: invalid storage class for function 'disallow_signal'
static inline void disallow_signal(int sig)
^~~~~~~~~~~~~~~
In file included from include/linux/key.h:22,
from include/linux/syscalls.h:83,
from arch/xtensa/kernel/syscall.c:24:
include/linux/sysctl.h:100:21: error: invalid storage class for function 'proc_sys_poll_event'
static inline void *proc_sys_poll_event(struct ctl_table_poll *poll)
^~~~~~~~~~~~~~~~~~~
In file included from include/linux/static_key.h:1,
from include/linux/tracepoint-defs.h:12,
from include/linux/tracepoint.h:23,
from include/trace/syscall.h:5,
from include/linux/syscalls.h:85,
from arch/xtensa/kernel/syscall.c:24:
include/linux/jump_label.h:253:19: error: invalid storage class for function 'static_key_count'
static inline int static_key_count(struct static_key *key)
^~~~~~~~~~~~~~~~
include/linux/jump_label.h:258:29: error: invalid storage class for function 'jump_label_init'
static __always_inline void jump_label_init(void)
^~~~~~~~~~~~~~~
include/linux/jump_label.h:263:29: error: invalid storage class for function 'static_key_false'
static __always_inline bool static_key_false(struct static_key *key)
^~~~~~~~~~~~~~~~
include/linux/jump_label.h:270:29: error: invalid storage class for function 'static_key_true'
static __always_inline bool static_key_true(struct static_key *key)
^~~~~~~~~~~~~~~
include/linux/jump_label.h:277:20: error: invalid storage class for function 'static_key_slow_inc'
static inline void static_key_slow_inc(struct static_key *key)
^~~~~~~~~~~~~~~~~~~
include/linux/jump_label.h:283:20: error: invalid storage class for function 'static_key_slow_dec'
static inline void static_key_slow_dec(struct static_key *key)
^~~~~~~~~~~~~~~~~~~
include/linux/jump_label.h:292:19: error: invalid storage class for function 'jump_label_text_reserved'
static inline int jump_label_text_reserved(void *start, void *end)
^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/jump_label.h:297:20: error: invalid storage class for function 'jump_label_lock'
static inline void jump_label_lock(void) {}
^~~~~~~~~~~~~~~
include/linux/jump_label.h:298:20: error: invalid storage class for function 'jump_label_unlock'
static inline void jump_label_unlock(void) {}
^~~~~~~~~~~~~~~~~
include/linux/jump_label.h:300:19: error: invalid storage class for function 'jump_label_apply_nops'
static inline int jump_label_apply_nops(struct module *mod)
^~~~~~~~~~~~~~~~~~~~~
include/linux/jump_label.h:305:20: error: invalid storage class for function 'static_key_enable'
static inline void static_key_enable(struct static_key *key)
^~~~~~~~~~~~~~~~~
include/linux/jump_label.h:316:20: error: invalid storage class for function 'static_key_disable'
static inline void static_key_disable(struct static_key *key)
^~~~~~~~~~~~~~~~~~
In file included from include/trace/syscall.h:5,
from include/linux/syscalls.h:85,
from arch/xtensa/kernel/syscall.c:24:
>> include/linux/tracepoint.h:60:20: error: invalid storage class for function 'trace_module_has_bad_taint'
static inline bool trace_module_has_bad_taint(struct module *mod)
^~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/tracepoint.h:65:5: error: invalid storage class for function 'register_tracepoint_module_notifier'
int register_tracepoint_module_notifier(struct notifier_block *nb)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/tracepoint.h:70:5: error: invalid storage class for function 'unregister_tracepoint_module_notifier'
int unregister_tracepoint_module_notifier(struct notifier_block *nb)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/tracepoint.h:88:20: error: invalid storage class for function 'tracepoint_synchronize_unregister'
static inline void tracepoint_synchronize_unregister(void)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/tracepoint.h:114:34: error: invalid storage class for function 'tracepoint_ptr_deref'
static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p)
^~~~~~~~~~~~~~~~~~~~
In file included from include/linux/mm.h:18,
from include/linux/ring_buffer.h:5,
from include/linux/trace_events.h:6,
from include/trace/syscall.h:7,
from include/linux/syscalls.h:85,
from arch/xtensa/kernel/syscall.c:24:
include/linux/range.h:24:31: error: invalid storage class for function 'cap_resource'
static inline resource_size_t cap_resource(u64 val)
^~~~~~~~~~~~
In file included from include/linux/mm.h:20,
from include/linux/ring_buffer.h:5,
from include/linux/trace_events.h:6,
from include/trace/syscall.h:7,
from include/linux/syscalls.h:85,
from arch/xtensa/kernel/syscall.c:24:
include/linux/percpu-refcount.h:126:20: error: invalid storage class for function 'percpu_ref_kill'
static inline void percpu_ref_kill(struct percpu_ref *ref)
^~~~~~~~~~~~~~~
include/linux/percpu-refcount.h:137:20: error: invalid storage class for function '__ref_is_percpu'
static inline bool __ref_is_percpu(struct percpu_ref *ref,
^~~~~~~~~~~~~~~
include/linux/percpu-refcount.h:177:20: error: invalid storage class for function 'percpu_ref_get_many'
static inline void percpu_ref_get_many(struct percpu_ref *ref, unsigned long nr)
^~~~~~~~~~~~~~~~~~~
include/linux/percpu-refcount.h:199:20: error: invalid storage class for function 'percpu_ref_get'
static inline void percpu_ref_get(struct percpu_ref *ref)
^~~~~~~~~~~~~~
include/linux/percpu-refcount.h:213:20: error: invalid storage class for function 'percpu_ref_tryget'
static inline bool percpu_ref_tryget(struct percpu_ref *ref)
^~~~~~~~~~~~~~~~~
include/linux/percpu-refcount.h:247:20: error: invalid storage class for function 'percpu_ref_tryget_live'
static inline bool percpu_ref_tryget_live(struct percpu_ref *ref)
^~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-refcount.h:276:20: error: invalid storage class for function 'percpu_ref_put_many'
static inline void percpu_ref_put_many(struct percpu_ref *ref, unsigned long nr)
^~~~~~~~~~~~~~~~~~~
include/linux/percpu-refcount.h:299:20: error: invalid storage class for function 'percpu_ref_put'
static inline void percpu_ref_put(struct percpu_ref *ref)
^~~~~~~~~~~~~~
include/linux/percpu-refcount.h:313:20: error: invalid storage class for function 'percpu_ref_is_dying'
static inline bool percpu_ref_is_dying(struct percpu_ref *ref)
^~~~~~~~~~~~~~~~~~~
include/linux/percpu-refcount.h:326:20: error: invalid storage class for function 'percpu_ref_is_zero'
static inline bool percpu_ref_is_zero(struct percpu_ref *ref)
^~~~~~~~~~~~~~~~~~
In file included from include/linux/mm.h:24,
from include/linux/ring_buffer.h:5,
from include/linux/trace_events.h:6,
from include/trace/syscall.h:7,
from include/linux/syscalls.h:85,
from arch/xtensa/kernel/syscall.c:24:
include/linux/page_ext.h:58:20: error: invalid storage class for function 'pgdat_page_ext_init'
static inline void pgdat_page_ext_init(struct pglist_data *pgdat)
^~~~~~~~~~~~~~~~~~~
include/linux/page_ext.h:62:32: error: invalid storage class for function 'lookup_page_ext'
static inline struct page_ext *lookup_page_ext(const struct page *page)
^~~~~~~~~~~~~~~
include/linux/page_ext.h:67:20: error: invalid storage class for function 'page_ext_init'
static inline void page_ext_init(void)
^~~~~~~~~~~~~
include/linux/page_ext.h:71:20: error: invalid storage class for function 'page_ext_init_flatmem'
static inline void page_ext_init_flatmem(void)
^~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/page_ref.h:7,
from include/linux/mm.h:26,
from include/linux/ring_buffer.h:5,
from include/linux/trace_events.h:6,
from include/trace/syscall.h:7,
from include/linux/syscalls.h:85,
from arch/xtensa/kernel/syscall.c:24:
include/linux/page-flags.h:141:28: error: invalid storage class for function 'compound_head'
static inline struct page *compound_head(struct page *page)
^~~~~~~~~~~~~
include/linux/page-flags.h:150:28: error: invalid storage class for function 'PageTail'
static __always_inline int PageTail(struct page *page)
^~~~~~~~
include/linux/page-flags.h:155:28: error: invalid storage class for function 'PageCompound'
static __always_inline int PageCompound(struct page *page)
^~~~~~~~~~~~
include/linux/page-flags.h:161:19: error: invalid storage class for function 'PagePoisoned'
static inline int PagePoisoned(const struct page *page)
^~~~~~~~~~~~
include/linux/page-flags.h:169:20: error: invalid storage class for function 'page_init_poison'
static inline void page_init_poison(struct page *page, size_t size)
^~~~~~~~~~~~~~~~
include/linux/page-flags.h:216:28: error: invalid storage class for function 'PageLocked'
static __always_inline int Page##uname(struct page *page) \
^~~~
include/linux/page-flags.h:249:2: note: in expansion of macro 'TESTPAGEFLAG'
TESTPAGEFLAG(uname, lname, policy) \
^~~~~~~~~~~~
include/linux/page-flags.h:281:1: note: in expansion of macro '__PAGEFLAG'

vim +/trace_module_has_bad_taint +60 include/linux/tracepoint.h

de7b29739 Mathieu Desnoyers 2014-04-08 55
45ab2813d Steven Rostedt (Red Hat 2014-02-26 56) bool trace_module_has_bad_taint(struct module *mod);
de7b29739 Mathieu Desnoyers 2014-04-08 57 extern int register_tracepoint_module_notifier(struct notifier_block *nb);
de7b29739 Mathieu Desnoyers 2014-04-08 58 extern int unregister_tracepoint_module_notifier(struct notifier_block *nb);
45ab2813d Steven Rostedt (Red Hat 2014-02-26 59) #else
45ab2813d Steven Rostedt (Red Hat 2014-02-26 @60) static inline bool trace_module_has_bad_taint(struct module *mod)
45ab2813d Steven Rostedt (Red Hat 2014-02-26 61) {
45ab2813d Steven Rostedt (Red Hat 2014-02-26 62) return false;
45ab2813d Steven Rostedt (Red Hat 2014-02-26 63) }
de7b29739 Mathieu Desnoyers 2014-04-08 64 static inline
de7b29739 Mathieu Desnoyers 2014-04-08 @65 int register_tracepoint_module_notifier(struct notifier_block *nb)
de7b29739 Mathieu Desnoyers 2014-04-08 66 {
de7b29739 Mathieu Desnoyers 2014-04-08 67 return 0;
de7b29739 Mathieu Desnoyers 2014-04-08 68 }
de7b29739 Mathieu Desnoyers 2014-04-08 69 static inline
de7b29739 Mathieu Desnoyers 2014-04-08 @70 int unregister_tracepoint_module_notifier(struct notifier_block *nb)
de7b29739 Mathieu Desnoyers 2014-04-08 71 {
de7b29739 Mathieu Desnoyers 2014-04-08 72 return 0;
de7b29739 Mathieu Desnoyers 2014-04-08 73 }
b75ef8b44 Mathieu Desnoyers 2011-08-10 74 #endif /* CONFIG_MODULES */
b75ef8b44 Mathieu Desnoyers 2011-08-10 75

:::::: The code at line 60 was first introduced by commit
:::::: 45ab2813d40d88fc575e753c38478de242d03f88 tracing: Do not add event files for modules that fail tracepoints

:::::: TO: Steven Rostedt (Red Hat) <rostedt@xxxxxxxxxxx>
:::::: CC: Steven Rostedt <rostedt@xxxxxxxxxxx>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip