From: kernel test robot <lkp@intel.com>
To: Thomas Gleixner <tglx@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [tglx-devel:timers/cleanup 58/59] kernel/seccomp.c:1439:9: error: implicit declaration of function 'disable_TSC'; did you mean 'disable_irq'?
Date: Mon, 13 Jul 2026 10:00:59 +0800 [thread overview]
Message-ID: <202607130849.ENunLLPz-lkp@intel.com> (raw)
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
reply other threads:[~2026-07-13 2:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202607130849.ENunLLPz-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=tglx@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.