public inbox for oe-kbuild@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: [tglx-devel:cleanups 15/38] drivers/ptp/ptp_vmclock.c:78:18: error: '__int128' is not supported on this target
Date: Fri, 10 Apr 2026 18:29:11 +0200	[thread overview]
Message-ID: <202604101824.Dnmbk8as-lkp@intel.com> (raw)

:::::: 
:::::: 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

                 reply	other threads:[~2026-04-10 16:30 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=202604101824.Dnmbk8as-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox