* [tglx-devel:cleanups 14/36] drivers/ptp/ptp_vmclock.c:78:18: error: '__int128' is not supported on this target
@ 2026-06-23 23:33 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-23 23:33 UTC (permalink / raw)
To: Thomas Gleixner; +Cc: oe-kbuild-all
Hi Thomas,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git cleanups
head: 759e4e4e18f43902ea6f66c481a45175490cad0c
commit: de40e94c2ee6a5610211cba9e82eb50db165e6d1 [14/36] ptp: ptp_vmclock: Replace get_cycles() usage
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20260624/202606240749.dzX3DmsF-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/20260624/202606240749.dzX3DmsF-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/202606240749.dzX3DmsF-lkp@intel.com/
All errors (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
20503272422693d David Woodhouse 2024-10-06 62
20503272422693d David Woodhouse 2024-10-06 63 #define VMCLOCK_FIELD_PRESENT(_c, _f) \
20503272422693d David Woodhouse 2024-10-06 64 (le32_to_cpu((_c)->size) >= (offsetof(struct vmclock_abi, _f) + \
20503272422693d David Woodhouse 2024-10-06 65 sizeof((_c)->_f)))
20503272422693d David Woodhouse 2024-10-06 66
20503272422693d David Woodhouse 2024-10-06 67 /*
20503272422693d David Woodhouse 2024-10-06 68 * Multiply a 64-bit count by a 64-bit tick 'period' in units of seconds >> 64
20503272422693d David Woodhouse 2024-10-06 69 * and add the fractional second part of the reference time.
20503272422693d David Woodhouse 2024-10-06 70 *
20503272422693d David Woodhouse 2024-10-06 71 * The result is a 128-bit value, the top 64 bits of which are seconds, and
20503272422693d David Woodhouse 2024-10-06 72 * the low 64 bits are (seconds >> 64).
20503272422693d David Woodhouse 2024-10-06 73 */
20503272422693d David Woodhouse 2024-10-06 74 static uint64_t mul_u64_u64_shr_add_u64(uint64_t *res_hi, uint64_t delta,
20503272422693d David Woodhouse 2024-10-06 75 uint64_t period, uint8_t shift,
20503272422693d David Woodhouse 2024-10-06 76 uint64_t frac_sec)
20503272422693d David Woodhouse 2024-10-06 77 {
20503272422693d David Woodhouse 2024-10-06 @78 unsigned __int128 res = (unsigned __int128)delta * period;
20503272422693d David Woodhouse 2024-10-06 79
20503272422693d David Woodhouse 2024-10-06 80 res >>= shift;
20503272422693d David Woodhouse 2024-10-06 81 res += frac_sec;
20503272422693d David Woodhouse 2024-10-06 82 *res_hi = res >> 64;
20503272422693d David Woodhouse 2024-10-06 83 return (uint64_t)res;
20503272422693d David Woodhouse 2024-10-06 84 }
20503272422693d 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-23 23:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-23 23:33 [tglx-devel:cleanups 14/36] drivers/ptp/ptp_vmclock.c:78:18: error: '__int128' is not supported on this target 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.