* [tglx-devel:timers/cleanup 58/59] kernel/seccomp.c:1439:9: error: implicit declaration of function 'disable_TSC'; did you mean 'disable_irq'?
@ 2026-07-13 2:00 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-07-13 2:00 UTC (permalink / raw)
To: Thomas Gleixner; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git timers/cleanup
head: 0ad363c8e014568032d53fe2c7ab288de68373f4
commit: 27019f00127af90a16c3b8c54e976cdc8a711b0a [58/59] x86: Select ARCH_HAS_RANDOM_ENTROPY
config: x86_64-buildonly-randconfig-006-20260713 (https://download.01.org/0day-ci/archive/20260713/202607130849.ENunLLPz-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260713/202607130849.ENunLLPz-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/202607130849.ENunLLPz-lkp@intel.com/
All errors (new ones prefixed by >>):
kernel/seccomp.c: In function 'seccomp_set_mode_strict':
>> kernel/seccomp.c:1439:9: error: implicit declaration of function 'disable_TSC'; did you mean 'disable_irq'? [-Wimplicit-function-declaration]
1439 | disable_TSC();
| ^~~~~~~~~~~
| disable_irq
vim +1439 kernel/seccomp.c
1d9d02feeee89e Andrea Arcangeli 2007-07-15 1420
e2cfabdfd07564 Will Drewry 2012-04-12 1421 /**
3b23dd12846215 Kees Cook 2014-06-25 1422 * seccomp_set_mode_strict: internal function for setting strict seccomp
e2cfabdfd07564 Will Drewry 2012-04-12 1423 *
e2cfabdfd07564 Will Drewry 2012-04-12 1424 * Once current->seccomp.mode is non-zero, it may not be changed.
e2cfabdfd07564 Will Drewry 2012-04-12 1425 *
e2cfabdfd07564 Will Drewry 2012-04-12 1426 * Returns 0 on success or -EINVAL on failure.
e2cfabdfd07564 Will Drewry 2012-04-12 1427 */
3b23dd12846215 Kees Cook 2014-06-25 1428 static long seccomp_set_mode_strict(void)
1d9d02feeee89e Andrea Arcangeli 2007-07-15 1429 {
3b23dd12846215 Kees Cook 2014-06-25 1430 const unsigned long seccomp_mode = SECCOMP_MODE_STRICT;
e2cfabdfd07564 Will Drewry 2012-04-12 1431 long ret = -EINVAL;
1d9d02feeee89e Andrea Arcangeli 2007-07-15 1432
dbd952127d11bb Kees Cook 2014-06-27 1433 spin_lock_irq(¤t->sighand->siglock);
dbd952127d11bb Kees Cook 2014-06-27 1434
1f41b450416e68 Kees Cook 2014-06-25 1435 if (!seccomp_may_assign_mode(seccomp_mode))
1d9d02feeee89e Andrea Arcangeli 2007-07-15 1436 goto out;
1d9d02feeee89e Andrea Arcangeli 2007-07-15 1437
cf99abace7e07d Andrea Arcangeli 2007-07-15 1438 #ifdef TIF_NOTSC
cf99abace7e07d Andrea Arcangeli 2007-07-15 @1439 disable_TSC();
cf99abace7e07d Andrea Arcangeli 2007-07-15 1440 #endif
00a02d0c502a06 Kees Cook 2018-05-03 1441 seccomp_assign_mode(current, seccomp_mode, 0);
3b23dd12846215 Kees Cook 2014-06-25 1442 ret = 0;
3b23dd12846215 Kees Cook 2014-06-25 1443
3b23dd12846215 Kees Cook 2014-06-25 1444 out:
dbd952127d11bb Kees Cook 2014-06-27 1445 spin_unlock_irq(¤t->sighand->siglock);
3b23dd12846215 Kees Cook 2014-06-25 1446
3b23dd12846215 Kees Cook 2014-06-25 1447 return ret;
3b23dd12846215 Kees Cook 2014-06-25 1448 }
3b23dd12846215 Kees Cook 2014-06-25 1449
:::::: The code at line 1439 was first introduced by commit
:::::: cf99abace7e07dd8491e7093a9a9ef11d48838ed make seccomp zerocost in schedule
:::::: TO: Andrea Arcangeli <andrea@cpushare.com>
:::::: CC: Linus Torvalds <torvalds@woody.linux-foundation.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-13 2:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-13 2:00 [tglx-devel:timers/cleanup 58/59] kernel/seccomp.c:1439:9: error: implicit declaration of function 'disable_TSC'; did you mean 'disable_irq'? 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.