All of lore.kernel.org
 help / color / mirror / Atom feed
* [tglx-devel:cleanups 15/38] drivers/ptp/ptp_vmclock.c:78:18: error: '__int128' is not supported on this target
@ 2026-04-11  3:20 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-04-11  3:20 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:   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

^ permalink raw reply	[flat|nested] 2+ messages in thread
* [tglx-devel:cleanups 15/38] drivers/ptp/ptp_vmclock.c:78:18: error: '__int128' is not supported on this target
@ 2026-04-10 16:29 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-04-10 16:29 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "low confidence bisect report"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: Thomas Gleixner <tglx@kernel.org>

Hi Thomas,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git cleanups
head:   c8e6e3529d3137cb0aba79b565eb04ab8f346829
commit: f0a1b67a6272b9131b4803169e10e5893e40892a [15/38] ptp: ptp_vmclock: Replace get_cycles() usage
:::::: branch date: 55 minutes ago
:::::: commit date: 5 hours ago
config: i386-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260410/202604101824.Dnmbk8as-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/20260410/202604101824.Dnmbk8as-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/r/202604101824.Dnmbk8as-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;
         |                       ^~
   In file included from ./include/linux/device.h:15,
                    from ./include/linux/acpi.h:15,
                    from drivers/ptp/ptp_vmclock.c:11:
   drivers/ptp/ptp_vmclock.c: In function 'vmclock_probe':
>> drivers/ptp/ptp_vmclock.c:686:31: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=]
     686 |                 dev_info(dev, "Region too small (0x%llx)\n",
         |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   ./include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                       \
         |                              ^~~
   ./include/linux/dev_printk.h:160:58: note: in expansion of macro 'dev_fmt'
     160 |         dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
         |                                                          ^~~~~~~
   drivers/ptp/ptp_vmclock.c:686:17: note: in expansion of macro 'dev_info'
     686 |                 dev_info(dev, "Region too small (0x%llx)\n",
         |                 ^~~~~~~~
   drivers/ptp/ptp_vmclock.c:686:55: note: format string is defined here
     686 |                 dev_info(dev, "Region too small (0x%llx)\n",
         |                                                    ~~~^
         |                                                       |
         |                                                       long long unsigned int
         |                                                    %x


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-04-11  3:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-11  3:20 [tglx-devel:cleanups 15/38] drivers/ptp/ptp_vmclock.c:78:18: error: '__int128' is not supported on this target kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-04-10 16:29 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.