* [powerpc:fixes-test 10/12] kernel/sched/core.c:7449:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int
@ 2026-07-10 20:54 kernel test robot
2026-07-10 22:37 ` Nathan Chancellor
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2026-07-10 20:54 UTC (permalink / raw)
To: Christophe Leroy (CS GROUP)
Cc: llvm, oe-kbuild-all, linuxppc-dev, Madhavan Srinivasan,
Shrikanth Hegde
tree: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git fixes-test
head: afc2830892a128a13a65f677271a0a48aeb61b5e
commit: 4747e17fe063720a30b1c0075bae3e8f8acd26f4 [10/12] powerpc/32: Use HAVE_PREEMPT_DYNAMIC_CALL instead of HAVE_PREEMPT_DYNAMIC_KEY
config: powerpc-randconfig-002-20260711 (https://download.01.org/0day-ci/archive/20260711/202607110422.frjmJOf8-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260711/202607110422.frjmJOf8-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202607110422.frjmJOf8-lkp@intel.com/
All errors (new ones prefixed by >>):
>> kernel/sched/core.c:7449:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
7449 | EXPORT_STATIC_CALL_TRAMP(preempt_schedule);
| ^
include/linux/static_call.h:223:2: note: expanded from macro 'EXPORT_STATIC_CALL_TRAMP'
223 | ARCH_ADD_TRAMP_KEY(name)
| ^
>> kernel/sched/core.c:7449:26: error: a parameter list without types is only allowed in a function definition
7449 | EXPORT_STATIC_CALL_TRAMP(preempt_schedule);
| ^
kernel/sched/core.c:7522:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
7522 | EXPORT_STATIC_CALL_TRAMP(preempt_schedule_notrace);
| ^
include/linux/static_call.h:223:2: note: expanded from macro 'EXPORT_STATIC_CALL_TRAMP'
223 | ARCH_ADD_TRAMP_KEY(name)
| ^
kernel/sched/core.c:7522:26: error: a parameter list without types is only allowed in a function definition
7522 | EXPORT_STATIC_CALL_TRAMP(preempt_schedule_notrace);
| ^
kernel/sched/core.c:7769:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
7769 | EXPORT_STATIC_CALL_TRAMP(cond_resched);
| ^
include/linux/static_call.h:223:2: note: expanded from macro 'EXPORT_STATIC_CALL_TRAMP'
223 | ARCH_ADD_TRAMP_KEY(name)
| ^
kernel/sched/core.c:7769:26: error: a parameter list without types is only allowed in a function definition
7769 | EXPORT_STATIC_CALL_TRAMP(cond_resched);
| ^
kernel/sched/core.c:7774:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
7774 | EXPORT_STATIC_CALL_TRAMP(might_resched);
| ^
include/linux/static_call.h:223:2: note: expanded from macro 'EXPORT_STATIC_CALL_TRAMP'
223 | ARCH_ADD_TRAMP_KEY(name)
| ^
kernel/sched/core.c:7774:26: error: a parameter list without types is only allowed in a function definition
7774 | EXPORT_STATIC_CALL_TRAMP(might_resched);
| ^
8 errors generated.
vim +/int +7449 kernel/sched/core.c
009f60e2763568 Oleg Nesterov 2014-10-05 7441
2c9a98d3bc8087 Peter Zijlstra (Intel 2021-01-18 7442) #ifdef CONFIG_PREEMPT_DYNAMIC
b7ebb758568b60 Ingo Molnar 2025-05-28 7443 # ifdef CONFIG_HAVE_PREEMPT_DYNAMIC_CALL
8a69fe0be143b0 Mark Rutland 2022-02-14 7444 # ifndef preempt_schedule_dynamic_enabled
8a69fe0be143b0 Mark Rutland 2022-02-14 7445 # define preempt_schedule_dynamic_enabled preempt_schedule
8a69fe0be143b0 Mark Rutland 2022-02-14 7446 # define preempt_schedule_dynamic_disabled NULL
8a69fe0be143b0 Mark Rutland 2022-02-14 7447 # endif
8a69fe0be143b0 Mark Rutland 2022-02-14 7448 DEFINE_STATIC_CALL(preempt_schedule, preempt_schedule_dynamic_enabled);
ef72661e28c64a Peter Zijlstra 2021-01-25 @7449 EXPORT_STATIC_CALL_TRAMP(preempt_schedule);
99cf983cc8bca4 Mark Rutland 2022-02-14 7450 # elif defined(CONFIG_HAVE_PREEMPT_DYNAMIC_KEY)
99cf983cc8bca4 Mark Rutland 2022-02-14 7451 static DEFINE_STATIC_KEY_TRUE(sk_dynamic_preempt_schedule);
99cf983cc8bca4 Mark Rutland 2022-02-14 7452 void __sched notrace dynamic_preempt_schedule(void)
99cf983cc8bca4 Mark Rutland 2022-02-14 7453 {
99cf983cc8bca4 Mark Rutland 2022-02-14 7454 if (!static_branch_unlikely(&sk_dynamic_preempt_schedule))
99cf983cc8bca4 Mark Rutland 2022-02-14 7455 return;
99cf983cc8bca4 Mark Rutland 2022-02-14 7456 preempt_schedule();
99cf983cc8bca4 Mark Rutland 2022-02-14 7457 }
99cf983cc8bca4 Mark Rutland 2022-02-14 7458 NOKPROBE_SYMBOL(dynamic_preempt_schedule);
99cf983cc8bca4 Mark Rutland 2022-02-14 7459 EXPORT_SYMBOL(dynamic_preempt_schedule);
99cf983cc8bca4 Mark Rutland 2022-02-14 7460 # endif
b7ebb758568b60 Ingo Molnar 2025-05-28 7461 #endif /* CONFIG_PREEMPT_DYNAMIC */
2c9a98d3bc8087 Peter Zijlstra (Intel 2021-01-18 7462)
:::::: The code at line 7449 was first introduced by commit
:::::: ef72661e28c64ad610f89acc2832ec67b27ba438 sched: Harden PREEMPT_DYNAMIC
:::::: TO: Peter Zijlstra <peterz@infradead.org>
:::::: CC: Ingo Molnar <mingo@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [powerpc:fixes-test 10/12] kernel/sched/core.c:7449:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int
2026-07-10 20:54 [powerpc:fixes-test 10/12] kernel/sched/core.c:7449:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int kernel test robot
@ 2026-07-10 22:37 ` Nathan Chancellor
0 siblings, 0 replies; 2+ messages in thread
From: Nathan Chancellor @ 2026-07-10 22:37 UTC (permalink / raw)
To: kernel test robot
Cc: Christophe Leroy (CS GROUP), llvm, oe-kbuild-all, linuxppc-dev,
Madhavan Srinivasan, Shrikanth Hegde
On Sat, Jul 11, 2026 at 04:54:17AM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git fixes-test
> head: afc2830892a128a13a65f677271a0a48aeb61b5e
> commit: 4747e17fe063720a30b1c0075bae3e8f8acd26f4 [10/12] powerpc/32: Use HAVE_PREEMPT_DYNAMIC_CALL instead of HAVE_PREEMPT_DYNAMIC_KEY
> config: powerpc-randconfig-002-20260711 (https://download.01.org/0day-ci/archive/20260711/202607110422.frjmJOf8-lkp@intel.com/config)
> compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260711/202607110422.frjmJOf8-lkp@intel.com/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202607110422.frjmJOf8-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
> >> kernel/sched/core.c:7449:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
> 7449 | EXPORT_STATIC_CALL_TRAMP(preempt_schedule);
> | ^
> include/linux/static_call.h:223:2: note: expanded from macro 'EXPORT_STATIC_CALL_TRAMP'
> 223 | ARCH_ADD_TRAMP_KEY(name)
> | ^
> >> kernel/sched/core.c:7449:26: error: a parameter list without types is only allowed in a function definition
> 7449 | EXPORT_STATIC_CALL_TRAMP(preempt_schedule);
> | ^
This happens with GCC as well.
In file included from include/linux/tracepoint.h:22,
from include/trace/syscall.h:5,
from include/linux/syscalls.h:95,
from include/linux/syscalls_api.h:1,
from kernel/sched/core.c:16:
include/linux/static_call.h:223:9: warning: data definition has no type or storage class
223 | ARCH_ADD_TRAMP_KEY(name)
| ^~~~~~~~~~~~~~~~~~
kernel/sched/core.c:7449:1: note: in expansion of macro 'EXPORT_STATIC_CALL_TRAMP'
7449 | EXPORT_STATIC_CALL_TRAMP(preempt_schedule);
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/static_call.h:223:9: error: type defaults to 'int' in declaration of 'ARCH_ADD_TRAMP_KEY' [-Wimplicit-int]
kernel/sched/core.c:7449:1: note: in expansion of macro 'EXPORT_STATIC_CALL_TRAMP'
7449 | EXPORT_STATIC_CALL_TRAMP(preempt_schedule);
| ^~~~~~~~~~~~~~~~~~~~~~~~
kernel/sched/core.c:7449:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
7449 | EXPORT_STATIC_CALL_TRAMP(preempt_schedule);
| ^~~~~~~~~~~~~~~~~~~~~~~~
--
Cheers,
Nathan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-10 22:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-10 20:54 [powerpc:fixes-test 10/12] kernel/sched/core.c:7449:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int kernel test robot
2026-07-10 22:37 ` Nathan Chancellor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox