From: kernel test robot <lkp@intel.com>
To: Thomas Gleixner <tglx@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [tglx-devel:cleanups 15/38] drivers/ptp/ptp_vmclock.c:78:18: error: '__int128' is not supported on this target
Date: Sat, 11 Apr 2026 11:20:10 +0800 [thread overview]
Message-ID: <202604111120.tefC2mVN-lkp@intel.com> (raw)
Hi Thomas,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git cleanups
head: 4f7b68811bb6be347b794010429e839e7a23b9d8
commit: 7fb0a26394a1f8378dcf335ea5ad47d32621e080 [15/38] ptp: ptp_vmclock: Replace get_cycles() usage
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20260411/202604111120.tefC2mVN-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/20260411/202604111120.tefC2mVN-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/202604111120.tefC2mVN-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
drivers/ptp/ptp_vmclock.c: In function 'mul_u64_u64_shr_add_u64':
>> drivers/ptp/ptp_vmclock.c:78:18: error: '__int128' is not supported on this target
78 | unsigned __int128 res = (unsigned __int128)delta * period;
| ^~~~~~~~
drivers/ptp/ptp_vmclock.c:78:43: error: '__int128' is not supported on this target
78 | unsigned __int128 res = (unsigned __int128)delta * period;
| ^~~~~~~~
>> drivers/ptp/ptp_vmclock.c:82:23: warning: right shift count >= width of type [-Wshift-count-overflow]
82 | *res_hi = res >> 64;
| ^~
vim +/__int128 +78 drivers/ptp/ptp_vmclock.c
20503272422693 David Woodhouse 2024-10-06 62
20503272422693 David Woodhouse 2024-10-06 63 #define VMCLOCK_FIELD_PRESENT(_c, _f) \
20503272422693 David Woodhouse 2024-10-06 64 (le32_to_cpu((_c)->size) >= (offsetof(struct vmclock_abi, _f) + \
20503272422693 David Woodhouse 2024-10-06 65 sizeof((_c)->_f)))
20503272422693 David Woodhouse 2024-10-06 66
20503272422693 David Woodhouse 2024-10-06 67 /*
20503272422693 David Woodhouse 2024-10-06 68 * Multiply a 64-bit count by a 64-bit tick 'period' in units of seconds >> 64
20503272422693 David Woodhouse 2024-10-06 69 * and add the fractional second part of the reference time.
20503272422693 David Woodhouse 2024-10-06 70 *
20503272422693 David Woodhouse 2024-10-06 71 * The result is a 128-bit value, the top 64 bits of which are seconds, and
20503272422693 David Woodhouse 2024-10-06 72 * the low 64 bits are (seconds >> 64).
20503272422693 David Woodhouse 2024-10-06 73 */
20503272422693 David Woodhouse 2024-10-06 74 static uint64_t mul_u64_u64_shr_add_u64(uint64_t *res_hi, uint64_t delta,
20503272422693 David Woodhouse 2024-10-06 75 uint64_t period, uint8_t shift,
20503272422693 David Woodhouse 2024-10-06 76 uint64_t frac_sec)
20503272422693 David Woodhouse 2024-10-06 77 {
20503272422693 David Woodhouse 2024-10-06 @78 unsigned __int128 res = (unsigned __int128)delta * period;
20503272422693 David Woodhouse 2024-10-06 79
20503272422693 David Woodhouse 2024-10-06 80 res >>= shift;
20503272422693 David Woodhouse 2024-10-06 81 res += frac_sec;
20503272422693 David Woodhouse 2024-10-06 @82 *res_hi = res >> 64;
20503272422693 David Woodhouse 2024-10-06 83 return (uint64_t)res;
20503272422693 David Woodhouse 2024-10-06 84 }
20503272422693 David Woodhouse 2024-10-06 85
:::::: The code at line 78 was first introduced by commit
:::::: 20503272422693d793b84f88bf23fe4e955d3a33 ptp: Add support for the AMZNC10C 'vmclock' device
:::::: TO: David Woodhouse <dwmw@amazon.co.uk>
:::::: CC: David S. Miller <davem@davemloft.net>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2026-04-11 3:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-11 3:20 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-04-10 16:29 [tglx-devel:cleanups 15/38] drivers/ptp/ptp_vmclock.c:78:18: error: '__int128' is not supported on this target kernel test robot
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=202604111120.tefC2mVN-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.