All of lore.kernel.org
 help / color / mirror / Atom feed
* [peterz-queue:sched/preempt 6/12] include/linux/static_call.h:293:2: error: type defaults to 'int' in declaration of '__DEFINE_STATIC_CALL'
@ 2021-01-28  9:04 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-01-28  9:04 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 5048 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/preempt
head:   0c316dbc93862b9c18e5fc73f1b6762828ce7ded
commit: 96609c716c0ff59a3cbd2dd3c09daa371f29bf62 [6/12] preempt/dynamic: Provide cond_resched() and might_resched() static calls
config: i386-randconfig-r031-20210128 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=96609c716c0ff59a3cbd2dd3c09daa371f29bf62
        git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
        git fetch --no-tags peterz-queue sched/preempt
        git checkout 96609c716c0ff59a3cbd2dd3c09daa371f29bf62
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

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

All errors (new ones prefixed by >>):

   In file included from include/linux/tracepoint.h:22,
                    from include/trace/events/sched.h:10,
                    from kernel/sched/core.c:10:
   include/linux/static_call.h:181:42: error: expected ',' or ')', found "_func_init"
     181 | #define __DEFINE_STATIC_CALL(name, _func _func_init)   \
         |                                          ^~~~~~~~~~
   kernel/sched/core.c:2835:6: warning: no previous prototype for 'sched_set_stop_task' [-Wmissing-prototypes]
    2835 | void sched_set_stop_task(int cpu, struct task_struct *stop)
         |      ^~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c: In function 'schedule_tail':
   kernel/sched/core.c:4252:13: warning: variable 'rq' set but not used [-Wunused-but-set-variable]
    4252 |  struct rq *rq;
         |             ^~
   In file included from include/linux/tracepoint.h:22,
                    from include/trace/events/sched.h:10,
                    from kernel/sched/core.c:10:
   kernel/sched/core.c: At top level:
   include/linux/static_call.h:293:2: warning: data definition has no type or storage class
     293 |  __DEFINE_STATIC_CALL(name, _func, __static_call_return0)
         |  ^~~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:6801:1: note: in expansion of macro 'DEFINE_STATIC_CALL_RET0'
    6801 | DEFINE_STATIC_CALL_RET0(cond_resched, __cond_resched);
         | ^~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/static_call.h:293:2: error: type defaults to 'int' in declaration of '__DEFINE_STATIC_CALL' [-Werror=implicit-int]
     293 |  __DEFINE_STATIC_CALL(name, _func, __static_call_return0)
         |  ^~~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:6801:1: note: in expansion of macro 'DEFINE_STATIC_CALL_RET0'
    6801 | DEFINE_STATIC_CALL_RET0(cond_resched, __cond_resched);
         | ^~~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:6801:1: warning: parameter names (without types) in function declaration
   In file included from include/linux/tracepoint.h:22,
                    from include/trace/events/sched.h:10,
                    from kernel/sched/core.c:10:
   include/linux/static_call.h:293:2: warning: data definition has no type or storage class
     293 |  __DEFINE_STATIC_CALL(name, _func, __static_call_return0)
         |  ^~~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:6804:1: note: in expansion of macro 'DEFINE_STATIC_CALL_RET0'
    6804 | DEFINE_STATIC_CALL_RET0(might_resched, __cond_resched);
         | ^~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/static_call.h:293:2: error: type defaults to 'int' in declaration of '__DEFINE_STATIC_CALL' [-Werror=implicit-int]
     293 |  __DEFINE_STATIC_CALL(name, _func, __static_call_return0)
         |  ^~~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:6804:1: note: in expansion of macro 'DEFINE_STATIC_CALL_RET0'
    6804 | DEFINE_STATIC_CALL_RET0(might_resched, __cond_resched);
         | ^~~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:6804:1: warning: parameter names (without types) in function declaration
   cc1: some warnings being treated as errors


vim +293 include/linux/static_call.h

115284d89a436e Josh Poimboeuf      2020-08-18  288  
519418de268f4d Frederic Weisbecker 2021-01-18  289  #define DEFINE_STATIC_CALL(name, _func)					\
519418de268f4d Frederic Weisbecker 2021-01-18  290  	__DEFINE_STATIC_CALL(name, _func, _func)
519418de268f4d Frederic Weisbecker 2021-01-18  291  
519418de268f4d Frederic Weisbecker 2021-01-18  292  #define DEFINE_STATIC_CALL_RET0(name, _func)				\
519418de268f4d Frederic Weisbecker 2021-01-18 @293  	__DEFINE_STATIC_CALL(name, _func, __static_call_return0)
519418de268f4d Frederic Weisbecker 2021-01-18  294  

:::::: The code at line 293 was first introduced by commit
:::::: 519418de268f4dcda2d5be43869a8973c9b45910 static_call: Provide DEFINE_STATIC_CALL_RET0()

:::::: TO: Frederic Weisbecker <frederic@kernel.org>
:::::: CC: Peter Zijlstra <peterz@infradead.org>

---
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: 34199 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-28  9:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-28  9:04 [peterz-queue:sched/preempt 6/12] include/linux/static_call.h:293:2: error: type defaults to 'int' in declaration of '__DEFINE_STATIC_CALL' kernel test robot

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.