All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH linux-next] sched/core: remove duplicate referenced header files
@ 2022-09-12  8:28 cgel.zte
  2022-09-12 10:33 ` kernel test robot
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: cgel.zte @ 2022-09-12  8:28 UTC (permalink / raw)
  To: mingo
  Cc: juri.lelli, vincent.guittot, dietmar.eggemann, rostedt, bsegall,
	mgorman, bristot, vschneid, linux-kernel, Xu Panda, Zeal Robot

From: Xu Panda <xu.panda@zte.com.cn>

linux/entry-common.h is included more than once,
and linux/sched/rseq_api.h is included more than once.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Xu Panda <xu.panda@zte.com.cn>
---
 kernel/sched/core.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index b60422300af6..1de0c26a370f 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -78,7 +78,6 @@
 #include <asm/tlb.h>

 #define CREATE_TRACE_POINTS
-#include <linux/sched/rseq_api.h>
 #include <trace/events/sched.h>
 #undef CREATE_TRACE_POINTS

@@ -8427,12 +8426,6 @@ int __cond_resched_rwlock_write(rwlock_t *lock)
 }
 EXPORT_SYMBOL(__cond_resched_rwlock_write);

-#ifdef CONFIG_PREEMPT_DYNAMIC
-
-#ifdef CONFIG_GENERIC_ENTRY
-#include <linux/entry-common.h>
-#endif
-
 /*
  * SC:cond_resched
  * SC:might_resched
-- 
2.15.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH linux-next] sched/core: remove duplicate referenced header files
  2022-09-12  8:28 [PATCH linux-next] sched/core: remove duplicate referenced header files cgel.zte
@ 2022-09-12 10:33 ` kernel test robot
  2022-09-12 16:51 ` kernel test robot
  2022-09-12 17:44 ` kernel test robot
  2 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2022-09-12 10:33 UTC (permalink / raw)
  To: cgel.zte, mingo
  Cc: kbuild-all, juri.lelli, vincent.guittot, dietmar.eggemann,
	rostedt, bsegall, mgorman, bristot, vschneid, linux-kernel,
	Xu Panda, Zeal Robot

Hi,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on next-20220909]

url:    https://github.com/intel-lab-lkp/linux/commits/cgel-zte-gmail-com/sched-core-remove-duplicate-referenced-header-files/20220912-163221
base:    9a82ccda91ed2b40619cb3c10d446ae1f97bab6e
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20220912/202209121840.ztJjt8BQ-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/intel-lab-lkp/linux/commit/4a9f2bfb0bf0353106fa2c74d7a8a0a0db2573df
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review cgel-zte-gmail-com/sched-core-remove-duplicate-referenced-header-files/20220912-163221
        git checkout 4a9f2bfb0bf0353106fa2c74d7a8a0a0db2573df
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash kernel/

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

All warnings (new ones prefixed by >>):

>> kernel/sched/core.c:8468:5: warning: no previous prototype for 'sched_dynamic_mode' [-Wmissing-prototypes]
    8468 | int sched_dynamic_mode(const char *str)
         |     ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8489:2: error: #error "Unsupported PREEMPT_DYNAMIC mechanism"
    8489 | #error "Unsupported PREEMPT_DYNAMIC mechanism"
         |  ^~~~~
>> kernel/sched/core.c:8492:6: warning: no previous prototype for 'sched_dynamic_update' [-Wmissing-prototypes]
    8492 | void sched_dynamic_update(int mode)
         |      ^~~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c: In function 'sched_dynamic_update':
   kernel/sched/core.c:8498:9: error: implicit declaration of function 'preempt_dynamic_enable'; did you mean 'preempt_enable'? [-Werror=implicit-function-declaration]
    8498 |         preempt_dynamic_enable(cond_resched);
         |         ^~~~~~~~~~~~~~~~~~~~~~
         |         preempt_enable
   kernel/sched/core.c:8498:32: error: 'cond_resched' undeclared (first use in this function); did you mean '_cond_resched'?
    8498 |         preempt_dynamic_enable(cond_resched);
         |                                ^~~~~~~~~~~~
         |                                _cond_resched
   kernel/sched/core.c:8498:32: note: each undeclared identifier is reported only once for each function it appears in
   kernel/sched/core.c:8499:32: error: 'might_resched' undeclared (first use in this function)
    8499 |         preempt_dynamic_enable(might_resched);
         |                                ^~~~~~~~~~~~~
   kernel/sched/core.c:8500:32: error: 'preempt_schedule' undeclared (first use in this function); did you mean 'preempt_schedule_irq'?
    8500 |         preempt_dynamic_enable(preempt_schedule);
         |                                ^~~~~~~~~~~~~~~~
         |                                preempt_schedule_irq
   kernel/sched/core.c:8501:32: error: 'preempt_schedule_notrace' undeclared (first use in this function); did you mean 'preempt_schedule_common'?
    8501 |         preempt_dynamic_enable(preempt_schedule_notrace);
         |                                ^~~~~~~~~~~~~~~~~~~~~~~~
         |                                preempt_schedule_common
   kernel/sched/core.c:8502:32: error: 'irqentry_exit_cond_resched' undeclared (first use in this function)
    8502 |         preempt_dynamic_enable(irqentry_exit_cond_resched);
         |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8507:17: error: implicit declaration of function 'preempt_dynamic_disable'; did you mean 'preempt_disable'? [-Werror=implicit-function-declaration]
    8507 |                 preempt_dynamic_disable(might_resched);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~
         |                 preempt_disable
   kernel/sched/core.c: At top level:
   kernel/sched/core.c:8566:14: error: redefinition of 'preempt_model_none'
    8566 |         bool preempt_model_##mode(void)                                          \
         |              ^~~~~~~~~~~~~~
   kernel/sched/core.c:8573:1: note: in expansion of macro 'PREEMPT_MODEL_ACCESSOR'
    8573 | PREEMPT_MODEL_ACCESSOR(none);
         | ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/sched/mm.h:7,
                    from include/linux/xarray.h:19,
                    from include/linux/list_lru.h:14,
                    from include/linux/fs.h:13,
                    from include/linux/highmem.h:5,
                    from kernel/sched/core.c:9:
   include/linux/sched.h:2154:20: note: previous definition of 'preempt_model_none' with type 'bool(void)' {aka '_Bool(void)'}
    2154 | static inline bool preempt_model_none(void)
         |                    ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8566:14: error: redefinition of 'preempt_model_voluntary'
    8566 |         bool preempt_model_##mode(void)                                          \
         |              ^~~~~~~~~~~~~~
   kernel/sched/core.c:8574:1: note: in expansion of macro 'PREEMPT_MODEL_ACCESSOR'
    8574 | PREEMPT_MODEL_ACCESSOR(voluntary);
         | ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/sched.h:2158:20: note: previous definition of 'preempt_model_voluntary' with type 'bool(void)' {aka '_Bool(void)'}
    2158 | static inline bool preempt_model_voluntary(void)
         |                    ^~~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8566:14: error: redefinition of 'preempt_model_full'
    8566 |         bool preempt_model_##mode(void)                                          \
         |              ^~~~~~~~~~~~~~
   kernel/sched/core.c:8575:1: note: in expansion of macro 'PREEMPT_MODEL_ACCESSOR'
    8575 | PREEMPT_MODEL_ACCESSOR(full);
         | ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/sched.h:2162:20: note: previous definition of 'preempt_model_full' with type 'bool(void)' {aka '_Bool(void)'}
    2162 | static inline bool preempt_model_full(void)
         |                    ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8577:2: error: #else without #if
    8577 | #else /* !CONFIG_PREEMPT_DYNAMIC */
         |  ^~~~
   kernel/sched/core.c:8579:20: error: redefinition of 'preempt_dynamic_init'
    8579 | static inline void preempt_dynamic_init(void) { }
         |                    ^~~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8549:20: note: previous definition of 'preempt_dynamic_init' with type 'void(void)'
    8549 | static void __init preempt_dynamic_init(void)
         |                    ^~~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8581:2: error: #endif without #if
    8581 | #endif /* #ifdef CONFIG_PREEMPT_DYNAMIC */
         |  ^~~~~
   kernel/sched/core.c:8549:20: warning: 'preempt_dynamic_init' defined but not used [-Wunused-function]
    8549 | static void __init preempt_dynamic_init(void)
         |                    ^~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/sched_dynamic_mode +8468 kernel/sched/core.c

4c7485584d48f6 Mark Rutland 2022-02-14  8467  
4c7485584d48f6 Mark Rutland 2022-02-14 @8468  int sched_dynamic_mode(const char *str)
4c7485584d48f6 Mark Rutland 2022-02-14  8469  {
4c7485584d48f6 Mark Rutland 2022-02-14  8470  	if (!strcmp(str, "none"))
4c7485584d48f6 Mark Rutland 2022-02-14  8471  		return preempt_dynamic_none;
4c7485584d48f6 Mark Rutland 2022-02-14  8472  
4c7485584d48f6 Mark Rutland 2022-02-14  8473  	if (!strcmp(str, "voluntary"))
4c7485584d48f6 Mark Rutland 2022-02-14  8474  		return preempt_dynamic_voluntary;
4c7485584d48f6 Mark Rutland 2022-02-14  8475  
4c7485584d48f6 Mark Rutland 2022-02-14  8476  	if (!strcmp(str, "full"))
4c7485584d48f6 Mark Rutland 2022-02-14  8477  		return preempt_dynamic_full;
4c7485584d48f6 Mark Rutland 2022-02-14  8478  
4c7485584d48f6 Mark Rutland 2022-02-14  8479  	return -EINVAL;
4c7485584d48f6 Mark Rutland 2022-02-14  8480  }
4c7485584d48f6 Mark Rutland 2022-02-14  8481  
99cf983cc8bca4 Mark Rutland 2022-02-14  8482  #if defined(CONFIG_HAVE_PREEMPT_DYNAMIC_CALL)
8a69fe0be143b0 Mark Rutland 2022-02-14  8483  #define preempt_dynamic_enable(f)	static_call_update(f, f##_dynamic_enabled)
8a69fe0be143b0 Mark Rutland 2022-02-14  8484  #define preempt_dynamic_disable(f)	static_call_update(f, f##_dynamic_disabled)
99cf983cc8bca4 Mark Rutland 2022-02-14  8485  #elif defined(CONFIG_HAVE_PREEMPT_DYNAMIC_KEY)
99cf983cc8bca4 Mark Rutland 2022-02-14  8486  #define preempt_dynamic_enable(f)	static_key_enable(&sk_dynamic_##f.key)
99cf983cc8bca4 Mark Rutland 2022-02-14  8487  #define preempt_dynamic_disable(f)	static_key_disable(&sk_dynamic_##f.key)
99cf983cc8bca4 Mark Rutland 2022-02-14  8488  #else
99cf983cc8bca4 Mark Rutland 2022-02-14  8489  #error "Unsupported PREEMPT_DYNAMIC mechanism"
99cf983cc8bca4 Mark Rutland 2022-02-14  8490  #endif
8a69fe0be143b0 Mark Rutland 2022-02-14  8491  
4c7485584d48f6 Mark Rutland 2022-02-14 @8492  void sched_dynamic_update(int mode)
4c7485584d48f6 Mark Rutland 2022-02-14  8493  {
4c7485584d48f6 Mark Rutland 2022-02-14  8494  	/*
4c7485584d48f6 Mark Rutland 2022-02-14  8495  	 * Avoid {NONE,VOLUNTARY} -> FULL transitions from ever ending up in
4c7485584d48f6 Mark Rutland 2022-02-14  8496  	 * the ZERO state, which is invalid.
4c7485584d48f6 Mark Rutland 2022-02-14  8497  	 */
8a69fe0be143b0 Mark Rutland 2022-02-14  8498  	preempt_dynamic_enable(cond_resched);
8a69fe0be143b0 Mark Rutland 2022-02-14  8499  	preempt_dynamic_enable(might_resched);
8a69fe0be143b0 Mark Rutland 2022-02-14  8500  	preempt_dynamic_enable(preempt_schedule);
8a69fe0be143b0 Mark Rutland 2022-02-14  8501  	preempt_dynamic_enable(preempt_schedule_notrace);
8a69fe0be143b0 Mark Rutland 2022-02-14  8502  	preempt_dynamic_enable(irqentry_exit_cond_resched);
4c7485584d48f6 Mark Rutland 2022-02-14  8503  
4c7485584d48f6 Mark Rutland 2022-02-14  8504  	switch (mode) {
4c7485584d48f6 Mark Rutland 2022-02-14  8505  	case preempt_dynamic_none:
8a69fe0be143b0 Mark Rutland 2022-02-14  8506  		preempt_dynamic_enable(cond_resched);
8a69fe0be143b0 Mark Rutland 2022-02-14  8507  		preempt_dynamic_disable(might_resched);
8a69fe0be143b0 Mark Rutland 2022-02-14  8508  		preempt_dynamic_disable(preempt_schedule);
8a69fe0be143b0 Mark Rutland 2022-02-14  8509  		preempt_dynamic_disable(preempt_schedule_notrace);
8a69fe0be143b0 Mark Rutland 2022-02-14  8510  		preempt_dynamic_disable(irqentry_exit_cond_resched);
4c7485584d48f6 Mark Rutland 2022-02-14  8511  		pr_info("Dynamic Preempt: none\n");
4c7485584d48f6 Mark Rutland 2022-02-14  8512  		break;
4c7485584d48f6 Mark Rutland 2022-02-14  8513  
4c7485584d48f6 Mark Rutland 2022-02-14  8514  	case preempt_dynamic_voluntary:
8a69fe0be143b0 Mark Rutland 2022-02-14  8515  		preempt_dynamic_enable(cond_resched);
8a69fe0be143b0 Mark Rutland 2022-02-14  8516  		preempt_dynamic_enable(might_resched);
8a69fe0be143b0 Mark Rutland 2022-02-14  8517  		preempt_dynamic_disable(preempt_schedule);
8a69fe0be143b0 Mark Rutland 2022-02-14  8518  		preempt_dynamic_disable(preempt_schedule_notrace);
8a69fe0be143b0 Mark Rutland 2022-02-14  8519  		preempt_dynamic_disable(irqentry_exit_cond_resched);
4c7485584d48f6 Mark Rutland 2022-02-14  8520  		pr_info("Dynamic Preempt: voluntary\n");
4c7485584d48f6 Mark Rutland 2022-02-14  8521  		break;
4c7485584d48f6 Mark Rutland 2022-02-14  8522  
4c7485584d48f6 Mark Rutland 2022-02-14  8523  	case preempt_dynamic_full:
8a69fe0be143b0 Mark Rutland 2022-02-14  8524  		preempt_dynamic_disable(cond_resched);
8a69fe0be143b0 Mark Rutland 2022-02-14  8525  		preempt_dynamic_disable(might_resched);
8a69fe0be143b0 Mark Rutland 2022-02-14  8526  		preempt_dynamic_enable(preempt_schedule);
8a69fe0be143b0 Mark Rutland 2022-02-14  8527  		preempt_dynamic_enable(preempt_schedule_notrace);
8a69fe0be143b0 Mark Rutland 2022-02-14  8528  		preempt_dynamic_enable(irqentry_exit_cond_resched);
4c7485584d48f6 Mark Rutland 2022-02-14  8529  		pr_info("Dynamic Preempt: full\n");
4c7485584d48f6 Mark Rutland 2022-02-14  8530  		break;
4c7485584d48f6 Mark Rutland 2022-02-14  8531  	}
4c7485584d48f6 Mark Rutland 2022-02-14  8532  
4c7485584d48f6 Mark Rutland 2022-02-14  8533  	preempt_dynamic_mode = mode;
4c7485584d48f6 Mark Rutland 2022-02-14  8534  }
4c7485584d48f6 Mark Rutland 2022-02-14  8535  

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH linux-next] sched/core: remove duplicate referenced header files
  2022-09-12  8:28 [PATCH linux-next] sched/core: remove duplicate referenced header files cgel.zte
  2022-09-12 10:33 ` kernel test robot
@ 2022-09-12 16:51 ` kernel test robot
  2022-09-12 17:44 ` kernel test robot
  2 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2022-09-12 16:51 UTC (permalink / raw)
  To: cgel.zte, mingo
  Cc: kbuild-all, juri.lelli, vincent.guittot, dietmar.eggemann,
	rostedt, bsegall, mgorman, bristot, vschneid, linux-kernel,
	Xu Panda, Zeal Robot

Hi,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on next-20220909]

url:    https://github.com/intel-lab-lkp/linux/commits/cgel-zte-gmail-com/sched-core-remove-duplicate-referenced-header-files/20220912-163221
base:    9a82ccda91ed2b40619cb3c10d446ae1f97bab6e
config: x86_64-rhel-8.3 (https://download.01.org/0day-ci/archive/20220913/202209130028.UNTLhAmU-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/intel-lab-lkp/linux/commit/4a9f2bfb0bf0353106fa2c74d7a8a0a0db2573df
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review cgel-zte-gmail-com/sched-core-remove-duplicate-referenced-header-files/20220912-163221
        git checkout 4a9f2bfb0bf0353106fa2c74d7a8a0a0db2573df
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash kernel/sched/

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

All warnings (new ones prefixed by >>):

   kernel/sched/core.c:8468:5: warning: no previous prototype for 'sched_dynamic_mode' [-Wmissing-prototypes]
    8468 | int sched_dynamic_mode(const char *str)
         |     ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8492:6: warning: no previous prototype for 'sched_dynamic_update' [-Wmissing-prototypes]
    8492 | void sched_dynamic_update(int mode)
         |      ^~~~~~~~~~~~~~~~~~~~
   In file included from <command-line>:
   kernel/sched/core.c: In function 'sched_dynamic_update':
   include/linux/static_call_types.h:15:41: error: '__SCT__cond_resched' undeclared (first use in this function); did you mean '__cond_resched'?
      15 | #define STATIC_CALL_TRAMP_PREFIX        __SCT__
         |                                         ^~~~~~~
   include/linux/compiler_types.h:73:23: note: in definition of macro '___PASTE'
      73 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:18:41: 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:49: 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:17: note: in expansion of macro 'STATIC_CALL_TRAMP'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                 ^~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8498:9: note: in expansion of macro 'preempt_dynamic_enable'
    8498 |         preempt_dynamic_enable(cond_resched);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call_types.h:15:41: 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:73:23: note: in definition of macro '___PASTE'
      73 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:18:41: 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:49: 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:17: note: in expansion of macro 'STATIC_CALL_TRAMP'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                 ^~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8498:9: note: in expansion of macro 'preempt_dynamic_enable'
    8498 |         preempt_dynamic_enable(cond_resched);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/tracepoint.h:22,
                    from include/trace/syscall.h:5,
                    from include/linux/syscalls.h:88,
                    from include/linux/syscalls_api.h:1,
                    from kernel/sched/core.c:13:
   kernel/sched/core.c:8498:32: error: 'cond_resched_dynamic_enabled' undeclared (first use in this function)
    8498 |         preempt_dynamic_enable(cond_resched);
         |                                ^~~~~~~~~~~~
   include/linux/static_call.h:154:49: note: in definition of macro 'static_call_update'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                                                 ^~~~
   kernel/sched/core.c:8498:9: note: in expansion of macro 'preempt_dynamic_enable'
    8498 |         preempt_dynamic_enable(cond_resched);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from <command-line>:
   include/linux/static_call_types.h:9:41: error: '__SCK__cond_resched' undeclared (first use in this function); did you mean '__cond_resched'?
       9 | #define STATIC_CALL_KEY_PREFIX          __SCK__
         |                                         ^~~~~~~
   include/linux/compiler_types.h:73:23: note: in definition of macro '___PASTE'
      73 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:12:41: 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:49: 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:31: note: in expansion of macro 'STATIC_CALL_KEY'
     155 |         __static_call_update(&STATIC_CALL_KEY(name),                    \
         |                               ^~~~~~~~~~~~~~~
   kernel/sched/core.c:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8498:9: note: in expansion of macro 'preempt_dynamic_enable'
    8498 |         preempt_dynamic_enable(cond_resched);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/tracepoint.h:22,
                    from include/trace/syscall.h:5,
                    from include/linux/syscalls.h:88,
                    from include/linux/syscalls_api.h:1,
                    from kernel/sched/core.c:13:
>> include/linux/static_call.h:156:60: 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:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8498:9: note: in expansion of macro 'preempt_dynamic_enable'
    8498 |         preempt_dynamic_enable(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:41: error: '__SCT__might_resched' undeclared (first use in this function); did you mean '__might_resched'?
      15 | #define STATIC_CALL_TRAMP_PREFIX        __SCT__
         |                                         ^~~~~~~
   include/linux/compiler_types.h:73:23: note: in definition of macro '___PASTE'
      73 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:18:41: 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:49: 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:17: note: in expansion of macro 'STATIC_CALL_TRAMP'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                 ^~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8499:9: note: in expansion of macro 'preempt_dynamic_enable'
    8499 |         preempt_dynamic_enable(might_resched);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/tracepoint.h:22,
                    from include/trace/syscall.h:5,
                    from include/linux/syscalls.h:88,
                    from include/linux/syscalls_api.h:1,
                    from kernel/sched/core.c:13:
   kernel/sched/core.c:8499:32: error: 'might_resched_dynamic_enabled' undeclared (first use in this function)
    8499 |         preempt_dynamic_enable(might_resched);
         |                                ^~~~~~~~~~~~~
   include/linux/static_call.h:154:49: note: in definition of macro 'static_call_update'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                                                 ^~~~
   kernel/sched/core.c:8499:9: note: in expansion of macro 'preempt_dynamic_enable'
    8499 |         preempt_dynamic_enable(might_resched);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from <command-line>:
   include/linux/static_call_types.h:9:41: error: '__SCK__might_resched' undeclared (first use in this function); did you mean '__might_resched'?
       9 | #define STATIC_CALL_KEY_PREFIX          __SCK__
         |                                         ^~~~~~~
   include/linux/compiler_types.h:73:23: note: in definition of macro '___PASTE'
      73 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:12:41: 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:49: 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:31: note: in expansion of macro 'STATIC_CALL_KEY'
     155 |         __static_call_update(&STATIC_CALL_KEY(name),                    \
         |                               ^~~~~~~~~~~~~~~
   kernel/sched/core.c:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8499:9: note: in expansion of macro 'preempt_dynamic_enable'
    8499 |         preempt_dynamic_enable(might_resched);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/tracepoint.h:22,
                    from include/trace/syscall.h:5,
                    from include/linux/syscalls.h:88,
                    from include/linux/syscalls_api.h:1,
                    from kernel/sched/core.c:13:
>> include/linux/static_call.h:156:60: 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:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8499:9: note: in expansion of macro 'preempt_dynamic_enable'
    8499 |         preempt_dynamic_enable(might_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:41: error: '__SCT__preempt_schedule' undeclared (first use in this function)
      15 | #define STATIC_CALL_TRAMP_PREFIX        __SCT__
         |                                         ^~~~~~~
   include/linux/compiler_types.h:73:23: note: in definition of macro '___PASTE'
      73 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:18:41: 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:49: 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:17: note: in expansion of macro 'STATIC_CALL_TRAMP'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                 ^~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8500:9: note: in expansion of macro 'preempt_dynamic_enable'
    8500 |         preempt_dynamic_enable(preempt_schedule);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/tracepoint.h:22,
                    from include/trace/syscall.h:5,
                    from include/linux/syscalls.h:88,
                    from include/linux/syscalls_api.h:1,
                    from kernel/sched/core.c:13:
   kernel/sched/core.c:8500:32: error: 'preempt_schedule_dynamic_enabled' undeclared (first use in this function); did you mean 'preempt_dynamic_enable'?
    8500 |         preempt_dynamic_enable(preempt_schedule);
         |                                ^~~~~~~~~~~~~~~~
   include/linux/static_call.h:154:49: note: in definition of macro 'static_call_update'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                                                 ^~~~
   kernel/sched/core.c:8500:9: note: in expansion of macro 'preempt_dynamic_enable'
    8500 |         preempt_dynamic_enable(preempt_schedule);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from <command-line>:
   include/linux/static_call_types.h:9:41: error: '__SCK__preempt_schedule' undeclared (first use in this function)
       9 | #define STATIC_CALL_KEY_PREFIX          __SCK__
         |                                         ^~~~~~~
   include/linux/compiler_types.h:73:23: note: in definition of macro '___PASTE'
      73 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:12:41: 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:49: 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:31: note: in expansion of macro 'STATIC_CALL_KEY'
     155 |         __static_call_update(&STATIC_CALL_KEY(name),                    \
         |                               ^~~~~~~~~~~~~~~
   kernel/sched/core.c:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8500:9: note: in expansion of macro 'preempt_dynamic_enable'
    8500 |         preempt_dynamic_enable(preempt_schedule);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/tracepoint.h:22,
                    from include/trace/syscall.h:5,
                    from include/linux/syscalls.h:88,
                    from include/linux/syscalls_api.h:1,
                    from kernel/sched/core.c:13:
>> include/linux/static_call.h:156:60: 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:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8500:9: note: in expansion of macro 'preempt_dynamic_enable'
    8500 |         preempt_dynamic_enable(preempt_schedule);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   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:41: error: '__SCT__preempt_schedule_notrace' undeclared (first use in this function)
      15 | #define STATIC_CALL_TRAMP_PREFIX        __SCT__
         |                                         ^~~~~~~
   include/linux/compiler_types.h:73:23: note: in definition of macro '___PASTE'
      73 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:18:41: 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:49: 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:17: note: in expansion of macro 'STATIC_CALL_TRAMP'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                 ^~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8501:9: note: in expansion of macro 'preempt_dynamic_enable'
    8501 |         preempt_dynamic_enable(preempt_schedule_notrace);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/tracepoint.h:22,
                    from include/trace/syscall.h:5,
                    from include/linux/syscalls.h:88,
                    from include/linux/syscalls_api.h:1,
                    from kernel/sched/core.c:13:
   kernel/sched/core.c:8501:32: error: 'preempt_schedule_notrace_dynamic_enabled' undeclared (first use in this function)
    8501 |         preempt_dynamic_enable(preempt_schedule_notrace);
         |                                ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:154:49: note: in definition of macro 'static_call_update'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                                                 ^~~~
   kernel/sched/core.c:8501:9: note: in expansion of macro 'preempt_dynamic_enable'
    8501 |         preempt_dynamic_enable(preempt_schedule_notrace);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from <command-line>:
   include/linux/static_call_types.h:9:41: error: '__SCK__preempt_schedule_notrace' undeclared (first use in this function)
       9 | #define STATIC_CALL_KEY_PREFIX          __SCK__
         |                                         ^~~~~~~
   include/linux/compiler_types.h:73:23: note: in definition of macro '___PASTE'
      73 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:12:41: 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:49: 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:31: note: in expansion of macro 'STATIC_CALL_KEY'
     155 |         __static_call_update(&STATIC_CALL_KEY(name),                    \
         |                               ^~~~~~~~~~~~~~~
   kernel/sched/core.c:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8501:9: note: in expansion of macro 'preempt_dynamic_enable'
    8501 |         preempt_dynamic_enable(preempt_schedule_notrace);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/tracepoint.h:22,
                    from include/trace/syscall.h:5,
                    from include/linux/syscalls.h:88,
                    from include/linux/syscalls_api.h:1,
                    from kernel/sched/core.c:13:
>> include/linux/static_call.h:156:60: 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:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8501:9: note: in expansion of macro 'preempt_dynamic_enable'
    8501 |         preempt_dynamic_enable(preempt_schedule_notrace);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   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:41: error: '__SCT__irqentry_exit_cond_resched' undeclared (first use in this function)
      15 | #define STATIC_CALL_TRAMP_PREFIX        __SCT__
         |                                         ^~~~~~~
   include/linux/compiler_types.h:73:23: note: in definition of macro '___PASTE'
      73 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:18:41: 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:49: 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:17: note: in expansion of macro 'STATIC_CALL_TRAMP'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                 ^~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8502:9: note: in expansion of macro 'preempt_dynamic_enable'
    8502 |         preempt_dynamic_enable(irqentry_exit_cond_resched);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/tracepoint.h:22,
                    from include/trace/syscall.h:5,
                    from include/linux/syscalls.h:88,
                    from include/linux/syscalls_api.h:1,
                    from kernel/sched/core.c:13:
   kernel/sched/core.c:8502:32: error: 'irqentry_exit_cond_resched_dynamic_enabled' undeclared (first use in this function)
    8502 |         preempt_dynamic_enable(irqentry_exit_cond_resched);
         |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:154:49: note: in definition of macro 'static_call_update'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                                                 ^~~~
   kernel/sched/core.c:8502:9: note: in expansion of macro 'preempt_dynamic_enable'
    8502 |         preempt_dynamic_enable(irqentry_exit_cond_resched);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from <command-line>:
   include/linux/static_call_types.h:9:41: error: '__SCK__irqentry_exit_cond_resched' undeclared (first use in this function)
       9 | #define STATIC_CALL_KEY_PREFIX          __SCK__
         |                                         ^~~~~~~
   include/linux/compiler_types.h:73:23: note: in definition of macro '___PASTE'
      73 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:12:41: 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:49: 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:31: note: in expansion of macro 'STATIC_CALL_KEY'
     155 |         __static_call_update(&STATIC_CALL_KEY(name),                    \
         |                               ^~~~~~~~~~~~~~~
   kernel/sched/core.c:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8502:9: note: in expansion of macro 'preempt_dynamic_enable'
    8502 |         preempt_dynamic_enable(irqentry_exit_cond_resched);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/tracepoint.h:22,
                    from include/trace/syscall.h:5,
                    from include/linux/syscalls.h:88,
                    from include/linux/syscalls_api.h:1,
                    from kernel/sched/core.c:13:
>> include/linux/static_call.h:156:60: 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:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8502:9: note: in expansion of macro 'preempt_dynamic_enable'
    8502 |         preempt_dynamic_enable(irqentry_exit_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:156:60: 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:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8506:17: note: in expansion of macro 'preempt_dynamic_enable'
    8506 |                 preempt_dynamic_enable(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);
         |                                                                            ~~~~~~^~~~
   kernel/sched/core.c:8507:41: error: 'might_resched_dynamic_disabled' undeclared (first use in this function)
    8507 |                 preempt_dynamic_disable(might_resched);
         |                                         ^~~~~~~~~~~~~
   include/linux/static_call.h:154:49: note: in definition of macro 'static_call_update'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                                                 ^~~~
   kernel/sched/core.c:8507:17: note: in expansion of macro 'preempt_dynamic_disable'
    8507 |                 preempt_dynamic_disable(might_resched);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/static_call.h:156:60: 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:8484:41: note: in expansion of macro 'static_call_update'
    8484 | #define preempt_dynamic_disable(f)      static_call_update(f, f##_dynamic_disabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8507:17: note: in expansion of macro 'preempt_dynamic_disable'
    8507 |                 preempt_dynamic_disable(might_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);
         |                                                                            ~~~~~~^~~~
   kernel/sched/core.c:8508:41: error: 'preempt_schedule_dynamic_disabled' undeclared (first use in this function); did you mean 'preempt_dynamic_disable'?
    8508 |                 preempt_dynamic_disable(preempt_schedule);
         |                                         ^~~~~~~~~~~~~~~~
   include/linux/static_call.h:154:49: note: in definition of macro 'static_call_update'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                                                 ^~~~
   kernel/sched/core.c:8508:17: note: in expansion of macro 'preempt_dynamic_disable'
    8508 |                 preempt_dynamic_disable(preempt_schedule);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/static_call.h:156:60: 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:8484:41: note: in expansion of macro 'static_call_update'
    8484 | #define preempt_dynamic_disable(f)      static_call_update(f, f##_dynamic_disabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8508:17: note: in expansion of macro 'preempt_dynamic_disable'
    8508 |                 preempt_dynamic_disable(preempt_schedule);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~
   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);
         |                                                                            ~~~~~~^~~~
   kernel/sched/core.c:8509:41: error: 'preempt_schedule_notrace_dynamic_disabled' undeclared (first use in this function)
    8509 |                 preempt_dynamic_disable(preempt_schedule_notrace);
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:154:49: note: in definition of macro 'static_call_update'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                                                 ^~~~
   kernel/sched/core.c:8509:17: note: in expansion of macro 'preempt_dynamic_disable'
    8509 |                 preempt_dynamic_disable(preempt_schedule_notrace);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/static_call.h:156:60: 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:8484:41: note: in expansion of macro 'static_call_update'
    8484 | #define preempt_dynamic_disable(f)      static_call_update(f, f##_dynamic_disabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8509:17: note: in expansion of macro 'preempt_dynamic_disable'
    8509 |                 preempt_dynamic_disable(preempt_schedule_notrace);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~
   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);
         |                                                                            ~~~~~~^~~~
   kernel/sched/core.c:8510:41: error: 'irqentry_exit_cond_resched_dynamic_disabled' undeclared (first use in this function)
    8510 |                 preempt_dynamic_disable(irqentry_exit_cond_resched);
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:154:49: note: in definition of macro 'static_call_update'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                                                 ^~~~
   kernel/sched/core.c:8510:17: note: in expansion of macro 'preempt_dynamic_disable'
    8510 |                 preempt_dynamic_disable(irqentry_exit_cond_resched);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/static_call.h:156:60: 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:8484:41: note: in expansion of macro 'static_call_update'
    8484 | #define preempt_dynamic_disable(f)      static_call_update(f, f##_dynamic_disabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8510:17: note: in expansion of macro 'preempt_dynamic_disable'
    8510 |                 preempt_dynamic_disable(irqentry_exit_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:156:60: 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:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8515:17: note: in expansion of macro 'preempt_dynamic_enable'
    8515 |                 preempt_dynamic_enable(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:156:60: 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:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8516:17: note: in expansion of macro 'preempt_dynamic_enable'
    8516 |                 preempt_dynamic_enable(might_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:156:60: 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:8484:41: note: in expansion of macro 'static_call_update'
    8484 | #define preempt_dynamic_disable(f)      static_call_update(f, f##_dynamic_disabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8517:17: note: in expansion of macro 'preempt_dynamic_disable'
    8517 |                 preempt_dynamic_disable(preempt_schedule);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~
   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:60: 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:8484:41: note: in expansion of macro 'static_call_update'
    8484 | #define preempt_dynamic_disable(f)      static_call_update(f, f##_dynamic_disabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8518:17: note: in expansion of macro 'preempt_dynamic_disable'
    8518 |                 preempt_dynamic_disable(preempt_schedule_notrace);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~
   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:60: 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:8484:41: note: in expansion of macro 'static_call_update'
    8484 | #define preempt_dynamic_disable(f)      static_call_update(f, f##_dynamic_disabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8519:17: note: in expansion of macro 'preempt_dynamic_disable'
    8519 |                 preempt_dynamic_disable(irqentry_exit_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);
         |                                                                            ~~~~~~^~~~
   kernel/sched/core.c:8524:41: error: 'cond_resched_dynamic_disabled' undeclared (first use in this function)
    8524 |                 preempt_dynamic_disable(cond_resched);
         |                                         ^~~~~~~~~~~~
   include/linux/static_call.h:154:49: note: in definition of macro 'static_call_update'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                                                 ^~~~
   kernel/sched/core.c:8524:17: note: in expansion of macro 'preempt_dynamic_disable'
    8524 |                 preempt_dynamic_disable(cond_resched);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/static_call.h:156:60: 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:8484:41: note: in expansion of macro 'static_call_update'
    8484 | #define preempt_dynamic_disable(f)      static_call_update(f, f##_dynamic_disabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8524:17: note: in expansion of macro 'preempt_dynamic_disable'
    8524 |                 preempt_dynamic_disable(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:156:60: 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:8484:41: note: in expansion of macro 'static_call_update'
    8484 | #define preempt_dynamic_disable(f)      static_call_update(f, f##_dynamic_disabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8525:17: note: in expansion of macro 'preempt_dynamic_disable'
    8525 |                 preempt_dynamic_disable(might_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:156:60: 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:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8526:17: note: in expansion of macro 'preempt_dynamic_enable'
    8526 |                 preempt_dynamic_enable(preempt_schedule);
         |                 ^~~~~~~~~~~~~~~~~~~~~~
   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:60: 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:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8527:17: note: in expansion of macro 'preempt_dynamic_enable'
    8527 |                 preempt_dynamic_enable(preempt_schedule_notrace);
         |                 ^~~~~~~~~~~~~~~~~~~~~~
   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:60: 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:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8528:17: note: in expansion of macro 'preempt_dynamic_enable'
    8528 |                 preempt_dynamic_enable(irqentry_exit_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);
         |                                                                            ~~~~~~^~~~
   kernel/sched/core.c: At top level:
   kernel/sched/core.c:8566:14: error: redefinition of 'preempt_model_none'
    8566 |         bool preempt_model_##mode(void)                                          \
         |              ^~~~~~~~~~~~~~
   kernel/sched/core.c:8573:1: note: in expansion of macro 'PREEMPT_MODEL_ACCESSOR'
    8573 | PREEMPT_MODEL_ACCESSOR(none);
         | ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/sched/mm.h:7,
                    from include/linux/xarray.h:19,
                    from include/linux/list_lru.h:14,
                    from include/linux/fs.h:13,
                    from include/linux/highmem.h:5,
                    from kernel/sched/core.c:9:
   include/linux/sched.h:2154:20: note: previous definition of 'preempt_model_none' with type 'bool(void)' {aka '_Bool(void)'}
    2154 | static inline bool preempt_model_none(void)
         |                    ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8566:14: error: redefinition of 'preempt_model_voluntary'
    8566 |         bool preempt_model_##mode(void)                                          \
         |              ^~~~~~~~~~~~~~
   kernel/sched/core.c:8574:1: note: in expansion of macro 'PREEMPT_MODEL_ACCESSOR'
    8574 | PREEMPT_MODEL_ACCESSOR(voluntary);
         | ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/sched/mm.h:7,
                    from include/linux/xarray.h:19,
                    from include/linux/list_lru.h:14,
                    from include/linux/fs.h:13,
                    from include/linux/highmem.h:5,
                    from kernel/sched/core.c:9:
   include/linux/sched.h:2158:20: note: previous definition of 'preempt_model_voluntary' with type 'bool(void)' {aka '_Bool(void)'}
    2158 | static inline bool preempt_model_voluntary(void)
         |                    ^~~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8566:14: error: redefinition of 'preempt_model_full'
    8566 |         bool preempt_model_##mode(void)                                          \
         |              ^~~~~~~~~~~~~~
   kernel/sched/core.c:8575:1: note: in expansion of macro 'PREEMPT_MODEL_ACCESSOR'
    8575 | PREEMPT_MODEL_ACCESSOR(full);
         | ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/sched/mm.h:7,
                    from include/linux/xarray.h:19,
                    from include/linux/list_lru.h:14,
                    from include/linux/fs.h:13,
                    from include/linux/highmem.h:5,
                    from kernel/sched/core.c:9:
   include/linux/sched.h:2162:20: note: previous definition of 'preempt_model_full' with type 'bool(void)' {aka '_Bool(void)'}
    2162 | static inline bool preempt_model_full(void)
         |                    ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8577:2: error: #else without #if
    8577 | #else /* !CONFIG_PREEMPT_DYNAMIC */
         |  ^~~~
   kernel/sched/core.c:8579:20: error: redefinition of 'preempt_dynamic_init'
    8579 | static inline void preempt_dynamic_init(void) { }
         |                    ^~~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8549:20: note: previous definition of 'preempt_dynamic_init' with type 'void(void)'
    8549 | static void __init preempt_dynamic_init(void)
         |                    ^~~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8581:2: error: #endif without #if
    8581 | #endif /* #ifdef CONFIG_PREEMPT_DYNAMIC */
         |  ^~~~~
   kernel/sched/core.c:8549:20: warning: 'preempt_dynamic_init' defined but not used [-Wunused-function]
    8549 | static void __init preempt_dynamic_init(void)
         |                    ^~~~~~~~~~~~~~~~~~~~


vim +/__static_call_update +156 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
https://01.org/lkp

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH linux-next] sched/core: remove duplicate referenced header files
  2022-09-12  8:28 [PATCH linux-next] sched/core: remove duplicate referenced header files cgel.zte
  2022-09-12 10:33 ` kernel test robot
  2022-09-12 16:51 ` kernel test robot
@ 2022-09-12 17:44 ` kernel test robot
  2 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2022-09-12 17:44 UTC (permalink / raw)
  To: cgel.zte, mingo
  Cc: kbuild-all, juri.lelli, vincent.guittot, dietmar.eggemann,
	rostedt, bsegall, mgorman, bristot, vschneid, linux-kernel,
	Xu Panda, Zeal Robot

Hi,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on next-20220909]

url:    https://github.com/intel-lab-lkp/linux/commits/cgel-zte-gmail-com/sched-core-remove-duplicate-referenced-header-files/20220912-163221
base:    9a82ccda91ed2b40619cb3c10d446ae1f97bab6e
config: x86_64-rhel-8.3 (https://download.01.org/0day-ci/archive/20220913/202209130141.D1VI4JUi-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/intel-lab-lkp/linux/commit/4a9f2bfb0bf0353106fa2c74d7a8a0a0db2573df
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review cgel-zte-gmail-com/sched-core-remove-duplicate-referenced-header-files/20220912-163221
        git checkout 4a9f2bfb0bf0353106fa2c74d7a8a0a0db2573df
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

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 >>):

   kernel/sched/core.c:8468:5: warning: no previous prototype for 'sched_dynamic_mode' [-Wmissing-prototypes]
    8468 | int sched_dynamic_mode(const char *str)
         |     ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8492:6: warning: no previous prototype for 'sched_dynamic_update' [-Wmissing-prototypes]
    8492 | void sched_dynamic_update(int mode)
         |      ^~~~~~~~~~~~~~~~~~~~
   In file included from <command-line>:
   kernel/sched/core.c: In function 'sched_dynamic_update':
>> include/linux/static_call_types.h:15:41: error: '__SCT__cond_resched' undeclared (first use in this function); did you mean '__cond_resched'?
      15 | #define STATIC_CALL_TRAMP_PREFIX        __SCT__
         |                                         ^~~~~~~
   include/linux/compiler_types.h:73:23: note: in definition of macro '___PASTE'
      73 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:18:41: 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:49: 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:17: note: in expansion of macro 'STATIC_CALL_TRAMP'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                 ^~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8498:9: note: in expansion of macro 'preempt_dynamic_enable'
    8498 |         preempt_dynamic_enable(cond_resched);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call_types.h:15:41: 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:73:23: note: in definition of macro '___PASTE'
      73 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:18:41: 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:49: 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:17: note: in expansion of macro 'STATIC_CALL_TRAMP'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                 ^~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8498:9: note: in expansion of macro 'preempt_dynamic_enable'
    8498 |         preempt_dynamic_enable(cond_resched);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/tracepoint.h:22,
                    from include/trace/syscall.h:5,
                    from include/linux/syscalls.h:88,
                    from include/linux/syscalls_api.h:1,
                    from kernel/sched/core.c:13:
>> kernel/sched/core.c:8498:32: error: 'cond_resched_dynamic_enabled' undeclared (first use in this function)
    8498 |         preempt_dynamic_enable(cond_resched);
         |                                ^~~~~~~~~~~~
   include/linux/static_call.h:154:49: note: in definition of macro 'static_call_update'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                                                 ^~~~
   kernel/sched/core.c:8498:9: note: in expansion of macro 'preempt_dynamic_enable'
    8498 |         preempt_dynamic_enable(cond_resched);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from <command-line>:
>> include/linux/static_call_types.h:9:41: error: '__SCK__cond_resched' undeclared (first use in this function); did you mean '__cond_resched'?
       9 | #define STATIC_CALL_KEY_PREFIX          __SCK__
         |                                         ^~~~~~~
   include/linux/compiler_types.h:73:23: note: in definition of macro '___PASTE'
      73 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:12:41: 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:49: 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:31: note: in expansion of macro 'STATIC_CALL_KEY'
     155 |         __static_call_update(&STATIC_CALL_KEY(name),                    \
         |                               ^~~~~~~~~~~~~~~
   kernel/sched/core.c:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8498:9: note: in expansion of macro 'preempt_dynamic_enable'
    8498 |         preempt_dynamic_enable(cond_resched);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/tracepoint.h:22,
                    from include/trace/syscall.h:5,
                    from include/linux/syscalls.h:88,
                    from include/linux/syscalls_api.h:1,
                    from kernel/sched/core.c:13:
   include/linux/static_call.h:156:60: 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:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8498:9: note: in expansion of macro 'preempt_dynamic_enable'
    8498 |         preempt_dynamic_enable(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:41: error: '__SCT__might_resched' undeclared (first use in this function); did you mean '__might_resched'?
      15 | #define STATIC_CALL_TRAMP_PREFIX        __SCT__
         |                                         ^~~~~~~
   include/linux/compiler_types.h:73:23: note: in definition of macro '___PASTE'
      73 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:18:41: 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:49: 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:17: note: in expansion of macro 'STATIC_CALL_TRAMP'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                 ^~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8499:9: note: in expansion of macro 'preempt_dynamic_enable'
    8499 |         preempt_dynamic_enable(might_resched);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/tracepoint.h:22,
                    from include/trace/syscall.h:5,
                    from include/linux/syscalls.h:88,
                    from include/linux/syscalls_api.h:1,
                    from kernel/sched/core.c:13:
>> kernel/sched/core.c:8499:32: error: 'might_resched_dynamic_enabled' undeclared (first use in this function)
    8499 |         preempt_dynamic_enable(might_resched);
         |                                ^~~~~~~~~~~~~
   include/linux/static_call.h:154:49: note: in definition of macro 'static_call_update'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                                                 ^~~~
   kernel/sched/core.c:8499:9: note: in expansion of macro 'preempt_dynamic_enable'
    8499 |         preempt_dynamic_enable(might_resched);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from <command-line>:
>> include/linux/static_call_types.h:9:41: error: '__SCK__might_resched' undeclared (first use in this function); did you mean '__might_resched'?
       9 | #define STATIC_CALL_KEY_PREFIX          __SCK__
         |                                         ^~~~~~~
   include/linux/compiler_types.h:73:23: note: in definition of macro '___PASTE'
      73 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:12:41: 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:49: 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:31: note: in expansion of macro 'STATIC_CALL_KEY'
     155 |         __static_call_update(&STATIC_CALL_KEY(name),                    \
         |                               ^~~~~~~~~~~~~~~
   kernel/sched/core.c:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8499:9: note: in expansion of macro 'preempt_dynamic_enable'
    8499 |         preempt_dynamic_enable(might_resched);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/tracepoint.h:22,
                    from include/trace/syscall.h:5,
                    from include/linux/syscalls.h:88,
                    from include/linux/syscalls_api.h:1,
                    from kernel/sched/core.c:13:
   include/linux/static_call.h:156:60: 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:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8499:9: note: in expansion of macro 'preempt_dynamic_enable'
    8499 |         preempt_dynamic_enable(might_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:41: error: '__SCT__preempt_schedule' undeclared (first use in this function)
      15 | #define STATIC_CALL_TRAMP_PREFIX        __SCT__
         |                                         ^~~~~~~
   include/linux/compiler_types.h:73:23: note: in definition of macro '___PASTE'
      73 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:18:41: 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:49: 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:17: note: in expansion of macro 'STATIC_CALL_TRAMP'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                 ^~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8500:9: note: in expansion of macro 'preempt_dynamic_enable'
    8500 |         preempt_dynamic_enable(preempt_schedule);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/tracepoint.h:22,
                    from include/trace/syscall.h:5,
                    from include/linux/syscalls.h:88,
                    from include/linux/syscalls_api.h:1,
                    from kernel/sched/core.c:13:
>> kernel/sched/core.c:8500:32: error: 'preempt_schedule_dynamic_enabled' undeclared (first use in this function); did you mean 'preempt_dynamic_enable'?
    8500 |         preempt_dynamic_enable(preempt_schedule);
         |                                ^~~~~~~~~~~~~~~~
   include/linux/static_call.h:154:49: note: in definition of macro 'static_call_update'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                                                 ^~~~
   kernel/sched/core.c:8500:9: note: in expansion of macro 'preempt_dynamic_enable'
    8500 |         preempt_dynamic_enable(preempt_schedule);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from <command-line>:
>> include/linux/static_call_types.h:9:41: error: '__SCK__preempt_schedule' undeclared (first use in this function)
       9 | #define STATIC_CALL_KEY_PREFIX          __SCK__
         |                                         ^~~~~~~
   include/linux/compiler_types.h:73:23: note: in definition of macro '___PASTE'
      73 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:12:41: 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:49: 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:31: note: in expansion of macro 'STATIC_CALL_KEY'
     155 |         __static_call_update(&STATIC_CALL_KEY(name),                    \
         |                               ^~~~~~~~~~~~~~~
   kernel/sched/core.c:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8500:9: note: in expansion of macro 'preempt_dynamic_enable'
    8500 |         preempt_dynamic_enable(preempt_schedule);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/tracepoint.h:22,
                    from include/trace/syscall.h:5,
                    from include/linux/syscalls.h:88,
                    from include/linux/syscalls_api.h:1,
                    from kernel/sched/core.c:13:
   include/linux/static_call.h:156:60: 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:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8500:9: note: in expansion of macro 'preempt_dynamic_enable'
    8500 |         preempt_dynamic_enable(preempt_schedule);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   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:41: error: '__SCT__preempt_schedule_notrace' undeclared (first use in this function)
      15 | #define STATIC_CALL_TRAMP_PREFIX        __SCT__
         |                                         ^~~~~~~
   include/linux/compiler_types.h:73:23: note: in definition of macro '___PASTE'
      73 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:18:41: 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:49: 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:17: note: in expansion of macro 'STATIC_CALL_TRAMP'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                 ^~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8501:9: note: in expansion of macro 'preempt_dynamic_enable'
    8501 |         preempt_dynamic_enable(preempt_schedule_notrace);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/tracepoint.h:22,
                    from include/trace/syscall.h:5,
                    from include/linux/syscalls.h:88,
                    from include/linux/syscalls_api.h:1,
                    from kernel/sched/core.c:13:
>> kernel/sched/core.c:8501:32: error: 'preempt_schedule_notrace_dynamic_enabled' undeclared (first use in this function)
    8501 |         preempt_dynamic_enable(preempt_schedule_notrace);
         |                                ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:154:49: note: in definition of macro 'static_call_update'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                                                 ^~~~
   kernel/sched/core.c:8501:9: note: in expansion of macro 'preempt_dynamic_enable'
    8501 |         preempt_dynamic_enable(preempt_schedule_notrace);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from <command-line>:
>> include/linux/static_call_types.h:9:41: error: '__SCK__preempt_schedule_notrace' undeclared (first use in this function)
       9 | #define STATIC_CALL_KEY_PREFIX          __SCK__
         |                                         ^~~~~~~
   include/linux/compiler_types.h:73:23: note: in definition of macro '___PASTE'
      73 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:12:41: 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:49: 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:31: note: in expansion of macro 'STATIC_CALL_KEY'
     155 |         __static_call_update(&STATIC_CALL_KEY(name),                    \
         |                               ^~~~~~~~~~~~~~~
   kernel/sched/core.c:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8501:9: note: in expansion of macro 'preempt_dynamic_enable'
    8501 |         preempt_dynamic_enable(preempt_schedule_notrace);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/tracepoint.h:22,
                    from include/trace/syscall.h:5,
                    from include/linux/syscalls.h:88,
                    from include/linux/syscalls_api.h:1,
                    from kernel/sched/core.c:13:
   include/linux/static_call.h:156:60: 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:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8501:9: note: in expansion of macro 'preempt_dynamic_enable'
    8501 |         preempt_dynamic_enable(preempt_schedule_notrace);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   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:41: error: '__SCT__irqentry_exit_cond_resched' undeclared (first use in this function)
      15 | #define STATIC_CALL_TRAMP_PREFIX        __SCT__
         |                                         ^~~~~~~
   include/linux/compiler_types.h:73:23: note: in definition of macro '___PASTE'
      73 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:18:41: 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:49: 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:17: note: in expansion of macro 'STATIC_CALL_TRAMP'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                 ^~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8502:9: note: in expansion of macro 'preempt_dynamic_enable'
    8502 |         preempt_dynamic_enable(irqentry_exit_cond_resched);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/tracepoint.h:22,
                    from include/trace/syscall.h:5,
                    from include/linux/syscalls.h:88,
                    from include/linux/syscalls_api.h:1,
                    from kernel/sched/core.c:13:
>> kernel/sched/core.c:8502:32: error: 'irqentry_exit_cond_resched_dynamic_enabled' undeclared (first use in this function)
    8502 |         preempt_dynamic_enable(irqentry_exit_cond_resched);
         |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:154:49: note: in definition of macro 'static_call_update'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                                                 ^~~~
   kernel/sched/core.c:8502:9: note: in expansion of macro 'preempt_dynamic_enable'
    8502 |         preempt_dynamic_enable(irqentry_exit_cond_resched);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from <command-line>:
>> include/linux/static_call_types.h:9:41: error: '__SCK__irqentry_exit_cond_resched' undeclared (first use in this function)
       9 | #define STATIC_CALL_KEY_PREFIX          __SCK__
         |                                         ^~~~~~~
   include/linux/compiler_types.h:73:23: note: in definition of macro '___PASTE'
      73 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/static_call_types.h:12:41: 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:49: 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:31: note: in expansion of macro 'STATIC_CALL_KEY'
     155 |         __static_call_update(&STATIC_CALL_KEY(name),                    \
         |                               ^~~~~~~~~~~~~~~
   kernel/sched/core.c:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8502:9: note: in expansion of macro 'preempt_dynamic_enable'
    8502 |         preempt_dynamic_enable(irqentry_exit_cond_resched);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/tracepoint.h:22,
                    from include/trace/syscall.h:5,
                    from include/linux/syscalls.h:88,
                    from include/linux/syscalls_api.h:1,
                    from kernel/sched/core.c:13:
   include/linux/static_call.h:156:60: 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:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8502:9: note: in expansion of macro 'preempt_dynamic_enable'
    8502 |         preempt_dynamic_enable(irqentry_exit_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:156:60: 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:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8506:17: note: in expansion of macro 'preempt_dynamic_enable'
    8506 |                 preempt_dynamic_enable(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);
         |                                                                            ~~~~~~^~~~
>> kernel/sched/core.c:8507:41: error: 'might_resched_dynamic_disabled' undeclared (first use in this function)
    8507 |                 preempt_dynamic_disable(might_resched);
         |                                         ^~~~~~~~~~~~~
   include/linux/static_call.h:154:49: note: in definition of macro 'static_call_update'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                                                 ^~~~
   kernel/sched/core.c:8507:17: note: in expansion of macro 'preempt_dynamic_disable'
    8507 |                 preempt_dynamic_disable(might_resched);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:156:60: 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:8484:41: note: in expansion of macro 'static_call_update'
    8484 | #define preempt_dynamic_disable(f)      static_call_update(f, f##_dynamic_disabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8507:17: note: in expansion of macro 'preempt_dynamic_disable'
    8507 |                 preempt_dynamic_disable(might_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);
         |                                                                            ~~~~~~^~~~
>> kernel/sched/core.c:8508:41: error: 'preempt_schedule_dynamic_disabled' undeclared (first use in this function); did you mean 'preempt_dynamic_disable'?
    8508 |                 preempt_dynamic_disable(preempt_schedule);
         |                                         ^~~~~~~~~~~~~~~~
   include/linux/static_call.h:154:49: note: in definition of macro 'static_call_update'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                                                 ^~~~
   kernel/sched/core.c:8508:17: note: in expansion of macro 'preempt_dynamic_disable'
    8508 |                 preempt_dynamic_disable(preempt_schedule);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:156:60: 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:8484:41: note: in expansion of macro 'static_call_update'
    8484 | #define preempt_dynamic_disable(f)      static_call_update(f, f##_dynamic_disabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8508:17: note: in expansion of macro 'preempt_dynamic_disable'
    8508 |                 preempt_dynamic_disable(preempt_schedule);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~
   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);
         |                                                                            ~~~~~~^~~~
>> kernel/sched/core.c:8509:41: error: 'preempt_schedule_notrace_dynamic_disabled' undeclared (first use in this function)
    8509 |                 preempt_dynamic_disable(preempt_schedule_notrace);
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:154:49: note: in definition of macro 'static_call_update'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                                                 ^~~~
   kernel/sched/core.c:8509:17: note: in expansion of macro 'preempt_dynamic_disable'
    8509 |                 preempt_dynamic_disable(preempt_schedule_notrace);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:156:60: 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:8484:41: note: in expansion of macro 'static_call_update'
    8484 | #define preempt_dynamic_disable(f)      static_call_update(f, f##_dynamic_disabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8509:17: note: in expansion of macro 'preempt_dynamic_disable'
    8509 |                 preempt_dynamic_disable(preempt_schedule_notrace);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~
   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);
         |                                                                            ~~~~~~^~~~
>> kernel/sched/core.c:8510:41: error: 'irqentry_exit_cond_resched_dynamic_disabled' undeclared (first use in this function)
    8510 |                 preempt_dynamic_disable(irqentry_exit_cond_resched);
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:154:49: note: in definition of macro 'static_call_update'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                                                 ^~~~
   kernel/sched/core.c:8510:17: note: in expansion of macro 'preempt_dynamic_disable'
    8510 |                 preempt_dynamic_disable(irqentry_exit_cond_resched);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:156:60: 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:8484:41: note: in expansion of macro 'static_call_update'
    8484 | #define preempt_dynamic_disable(f)      static_call_update(f, f##_dynamic_disabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8510:17: note: in expansion of macro 'preempt_dynamic_disable'
    8510 |                 preempt_dynamic_disable(irqentry_exit_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:156:60: 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:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8515:17: note: in expansion of macro 'preempt_dynamic_enable'
    8515 |                 preempt_dynamic_enable(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:156:60: 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:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8516:17: note: in expansion of macro 'preempt_dynamic_enable'
    8516 |                 preempt_dynamic_enable(might_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:156:60: 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:8484:41: note: in expansion of macro 'static_call_update'
    8484 | #define preempt_dynamic_disable(f)      static_call_update(f, f##_dynamic_disabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8517:17: note: in expansion of macro 'preempt_dynamic_disable'
    8517 |                 preempt_dynamic_disable(preempt_schedule);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~
   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:60: 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:8484:41: note: in expansion of macro 'static_call_update'
    8484 | #define preempt_dynamic_disable(f)      static_call_update(f, f##_dynamic_disabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8518:17: note: in expansion of macro 'preempt_dynamic_disable'
    8518 |                 preempt_dynamic_disable(preempt_schedule_notrace);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~
   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:60: 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:8484:41: note: in expansion of macro 'static_call_update'
    8484 | #define preempt_dynamic_disable(f)      static_call_update(f, f##_dynamic_disabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8519:17: note: in expansion of macro 'preempt_dynamic_disable'
    8519 |                 preempt_dynamic_disable(irqentry_exit_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);
         |                                                                            ~~~~~~^~~~
>> kernel/sched/core.c:8524:41: error: 'cond_resched_dynamic_disabled' undeclared (first use in this function)
    8524 |                 preempt_dynamic_disable(cond_resched);
         |                                         ^~~~~~~~~~~~
   include/linux/static_call.h:154:49: note: in definition of macro 'static_call_update'
     154 |         typeof(&STATIC_CALL_TRAMP(name)) __F = (func);                  \
         |                                                 ^~~~
   kernel/sched/core.c:8524:17: note: in expansion of macro 'preempt_dynamic_disable'
    8524 |                 preempt_dynamic_disable(cond_resched);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:156:60: 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:8484:41: note: in expansion of macro 'static_call_update'
    8484 | #define preempt_dynamic_disable(f)      static_call_update(f, f##_dynamic_disabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8524:17: note: in expansion of macro 'preempt_dynamic_disable'
    8524 |                 preempt_dynamic_disable(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:156:60: 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:8484:41: note: in expansion of macro 'static_call_update'
    8484 | #define preempt_dynamic_disable(f)      static_call_update(f, f##_dynamic_disabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8525:17: note: in expansion of macro 'preempt_dynamic_disable'
    8525 |                 preempt_dynamic_disable(might_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:156:60: 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:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8526:17: note: in expansion of macro 'preempt_dynamic_enable'
    8526 |                 preempt_dynamic_enable(preempt_schedule);
         |                 ^~~~~~~~~~~~~~~~~~~~~~
   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:60: 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:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8527:17: note: in expansion of macro 'preempt_dynamic_enable'
    8527 |                 preempt_dynamic_enable(preempt_schedule_notrace);
         |                 ^~~~~~~~~~~~~~~~~~~~~~
   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:60: 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:8483:41: note: in expansion of macro 'static_call_update'
    8483 | #define preempt_dynamic_enable(f)       static_call_update(f, f##_dynamic_enabled)
         |                                         ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8528:17: note: in expansion of macro 'preempt_dynamic_enable'
    8528 |                 preempt_dynamic_enable(irqentry_exit_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);
         |                                                                            ~~~~~~^~~~
   kernel/sched/core.c: At top level:
   kernel/sched/core.c:8566:14: error: redefinition of 'preempt_model_none'
    8566 |         bool preempt_model_##mode(void)                                          \
         |              ^~~~~~~~~~~~~~
   kernel/sched/core.c:8573:1: note: in expansion of macro 'PREEMPT_MODEL_ACCESSOR'
    8573 | PREEMPT_MODEL_ACCESSOR(none);
         | ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/sched/mm.h:7,
                    from include/linux/xarray.h:19,
                    from include/linux/list_lru.h:14,
                    from include/linux/fs.h:13,
                    from include/linux/highmem.h:5,
                    from kernel/sched/core.c:9:
   include/linux/sched.h:2154:20: note: previous definition of 'preempt_model_none' with type 'bool(void)' {aka '_Bool(void)'}
    2154 | static inline bool preempt_model_none(void)
         |                    ^~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8566:14: error: redefinition of 'preempt_model_voluntary'
    8566 |         bool preempt_model_##mode(void)                                          \
         |              ^~~~~~~~~~~~~~
   kernel/sched/core.c:8574:1: note: in expansion of macro 'PREEMPT_MODEL_ACCESSOR'
    8574 | PREEMPT_MODEL_ACCESSOR(voluntary);
         | ^~~~~~~~~~~~~~~~~~~~~~


vim +/cond_resched_dynamic_enabled +8498 kernel/sched/core.c

8a69fe0be143b0 Mark Rutland 2022-02-14  8491  
4c7485584d48f6 Mark Rutland 2022-02-14  8492  void sched_dynamic_update(int mode)
4c7485584d48f6 Mark Rutland 2022-02-14  8493  {
4c7485584d48f6 Mark Rutland 2022-02-14  8494  	/*
4c7485584d48f6 Mark Rutland 2022-02-14  8495  	 * Avoid {NONE,VOLUNTARY} -> FULL transitions from ever ending up in
4c7485584d48f6 Mark Rutland 2022-02-14  8496  	 * the ZERO state, which is invalid.
4c7485584d48f6 Mark Rutland 2022-02-14  8497  	 */
8a69fe0be143b0 Mark Rutland 2022-02-14 @8498  	preempt_dynamic_enable(cond_resched);
8a69fe0be143b0 Mark Rutland 2022-02-14 @8499  	preempt_dynamic_enable(might_resched);
8a69fe0be143b0 Mark Rutland 2022-02-14 @8500  	preempt_dynamic_enable(preempt_schedule);
8a69fe0be143b0 Mark Rutland 2022-02-14 @8501  	preempt_dynamic_enable(preempt_schedule_notrace);
8a69fe0be143b0 Mark Rutland 2022-02-14 @8502  	preempt_dynamic_enable(irqentry_exit_cond_resched);
4c7485584d48f6 Mark Rutland 2022-02-14  8503  
4c7485584d48f6 Mark Rutland 2022-02-14  8504  	switch (mode) {
4c7485584d48f6 Mark Rutland 2022-02-14  8505  	case preempt_dynamic_none:
8a69fe0be143b0 Mark Rutland 2022-02-14  8506  		preempt_dynamic_enable(cond_resched);
8a69fe0be143b0 Mark Rutland 2022-02-14 @8507  		preempt_dynamic_disable(might_resched);
8a69fe0be143b0 Mark Rutland 2022-02-14 @8508  		preempt_dynamic_disable(preempt_schedule);
8a69fe0be143b0 Mark Rutland 2022-02-14 @8509  		preempt_dynamic_disable(preempt_schedule_notrace);
8a69fe0be143b0 Mark Rutland 2022-02-14 @8510  		preempt_dynamic_disable(irqentry_exit_cond_resched);
4c7485584d48f6 Mark Rutland 2022-02-14  8511  		pr_info("Dynamic Preempt: none\n");
4c7485584d48f6 Mark Rutland 2022-02-14  8512  		break;
4c7485584d48f6 Mark Rutland 2022-02-14  8513  
4c7485584d48f6 Mark Rutland 2022-02-14  8514  	case preempt_dynamic_voluntary:
8a69fe0be143b0 Mark Rutland 2022-02-14  8515  		preempt_dynamic_enable(cond_resched);
8a69fe0be143b0 Mark Rutland 2022-02-14  8516  		preempt_dynamic_enable(might_resched);
8a69fe0be143b0 Mark Rutland 2022-02-14  8517  		preempt_dynamic_disable(preempt_schedule);
8a69fe0be143b0 Mark Rutland 2022-02-14  8518  		preempt_dynamic_disable(preempt_schedule_notrace);
8a69fe0be143b0 Mark Rutland 2022-02-14  8519  		preempt_dynamic_disable(irqentry_exit_cond_resched);
4c7485584d48f6 Mark Rutland 2022-02-14  8520  		pr_info("Dynamic Preempt: voluntary\n");
4c7485584d48f6 Mark Rutland 2022-02-14  8521  		break;
4c7485584d48f6 Mark Rutland 2022-02-14  8522  
4c7485584d48f6 Mark Rutland 2022-02-14  8523  	case preempt_dynamic_full:
8a69fe0be143b0 Mark Rutland 2022-02-14 @8524  		preempt_dynamic_disable(cond_resched);
8a69fe0be143b0 Mark Rutland 2022-02-14  8525  		preempt_dynamic_disable(might_resched);
8a69fe0be143b0 Mark Rutland 2022-02-14  8526  		preempt_dynamic_enable(preempt_schedule);
8a69fe0be143b0 Mark Rutland 2022-02-14  8527  		preempt_dynamic_enable(preempt_schedule_notrace);
8a69fe0be143b0 Mark Rutland 2022-02-14  8528  		preempt_dynamic_enable(irqentry_exit_cond_resched);
4c7485584d48f6 Mark Rutland 2022-02-14  8529  		pr_info("Dynamic Preempt: full\n");
4c7485584d48f6 Mark Rutland 2022-02-14  8530  		break;
4c7485584d48f6 Mark Rutland 2022-02-14  8531  	}
4c7485584d48f6 Mark Rutland 2022-02-14  8532  
4c7485584d48f6 Mark Rutland 2022-02-14  8533  	preempt_dynamic_mode = mode;
4c7485584d48f6 Mark Rutland 2022-02-14  8534  }
4c7485584d48f6 Mark Rutland 2022-02-14  8535  

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-12 17:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-12  8:28 [PATCH linux-next] sched/core: remove duplicate referenced header files cgel.zte
2022-09-12 10:33 ` kernel test robot
2022-09-12 16:51 ` kernel test robot
2022-09-12 17:44 ` 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.