All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Valentin Schneider <valentin.schneider@arm.com>,
	linux-kernel@vger.kernel.org
Cc: kbuild-all@lists.01.org, Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@kernel.org>,
	Frederic Weisbecker <frederic@kernel.org>
Subject: Re: [PATCH] sched: Tweak default dynamic preempt mode selection
Date: Sat, 6 Nov 2021 13:33:11 +0800	[thread overview]
Message-ID: <202111061333.BSHSGMng-lkp@intel.com> (raw)
In-Reply-To: <20211105104035.3112162-1-valentin.schneider@arm.com>

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

Hi Valentin,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on tip/master]
[also build test WARNING on linus/master next-20211106]
[cannot apply to linux/master v5.15]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Valentin-Schneider/sched-Tweak-default-dynamic-preempt-mode-selection/20211105-184135
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git ea79c24a30aa27ccc4aac26be33f8b73f3f1f59c
config: x86_64-defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/0day-ci/linux/commit/4731291127aa2100c984229a91533b671044a74b
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Valentin-Schneider/sched-Tweak-default-dynamic-preempt-mode-selection/20211105-184135
        git checkout 4731291127aa2100c984229a91533b671044a74b
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

   kernel/sched/core.c:3439:6: warning: no previous prototype for 'sched_set_stop_task' [-Wmissing-prototypes]
    3439 | void sched_set_stop_task(int cpu, struct task_struct *stop)
         |      ^~~~~~~~~~~~~~~~~~~
   In file included from <command-line>:
   kernel/sched/core.c: In function 'sched_dynamic_update':
   include/linux/static_call_types.h:15:34: error: '__SCT__might_resched' undeclared (first use in this function); did you mean '__SCT__cond_resched'?
      15 | #define STATIC_CALL_TRAMP_PREFIX __SCT__
         |                                  ^~~~~~~
   include/linux/compiler_types.h:59:23: note: in definition of macro '___PASTE'
      59 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:18:34: note: in expansion of macro '__PASTE'
      18 | #define STATIC_CALL_TRAMP(name)  __PASTE(STATIC_CALL_TRAMP_PREFIX, name)
         |                                  ^~~~~~~
   include/linux/static_call_types.h:18:42: note: in expansion of macro 'STATIC_CALL_TRAMP_PREFIX'
      18 | #define STATIC_CALL_TRAMP(name)  __PASTE(STATIC_CALL_TRAMP_PREFIX, name)
         |                                          ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:154:10: note: in expansion of macro 'STATIC_CALL_TRAMP'
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |          ^~~~~~~~~~~~~~~~~
   kernel/sched/core.c:6575:2: note: in expansion of macro 'static_call_update'
    6575 |  static_call_update(might_resched, __cond_resched);
         |  ^~~~~~~~~~~~~~~~~~
   include/linux/static_call_types.h:15:34: note: each undeclared identifier is reported only once for each function it appears in
      15 | #define STATIC_CALL_TRAMP_PREFIX __SCT__
         |                                  ^~~~~~~
   include/linux/compiler_types.h:59:23: note: in definition of macro '___PASTE'
      59 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:18:34: note: in expansion of macro '__PASTE'
      18 | #define STATIC_CALL_TRAMP(name)  __PASTE(STATIC_CALL_TRAMP_PREFIX, name)
         |                                  ^~~~~~~
   include/linux/static_call_types.h:18:42: note: in expansion of macro 'STATIC_CALL_TRAMP_PREFIX'
      18 | #define STATIC_CALL_TRAMP(name)  __PASTE(STATIC_CALL_TRAMP_PREFIX, name)
         |                                          ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:154:10: note: in expansion of macro 'STATIC_CALL_TRAMP'
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |          ^~~~~~~~~~~~~~~~~
   kernel/sched/core.c:6575:2: note: in expansion of macro 'static_call_update'
    6575 |  static_call_update(might_resched, __cond_resched);
         |  ^~~~~~~~~~~~~~~~~~
   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:154:41: warning: initialization of 'int' from 'int (*)(void)' makes integer from pointer without a cast [-Wint-conversion]
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |                                         ^
   kernel/sched/core.c:6575:2: note: in expansion of macro 'static_call_update'
    6575 |  static_call_update(might_resched, __cond_resched);
         |  ^~~~~~~~~~~~~~~~~~
   In file included from <command-line>:
   include/linux/static_call_types.h:9:33: error: '__SCK__might_resched' undeclared (first use in this function); did you mean '__SCK__cond_resched'?
       9 | #define STATIC_CALL_KEY_PREFIX  __SCK__
         |                                 ^~~~~~~
   include/linux/compiler_types.h:59:23: note: in definition of macro '___PASTE'
      59 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:12:32: note: in expansion of macro '__PASTE'
      12 | #define STATIC_CALL_KEY(name)  __PASTE(STATIC_CALL_KEY_PREFIX, name)
         |                                ^~~~~~~
   include/linux/static_call_types.h:12:40: note: in expansion of macro 'STATIC_CALL_KEY_PREFIX'
      12 | #define STATIC_CALL_KEY(name)  __PASTE(STATIC_CALL_KEY_PREFIX, name)
         |                                        ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:155:24: note: in expansion of macro 'STATIC_CALL_KEY'
     155 |  __static_call_update(&STATIC_CALL_KEY(name),   \
         |                        ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6575:2: note: in expansion of macro 'static_call_update'
    6575 |  static_call_update(might_resched, __cond_resched);
         |  ^~~~~~~~~~~~~~~~~~
   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:156:39: warning: passing argument 3 of '__static_call_update' makes pointer from integer without a cast [-Wint-conversion]
     156 |         STATIC_CALL_TRAMP_ADDR(name), __F); \
         |                                       ^~~
         |                                       |
         |                                       int
   kernel/sched/core.c:6575:2: note: in expansion of macro 'static_call_update'
    6575 |  static_call_update(might_resched, __cond_resched);
         |  ^~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:177:82: note: expected 'void *' but argument is of type 'int'
     177 | extern void __static_call_update(struct static_call_key *key, void *tramp, void *func);
         |                                                                            ~~~~~~^~~~
   In file included from <command-line>:
   include/linux/static_call_types.h:15:34: error: '__SCT__preempt_schedule' undeclared (first use in this function)
      15 | #define STATIC_CALL_TRAMP_PREFIX __SCT__
         |                                  ^~~~~~~
   include/linux/compiler_types.h:59:23: note: in definition of macro '___PASTE'
      59 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:18:34: note: in expansion of macro '__PASTE'
      18 | #define STATIC_CALL_TRAMP(name)  __PASTE(STATIC_CALL_TRAMP_PREFIX, name)
         |                                  ^~~~~~~
   include/linux/static_call_types.h:18:42: note: in expansion of macro 'STATIC_CALL_TRAMP_PREFIX'
      18 | #define STATIC_CALL_TRAMP(name)  __PASTE(STATIC_CALL_TRAMP_PREFIX, name)
         |                                          ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:154:10: note: in expansion of macro 'STATIC_CALL_TRAMP'
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |          ^~~~~~~~~~~~~~~~~
   kernel/sched/core.c:6576:2: note: in expansion of macro 'static_call_update'
    6576 |  static_call_update(preempt_schedule, __preempt_schedule_func);
         |  ^~~~~~~~~~~~~~~~~~
   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:6576:39: error: '__preempt_schedule_func' undeclared (first use in this function); did you mean 'preempt_schedule_irq'?
    6576 |  static_call_update(preempt_schedule, __preempt_schedule_func);
         |                                       ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:154:42: note: in definition of macro 'static_call_update'
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |                                          ^~~~
   In file included from <command-line>:
   include/linux/static_call_types.h:9:33: error: '__SCK__preempt_schedule' undeclared (first use in this function)
       9 | #define STATIC_CALL_KEY_PREFIX  __SCK__
         |                                 ^~~~~~~
   include/linux/compiler_types.h:59:23: note: in definition of macro '___PASTE'
      59 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:12:32: note: in expansion of macro '__PASTE'
      12 | #define STATIC_CALL_KEY(name)  __PASTE(STATIC_CALL_KEY_PREFIX, name)
         |                                ^~~~~~~
   include/linux/static_call_types.h:12:40: note: in expansion of macro 'STATIC_CALL_KEY_PREFIX'
      12 | #define STATIC_CALL_KEY(name)  __PASTE(STATIC_CALL_KEY_PREFIX, name)
         |                                        ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:155:24: note: in expansion of macro 'STATIC_CALL_KEY'
     155 |  __static_call_update(&STATIC_CALL_KEY(name),   \
         |                        ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6576:2: note: in expansion of macro 'static_call_update'
    6576 |  static_call_update(preempt_schedule, __preempt_schedule_func);
         |  ^~~~~~~~~~~~~~~~~~
   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:156:39: warning: passing argument 3 of '__static_call_update' makes pointer from integer without a cast [-Wint-conversion]
     156 |         STATIC_CALL_TRAMP_ADDR(name), __F); \
         |                                       ^~~
         |                                       |
         |                                       int
   kernel/sched/core.c:6576:2: note: in expansion of macro 'static_call_update'
    6576 |  static_call_update(preempt_schedule, __preempt_schedule_func);
         |  ^~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:177:82: note: expected 'void *' but argument is of type 'int'
     177 | extern void __static_call_update(struct static_call_key *key, void *tramp, void *func);
         |                                                                            ~~~~~~^~~~
   In file included from <command-line>:
   include/linux/static_call_types.h:15:34: error: '__SCT__preempt_schedule_notrace' undeclared (first use in this function)
      15 | #define STATIC_CALL_TRAMP_PREFIX __SCT__
         |                                  ^~~~~~~
   include/linux/compiler_types.h:59:23: note: in definition of macro '___PASTE'
      59 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:18:34: note: in expansion of macro '__PASTE'
      18 | #define STATIC_CALL_TRAMP(name)  __PASTE(STATIC_CALL_TRAMP_PREFIX, name)
         |                                  ^~~~~~~
   include/linux/static_call_types.h:18:42: note: in expansion of macro 'STATIC_CALL_TRAMP_PREFIX'
      18 | #define STATIC_CALL_TRAMP(name)  __PASTE(STATIC_CALL_TRAMP_PREFIX, name)
         |                                          ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:154:10: note: in expansion of macro 'STATIC_CALL_TRAMP'
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |          ^~~~~~~~~~~~~~~~~
   kernel/sched/core.c:6577:2: note: in expansion of macro 'static_call_update'
    6577 |  static_call_update(preempt_schedule_notrace, __preempt_schedule_notrace_func);
         |  ^~~~~~~~~~~~~~~~~~
   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:6577:47: error: '__preempt_schedule_notrace_func' undeclared (first use in this function)
    6577 |  static_call_update(preempt_schedule_notrace, __preempt_schedule_notrace_func);
         |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:154:42: note: in definition of macro 'static_call_update'
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |                                          ^~~~
   In file included from <command-line>:
   include/linux/static_call_types.h:9:33: error: '__SCK__preempt_schedule_notrace' undeclared (first use in this function)
       9 | #define STATIC_CALL_KEY_PREFIX  __SCK__
         |                                 ^~~~~~~
   include/linux/compiler_types.h:59:23: note: in definition of macro '___PASTE'
      59 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:12:32: note: in expansion of macro '__PASTE'
      12 | #define STATIC_CALL_KEY(name)  __PASTE(STATIC_CALL_KEY_PREFIX, name)
         |                                ^~~~~~~
   include/linux/static_call_types.h:12:40: note: in expansion of macro 'STATIC_CALL_KEY_PREFIX'
      12 | #define STATIC_CALL_KEY(name)  __PASTE(STATIC_CALL_KEY_PREFIX, name)
         |                                        ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:155:24: note: in expansion of macro 'STATIC_CALL_KEY'
     155 |  __static_call_update(&STATIC_CALL_KEY(name),   \
         |                        ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6577:2: note: in expansion of macro 'static_call_update'
    6577 |  static_call_update(preempt_schedule_notrace, __preempt_schedule_notrace_func);
         |  ^~~~~~~~~~~~~~~~~~
   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:156:39: warning: passing argument 3 of '__static_call_update' makes pointer from integer without a cast [-Wint-conversion]
     156 |         STATIC_CALL_TRAMP_ADDR(name), __F); \
         |                                       ^~~
         |                                       |
         |                                       int
   kernel/sched/core.c:6577:2: note: in expansion of macro 'static_call_update'
    6577 |  static_call_update(preempt_schedule_notrace, __preempt_schedule_notrace_func);
         |  ^~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:177:82: note: expected 'void *' but argument is of type 'int'
     177 | extern void __static_call_update(struct static_call_key *key, void *tramp, void *func);
         |                                                                            ~~~~~~^~~~
>> include/linux/static_call.h:154:41: warning: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |                                         ^
   kernel/sched/core.c:6583:3: note: in expansion of macro 'static_call_update'
    6583 |   static_call_update(might_resched, (void *)&__static_call_return0);
         |   ^~~~~~~~~~~~~~~~~~
>> include/linux/static_call.h:156:39: warning: passing argument 3 of '__static_call_update' makes pointer from integer without a cast [-Wint-conversion]
     156 |         STATIC_CALL_TRAMP_ADDR(name), __F); \
         |                                       ^~~
         |                                       |
         |                                       int
   kernel/sched/core.c:6583:3: note: in expansion of macro 'static_call_update'
    6583 |   static_call_update(might_resched, (void *)&__static_call_return0);
         |   ^~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:177:82: note: expected 'void *' but argument is of type 'int'
     177 | extern void __static_call_update(struct static_call_key *key, void *tramp, void *func);
         |                                                                            ~~~~~~^~~~
>> include/linux/static_call.h:154:41: warning: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |                                         ^
   kernel/sched/core.c:6584:3: note: in expansion of macro 'static_call_update'
    6584 |   static_call_update(preempt_schedule, NULL);
         |   ^~~~~~~~~~~~~~~~~~
>> include/linux/static_call.h:156:39: warning: passing argument 3 of '__static_call_update' makes pointer from integer without a cast [-Wint-conversion]
     156 |         STATIC_CALL_TRAMP_ADDR(name), __F); \
         |                                       ^~~
         |                                       |
         |                                       int
   kernel/sched/core.c:6584:3: note: in expansion of macro 'static_call_update'
    6584 |   static_call_update(preempt_schedule, NULL);
         |   ^~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:177:82: note: expected 'void *' but argument is of type 'int'
     177 | extern void __static_call_update(struct static_call_key *key, void *tramp, void *func);
         |                                                                            ~~~~~~^~~~
>> include/linux/static_call.h:154:41: warning: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |                                         ^
   kernel/sched/core.c:6585:3: note: in expansion of macro 'static_call_update'
    6585 |   static_call_update(preempt_schedule_notrace, NULL);
         |   ^~~~~~~~~~~~~~~~~~
>> include/linux/static_call.h:156:39: warning: passing argument 3 of '__static_call_update' makes pointer from integer without a cast [-Wint-conversion]
     156 |         STATIC_CALL_TRAMP_ADDR(name), __F); \
         |                                       ^~~
         |                                       |
         |                                       int
   kernel/sched/core.c:6585:3: note: in expansion of macro 'static_call_update'
    6585 |   static_call_update(preempt_schedule_notrace, NULL);
         |   ^~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:177:82: note: expected 'void *' but argument is of type 'int'
     177 | extern void __static_call_update(struct static_call_key *key, void *tramp, void *func);
         |                                                                            ~~~~~~^~~~
>> include/linux/static_call.h:154:41: warning: initialization of 'int' from 'int (*)(void)' makes integer from pointer without a cast [-Wint-conversion]
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |                                         ^
   kernel/sched/core.c:6592:3: note: in expansion of macro 'static_call_update'
    6592 |   static_call_update(might_resched, __cond_resched);
         |   ^~~~~~~~~~~~~~~~~~
>> include/linux/static_call.h:156:39: warning: passing argument 3 of '__static_call_update' makes pointer from integer without a cast [-Wint-conversion]
     156 |         STATIC_CALL_TRAMP_ADDR(name), __F); \
         |                                       ^~~
         |                                       |
         |                                       int
   kernel/sched/core.c:6592:3: note: in expansion of macro 'static_call_update'
    6592 |   static_call_update(might_resched, __cond_resched);
         |   ^~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:177:82: note: expected 'void *' but argument is of type 'int'
     177 | extern void __static_call_update(struct static_call_key *key, void *tramp, void *func);
         |                                                                            ~~~~~~^~~~
>> include/linux/static_call.h:154:41: warning: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |                                         ^
   kernel/sched/core.c:6593:3: note: in expansion of macro 'static_call_update'
    6593 |   static_call_update(preempt_schedule, NULL);
         |   ^~~~~~~~~~~~~~~~~~
>> include/linux/static_call.h:156:39: warning: passing argument 3 of '__static_call_update' makes pointer from integer without a cast [-Wint-conversion]
     156 |         STATIC_CALL_TRAMP_ADDR(name), __F); \
         |                                       ^~~
         |                                       |
         |                                       int
   kernel/sched/core.c:6593:3: note: in expansion of macro 'static_call_update'
    6593 |   static_call_update(preempt_schedule, NULL);
         |   ^~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:177:82: note: expected 'void *' but argument is of type 'int'
     177 | extern void __static_call_update(struct static_call_key *key, void *tramp, void *func);
         |                                                                            ~~~~~~^~~~
>> include/linux/static_call.h:154:41: warning: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |                                         ^
   kernel/sched/core.c:6594:3: note: in expansion of macro 'static_call_update'
    6594 |   static_call_update(preempt_schedule_notrace, NULL);
         |   ^~~~~~~~~~~~~~~~~~
>> include/linux/static_call.h:156:39: warning: passing argument 3 of '__static_call_update' makes pointer from integer without a cast [-Wint-conversion]
     156 |         STATIC_CALL_TRAMP_ADDR(name), __F); \
         |                                       ^~~
         |                                       |
         |                                       int
   kernel/sched/core.c:6594:3: note: in expansion of macro 'static_call_update'
    6594 |   static_call_update(preempt_schedule_notrace, NULL);
         |   ^~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:177:82: note: expected 'void *' but argument is of type 'int'
     177 | extern void __static_call_update(struct static_call_key *key, void *tramp, void *func);
         |                                                                            ~~~~~~^~~~
>> include/linux/static_call.h:154:41: warning: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |                                         ^
   kernel/sched/core.c:6601:3: note: in expansion of macro 'static_call_update'
    6601 |   static_call_update(might_resched, (void *)&__static_call_return0);
         |   ^~~~~~~~~~~~~~~~~~
>> include/linux/static_call.h:156:39: warning: passing argument 3 of '__static_call_update' makes pointer from integer without a cast [-Wint-conversion]
     156 |         STATIC_CALL_TRAMP_ADDR(name), __F); \
         |                                       ^~~
         |                                       |
         |                                       int
   kernel/sched/core.c:6601:3: note: in expansion of macro 'static_call_update'
    6601 |   static_call_update(might_resched, (void *)&__static_call_return0);
         |   ^~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:177:82: note: expected 'void *' but argument is of type 'int'
     177 | extern void __static_call_update(struct static_call_key *key, void *tramp, void *func);
         |                                                                            ~~~~~~^~~~
>> include/linux/static_call.h:156:39: warning: passing argument 3 of '__static_call_update' makes pointer from integer without a cast [-Wint-conversion]
     156 |         STATIC_CALL_TRAMP_ADDR(name), __F); \
         |                                       ^~~
         |                                       |
         |                                       int
   kernel/sched/core.c:6602:3: note: in expansion of macro 'static_call_update'
    6602 |   static_call_update(preempt_schedule, __preempt_schedule_func);
         |   ^~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:177:82: note: expected 'void *' but argument is of type 'int'
     177 | extern void __static_call_update(struct static_call_key *key, void *tramp, void *func);
         |                                                                            ~~~~~~^~~~
>> include/linux/static_call.h:156:39: warning: passing argument 3 of '__static_call_update' makes pointer from integer without a cast [-Wint-conversion]
     156 |         STATIC_CALL_TRAMP_ADDR(name), __F); \
         |                                       ^~~
         |                                       |
         |                                       int
   kernel/sched/core.c:6603:3: note: in expansion of macro 'static_call_update'
    6603 |   static_call_update(preempt_schedule_notrace, __preempt_schedule_notrace_func);
         |   ^~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:177:82: note: expected 'void *' but argument is of type 'int'
     177 | extern void __static_call_update(struct static_call_key *key, void *tramp, void *func);
         |                                                                            ~~~~~~^~~~


vim +154 include/linux/static_call.h

115284d89a436e Josh Poimboeuf 2020-08-18  151  
115284d89a436e Josh Poimboeuf 2020-08-18  152  #define static_call_update(name, func)					\
115284d89a436e Josh Poimboeuf 2020-08-18  153  ({									\
9432bbd969c667 Peter Zijlstra 2021-03-23 @154  	typeof(&STATIC_CALL_TRAMP(name)) __F = (func);			\
115284d89a436e Josh Poimboeuf 2020-08-18  155  	__static_call_update(&STATIC_CALL_KEY(name),			\
9432bbd969c667 Peter Zijlstra 2021-03-23 @156  			     STATIC_CALL_TRAMP_ADDR(name), __F);	\
115284d89a436e Josh Poimboeuf 2020-08-18  157  })
115284d89a436e Josh Poimboeuf 2020-08-18  158  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 29938 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH] sched: Tweak default dynamic preempt mode selection
Date: Sat, 06 Nov 2021 13:33:11 +0800	[thread overview]
Message-ID: <202111061333.BSHSGMng-lkp@intel.com> (raw)
In-Reply-To: <20211105104035.3112162-1-valentin.schneider@arm.com>

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

Hi Valentin,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on tip/master]
[also build test WARNING on linus/master next-20211106]
[cannot apply to linux/master v5.15]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Valentin-Schneider/sched-Tweak-default-dynamic-preempt-mode-selection/20211105-184135
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git ea79c24a30aa27ccc4aac26be33f8b73f3f1f59c
config: x86_64-defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/0day-ci/linux/commit/4731291127aa2100c984229a91533b671044a74b
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Valentin-Schneider/sched-Tweak-default-dynamic-preempt-mode-selection/20211105-184135
        git checkout 4731291127aa2100c984229a91533b671044a74b
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

   kernel/sched/core.c:3439:6: warning: no previous prototype for 'sched_set_stop_task' [-Wmissing-prototypes]
    3439 | void sched_set_stop_task(int cpu, struct task_struct *stop)
         |      ^~~~~~~~~~~~~~~~~~~
   In file included from <command-line>:
   kernel/sched/core.c: In function 'sched_dynamic_update':
   include/linux/static_call_types.h:15:34: error: '__SCT__might_resched' undeclared (first use in this function); did you mean '__SCT__cond_resched'?
      15 | #define STATIC_CALL_TRAMP_PREFIX __SCT__
         |                                  ^~~~~~~
   include/linux/compiler_types.h:59:23: note: in definition of macro '___PASTE'
      59 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:18:34: note: in expansion of macro '__PASTE'
      18 | #define STATIC_CALL_TRAMP(name)  __PASTE(STATIC_CALL_TRAMP_PREFIX, name)
         |                                  ^~~~~~~
   include/linux/static_call_types.h:18:42: note: in expansion of macro 'STATIC_CALL_TRAMP_PREFIX'
      18 | #define STATIC_CALL_TRAMP(name)  __PASTE(STATIC_CALL_TRAMP_PREFIX, name)
         |                                          ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:154:10: note: in expansion of macro 'STATIC_CALL_TRAMP'
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |          ^~~~~~~~~~~~~~~~~
   kernel/sched/core.c:6575:2: note: in expansion of macro 'static_call_update'
    6575 |  static_call_update(might_resched, __cond_resched);
         |  ^~~~~~~~~~~~~~~~~~
   include/linux/static_call_types.h:15:34: note: each undeclared identifier is reported only once for each function it appears in
      15 | #define STATIC_CALL_TRAMP_PREFIX __SCT__
         |                                  ^~~~~~~
   include/linux/compiler_types.h:59:23: note: in definition of macro '___PASTE'
      59 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:18:34: note: in expansion of macro '__PASTE'
      18 | #define STATIC_CALL_TRAMP(name)  __PASTE(STATIC_CALL_TRAMP_PREFIX, name)
         |                                  ^~~~~~~
   include/linux/static_call_types.h:18:42: note: in expansion of macro 'STATIC_CALL_TRAMP_PREFIX'
      18 | #define STATIC_CALL_TRAMP(name)  __PASTE(STATIC_CALL_TRAMP_PREFIX, name)
         |                                          ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:154:10: note: in expansion of macro 'STATIC_CALL_TRAMP'
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |          ^~~~~~~~~~~~~~~~~
   kernel/sched/core.c:6575:2: note: in expansion of macro 'static_call_update'
    6575 |  static_call_update(might_resched, __cond_resched);
         |  ^~~~~~~~~~~~~~~~~~
   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:154:41: warning: initialization of 'int' from 'int (*)(void)' makes integer from pointer without a cast [-Wint-conversion]
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |                                         ^
   kernel/sched/core.c:6575:2: note: in expansion of macro 'static_call_update'
    6575 |  static_call_update(might_resched, __cond_resched);
         |  ^~~~~~~~~~~~~~~~~~
   In file included from <command-line>:
   include/linux/static_call_types.h:9:33: error: '__SCK__might_resched' undeclared (first use in this function); did you mean '__SCK__cond_resched'?
       9 | #define STATIC_CALL_KEY_PREFIX  __SCK__
         |                                 ^~~~~~~
   include/linux/compiler_types.h:59:23: note: in definition of macro '___PASTE'
      59 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:12:32: note: in expansion of macro '__PASTE'
      12 | #define STATIC_CALL_KEY(name)  __PASTE(STATIC_CALL_KEY_PREFIX, name)
         |                                ^~~~~~~
   include/linux/static_call_types.h:12:40: note: in expansion of macro 'STATIC_CALL_KEY_PREFIX'
      12 | #define STATIC_CALL_KEY(name)  __PASTE(STATIC_CALL_KEY_PREFIX, name)
         |                                        ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:155:24: note: in expansion of macro 'STATIC_CALL_KEY'
     155 |  __static_call_update(&STATIC_CALL_KEY(name),   \
         |                        ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6575:2: note: in expansion of macro 'static_call_update'
    6575 |  static_call_update(might_resched, __cond_resched);
         |  ^~~~~~~~~~~~~~~~~~
   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:156:39: warning: passing argument 3 of '__static_call_update' makes pointer from integer without a cast [-Wint-conversion]
     156 |         STATIC_CALL_TRAMP_ADDR(name), __F); \
         |                                       ^~~
         |                                       |
         |                                       int
   kernel/sched/core.c:6575:2: note: in expansion of macro 'static_call_update'
    6575 |  static_call_update(might_resched, __cond_resched);
         |  ^~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:177:82: note: expected 'void *' but argument is of type 'int'
     177 | extern void __static_call_update(struct static_call_key *key, void *tramp, void *func);
         |                                                                            ~~~~~~^~~~
   In file included from <command-line>:
   include/linux/static_call_types.h:15:34: error: '__SCT__preempt_schedule' undeclared (first use in this function)
      15 | #define STATIC_CALL_TRAMP_PREFIX __SCT__
         |                                  ^~~~~~~
   include/linux/compiler_types.h:59:23: note: in definition of macro '___PASTE'
      59 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:18:34: note: in expansion of macro '__PASTE'
      18 | #define STATIC_CALL_TRAMP(name)  __PASTE(STATIC_CALL_TRAMP_PREFIX, name)
         |                                  ^~~~~~~
   include/linux/static_call_types.h:18:42: note: in expansion of macro 'STATIC_CALL_TRAMP_PREFIX'
      18 | #define STATIC_CALL_TRAMP(name)  __PASTE(STATIC_CALL_TRAMP_PREFIX, name)
         |                                          ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:154:10: note: in expansion of macro 'STATIC_CALL_TRAMP'
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |          ^~~~~~~~~~~~~~~~~
   kernel/sched/core.c:6576:2: note: in expansion of macro 'static_call_update'
    6576 |  static_call_update(preempt_schedule, __preempt_schedule_func);
         |  ^~~~~~~~~~~~~~~~~~
   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:6576:39: error: '__preempt_schedule_func' undeclared (first use in this function); did you mean 'preempt_schedule_irq'?
    6576 |  static_call_update(preempt_schedule, __preempt_schedule_func);
         |                                       ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:154:42: note: in definition of macro 'static_call_update'
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |                                          ^~~~
   In file included from <command-line>:
   include/linux/static_call_types.h:9:33: error: '__SCK__preempt_schedule' undeclared (first use in this function)
       9 | #define STATIC_CALL_KEY_PREFIX  __SCK__
         |                                 ^~~~~~~
   include/linux/compiler_types.h:59:23: note: in definition of macro '___PASTE'
      59 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:12:32: note: in expansion of macro '__PASTE'
      12 | #define STATIC_CALL_KEY(name)  __PASTE(STATIC_CALL_KEY_PREFIX, name)
         |                                ^~~~~~~
   include/linux/static_call_types.h:12:40: note: in expansion of macro 'STATIC_CALL_KEY_PREFIX'
      12 | #define STATIC_CALL_KEY(name)  __PASTE(STATIC_CALL_KEY_PREFIX, name)
         |                                        ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:155:24: note: in expansion of macro 'STATIC_CALL_KEY'
     155 |  __static_call_update(&STATIC_CALL_KEY(name),   \
         |                        ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6576:2: note: in expansion of macro 'static_call_update'
    6576 |  static_call_update(preempt_schedule, __preempt_schedule_func);
         |  ^~~~~~~~~~~~~~~~~~
   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:156:39: warning: passing argument 3 of '__static_call_update' makes pointer from integer without a cast [-Wint-conversion]
     156 |         STATIC_CALL_TRAMP_ADDR(name), __F); \
         |                                       ^~~
         |                                       |
         |                                       int
   kernel/sched/core.c:6576:2: note: in expansion of macro 'static_call_update'
    6576 |  static_call_update(preempt_schedule, __preempt_schedule_func);
         |  ^~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:177:82: note: expected 'void *' but argument is of type 'int'
     177 | extern void __static_call_update(struct static_call_key *key, void *tramp, void *func);
         |                                                                            ~~~~~~^~~~
   In file included from <command-line>:
   include/linux/static_call_types.h:15:34: error: '__SCT__preempt_schedule_notrace' undeclared (first use in this function)
      15 | #define STATIC_CALL_TRAMP_PREFIX __SCT__
         |                                  ^~~~~~~
   include/linux/compiler_types.h:59:23: note: in definition of macro '___PASTE'
      59 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:18:34: note: in expansion of macro '__PASTE'
      18 | #define STATIC_CALL_TRAMP(name)  __PASTE(STATIC_CALL_TRAMP_PREFIX, name)
         |                                  ^~~~~~~
   include/linux/static_call_types.h:18:42: note: in expansion of macro 'STATIC_CALL_TRAMP_PREFIX'
      18 | #define STATIC_CALL_TRAMP(name)  __PASTE(STATIC_CALL_TRAMP_PREFIX, name)
         |                                          ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:154:10: note: in expansion of macro 'STATIC_CALL_TRAMP'
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |          ^~~~~~~~~~~~~~~~~
   kernel/sched/core.c:6577:2: note: in expansion of macro 'static_call_update'
    6577 |  static_call_update(preempt_schedule_notrace, __preempt_schedule_notrace_func);
         |  ^~~~~~~~~~~~~~~~~~
   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:6577:47: error: '__preempt_schedule_notrace_func' undeclared (first use in this function)
    6577 |  static_call_update(preempt_schedule_notrace, __preempt_schedule_notrace_func);
         |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:154:42: note: in definition of macro 'static_call_update'
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |                                          ^~~~
   In file included from <command-line>:
   include/linux/static_call_types.h:9:33: error: '__SCK__preempt_schedule_notrace' undeclared (first use in this function)
       9 | #define STATIC_CALL_KEY_PREFIX  __SCK__
         |                                 ^~~~~~~
   include/linux/compiler_types.h:59:23: note: in definition of macro '___PASTE'
      59 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:12:32: note: in expansion of macro '__PASTE'
      12 | #define STATIC_CALL_KEY(name)  __PASTE(STATIC_CALL_KEY_PREFIX, name)
         |                                ^~~~~~~
   include/linux/static_call_types.h:12:40: note: in expansion of macro 'STATIC_CALL_KEY_PREFIX'
      12 | #define STATIC_CALL_KEY(name)  __PASTE(STATIC_CALL_KEY_PREFIX, name)
         |                                        ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:155:24: note: in expansion of macro 'STATIC_CALL_KEY'
     155 |  __static_call_update(&STATIC_CALL_KEY(name),   \
         |                        ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6577:2: note: in expansion of macro 'static_call_update'
    6577 |  static_call_update(preempt_schedule_notrace, __preempt_schedule_notrace_func);
         |  ^~~~~~~~~~~~~~~~~~
   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:156:39: warning: passing argument 3 of '__static_call_update' makes pointer from integer without a cast [-Wint-conversion]
     156 |         STATIC_CALL_TRAMP_ADDR(name), __F); \
         |                                       ^~~
         |                                       |
         |                                       int
   kernel/sched/core.c:6577:2: note: in expansion of macro 'static_call_update'
    6577 |  static_call_update(preempt_schedule_notrace, __preempt_schedule_notrace_func);
         |  ^~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:177:82: note: expected 'void *' but argument is of type 'int'
     177 | extern void __static_call_update(struct static_call_key *key, void *tramp, void *func);
         |                                                                            ~~~~~~^~~~
>> include/linux/static_call.h:154:41: warning: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |                                         ^
   kernel/sched/core.c:6583:3: note: in expansion of macro 'static_call_update'
    6583 |   static_call_update(might_resched, (void *)&__static_call_return0);
         |   ^~~~~~~~~~~~~~~~~~
>> include/linux/static_call.h:156:39: warning: passing argument 3 of '__static_call_update' makes pointer from integer without a cast [-Wint-conversion]
     156 |         STATIC_CALL_TRAMP_ADDR(name), __F); \
         |                                       ^~~
         |                                       |
         |                                       int
   kernel/sched/core.c:6583:3: note: in expansion of macro 'static_call_update'
    6583 |   static_call_update(might_resched, (void *)&__static_call_return0);
         |   ^~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:177:82: note: expected 'void *' but argument is of type 'int'
     177 | extern void __static_call_update(struct static_call_key *key, void *tramp, void *func);
         |                                                                            ~~~~~~^~~~
>> include/linux/static_call.h:154:41: warning: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |                                         ^
   kernel/sched/core.c:6584:3: note: in expansion of macro 'static_call_update'
    6584 |   static_call_update(preempt_schedule, NULL);
         |   ^~~~~~~~~~~~~~~~~~
>> include/linux/static_call.h:156:39: warning: passing argument 3 of '__static_call_update' makes pointer from integer without a cast [-Wint-conversion]
     156 |         STATIC_CALL_TRAMP_ADDR(name), __F); \
         |                                       ^~~
         |                                       |
         |                                       int
   kernel/sched/core.c:6584:3: note: in expansion of macro 'static_call_update'
    6584 |   static_call_update(preempt_schedule, NULL);
         |   ^~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:177:82: note: expected 'void *' but argument is of type 'int'
     177 | extern void __static_call_update(struct static_call_key *key, void *tramp, void *func);
         |                                                                            ~~~~~~^~~~
>> include/linux/static_call.h:154:41: warning: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |                                         ^
   kernel/sched/core.c:6585:3: note: in expansion of macro 'static_call_update'
    6585 |   static_call_update(preempt_schedule_notrace, NULL);
         |   ^~~~~~~~~~~~~~~~~~
>> include/linux/static_call.h:156:39: warning: passing argument 3 of '__static_call_update' makes pointer from integer without a cast [-Wint-conversion]
     156 |         STATIC_CALL_TRAMP_ADDR(name), __F); \
         |                                       ^~~
         |                                       |
         |                                       int
   kernel/sched/core.c:6585:3: note: in expansion of macro 'static_call_update'
    6585 |   static_call_update(preempt_schedule_notrace, NULL);
         |   ^~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:177:82: note: expected 'void *' but argument is of type 'int'
     177 | extern void __static_call_update(struct static_call_key *key, void *tramp, void *func);
         |                                                                            ~~~~~~^~~~
>> include/linux/static_call.h:154:41: warning: initialization of 'int' from 'int (*)(void)' makes integer from pointer without a cast [-Wint-conversion]
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |                                         ^
   kernel/sched/core.c:6592:3: note: in expansion of macro 'static_call_update'
    6592 |   static_call_update(might_resched, __cond_resched);
         |   ^~~~~~~~~~~~~~~~~~
>> include/linux/static_call.h:156:39: warning: passing argument 3 of '__static_call_update' makes pointer from integer without a cast [-Wint-conversion]
     156 |         STATIC_CALL_TRAMP_ADDR(name), __F); \
         |                                       ^~~
         |                                       |
         |                                       int
   kernel/sched/core.c:6592:3: note: in expansion of macro 'static_call_update'
    6592 |   static_call_update(might_resched, __cond_resched);
         |   ^~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:177:82: note: expected 'void *' but argument is of type 'int'
     177 | extern void __static_call_update(struct static_call_key *key, void *tramp, void *func);
         |                                                                            ~~~~~~^~~~
>> include/linux/static_call.h:154:41: warning: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |                                         ^
   kernel/sched/core.c:6593:3: note: in expansion of macro 'static_call_update'
    6593 |   static_call_update(preempt_schedule, NULL);
         |   ^~~~~~~~~~~~~~~~~~
>> include/linux/static_call.h:156:39: warning: passing argument 3 of '__static_call_update' makes pointer from integer without a cast [-Wint-conversion]
     156 |         STATIC_CALL_TRAMP_ADDR(name), __F); \
         |                                       ^~~
         |                                       |
         |                                       int
   kernel/sched/core.c:6593:3: note: in expansion of macro 'static_call_update'
    6593 |   static_call_update(preempt_schedule, NULL);
         |   ^~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:177:82: note: expected 'void *' but argument is of type 'int'
     177 | extern void __static_call_update(struct static_call_key *key, void *tramp, void *func);
         |                                                                            ~~~~~~^~~~
>> include/linux/static_call.h:154:41: warning: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |                                         ^
   kernel/sched/core.c:6594:3: note: in expansion of macro 'static_call_update'
    6594 |   static_call_update(preempt_schedule_notrace, NULL);
         |   ^~~~~~~~~~~~~~~~~~
>> include/linux/static_call.h:156:39: warning: passing argument 3 of '__static_call_update' makes pointer from integer without a cast [-Wint-conversion]
     156 |         STATIC_CALL_TRAMP_ADDR(name), __F); \
         |                                       ^~~
         |                                       |
         |                                       int
   kernel/sched/core.c:6594:3: note: in expansion of macro 'static_call_update'
    6594 |   static_call_update(preempt_schedule_notrace, NULL);
         |   ^~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:177:82: note: expected 'void *' but argument is of type 'int'
     177 | extern void __static_call_update(struct static_call_key *key, void *tramp, void *func);
         |                                                                            ~~~~~~^~~~
>> include/linux/static_call.h:154:41: warning: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
     154 |  typeof(&STATIC_CALL_TRAMP(name)) __F = (func);   \
         |                                         ^
   kernel/sched/core.c:6601:3: note: in expansion of macro 'static_call_update'
    6601 |   static_call_update(might_resched, (void *)&__static_call_return0);
         |   ^~~~~~~~~~~~~~~~~~
>> include/linux/static_call.h:156:39: warning: passing argument 3 of '__static_call_update' makes pointer from integer without a cast [-Wint-conversion]
     156 |         STATIC_CALL_TRAMP_ADDR(name), __F); \
         |                                       ^~~
         |                                       |
         |                                       int
   kernel/sched/core.c:6601:3: note: in expansion of macro 'static_call_update'
    6601 |   static_call_update(might_resched, (void *)&__static_call_return0);
         |   ^~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:177:82: note: expected 'void *' but argument is of type 'int'
     177 | extern void __static_call_update(struct static_call_key *key, void *tramp, void *func);
         |                                                                            ~~~~~~^~~~
>> include/linux/static_call.h:156:39: warning: passing argument 3 of '__static_call_update' makes pointer from integer without a cast [-Wint-conversion]
     156 |         STATIC_CALL_TRAMP_ADDR(name), __F); \
         |                                       ^~~
         |                                       |
         |                                       int
   kernel/sched/core.c:6602:3: note: in expansion of macro 'static_call_update'
    6602 |   static_call_update(preempt_schedule, __preempt_schedule_func);
         |   ^~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:177:82: note: expected 'void *' but argument is of type 'int'
     177 | extern void __static_call_update(struct static_call_key *key, void *tramp, void *func);
         |                                                                            ~~~~~~^~~~
>> include/linux/static_call.h:156:39: warning: passing argument 3 of '__static_call_update' makes pointer from integer without a cast [-Wint-conversion]
     156 |         STATIC_CALL_TRAMP_ADDR(name), __F); \
         |                                       ^~~
         |                                       |
         |                                       int
   kernel/sched/core.c:6603:3: note: in expansion of macro 'static_call_update'
    6603 |   static_call_update(preempt_schedule_notrace, __preempt_schedule_notrace_func);
         |   ^~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:177:82: note: expected 'void *' but argument is of type 'int'
     177 | extern void __static_call_update(struct static_call_key *key, void *tramp, void *func);
         |                                                                            ~~~~~~^~~~


vim +154 include/linux/static_call.h

115284d89a436e Josh Poimboeuf 2020-08-18  151  
115284d89a436e Josh Poimboeuf 2020-08-18  152  #define static_call_update(name, func)					\
115284d89a436e Josh Poimboeuf 2020-08-18  153  ({									\
9432bbd969c667 Peter Zijlstra 2021-03-23 @154  	typeof(&STATIC_CALL_TRAMP(name)) __F = (func);			\
115284d89a436e Josh Poimboeuf 2020-08-18  155  	__static_call_update(&STATIC_CALL_KEY(name),			\
9432bbd969c667 Peter Zijlstra 2021-03-23 @156  			     STATIC_CALL_TRAMP_ADDR(name), __F);	\
115284d89a436e Josh Poimboeuf 2020-08-18  157  })
115284d89a436e Josh Poimboeuf 2020-08-18  158  

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

  parent reply	other threads:[~2021-11-06  5:33 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-05 10:40 [PATCH] sched: Tweak default dynamic preempt mode selection Valentin Schneider
2021-11-06  4:40 ` Mike Galbraith
2021-11-08 11:17   ` Valentin Schneider
2021-11-08 12:27     ` Mike Galbraith
2021-11-08 15:21       ` Valentin Schneider
2021-11-09  5:30         ` Mike Galbraith
2021-11-09  9:52           ` Valentin Schneider
2021-11-09 11:00             ` Mike Galbraith
2021-11-09 12:19               ` Valentin Schneider
2021-11-09 13:31                 ` Mike Galbraith
2021-11-06  5:05 ` kernel test robot
2021-11-06  5:05   ` kernel test robot
2021-11-08 12:00   ` Valentin Schneider
2021-11-08 12:00     ` Valentin Schneider
2021-11-06  5:33 ` kernel test robot [this message]
2021-11-06  5:33   ` kernel test robot
2021-11-06  7:58 ` kernel test robot
2021-11-06  7:58   ` kernel test robot
2021-11-09 10:25 ` Frederic Weisbecker
2021-11-10  0:03   ` Valentin Schneider
2021-11-10  5:44     ` Mike Galbraith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202111061333.BSHSGMng-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=frederic@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=peterz@infradead.org \
    --cc=valentin.schneider@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.