linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 5393/6975] drivers/accel/habanalabs/common/habanalabs_ioctl.c:323:30: error: implicit declaration of function 'rdtsc'
@ 2023-09-21  8:20 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-09-21  8:20 UTC (permalink / raw)
  To: Hen Alon; +Cc: oe-kbuild-all, Linux Memory Management List, Oded Gabbay

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   940fcc189c51032dd0282cbee4497542c982ac59
commit: 809a1971ce613ec22314ecfeb3ebccc7ee3a97c3 [5393/6975] accel/habanalabs: add tsc clock sampling to clock sync info
config: um-randconfig-r005-20230815 (https://download.01.org/0day-ci/archive/20230921/202309211608.K2NtoA7e-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230921/202309211608.K2NtoA7e-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/202309211608.K2NtoA7e-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/accel/habanalabs/common/habanalabs_ioctl.c: In function 'time_sync_info':
>> drivers/accel/habanalabs/common/habanalabs_ioctl.c:323:30: error: implicit declaration of function 'rdtsc' [-Werror=implicit-function-declaration]
     323 |         time_sync.tsc_time = rdtsc();
         |                              ^~~~~
   cc1: some warnings being treated as errors


vim +/rdtsc +323 drivers/accel/habanalabs/common/habanalabs_ioctl.c

   311	
   312	static int time_sync_info(struct hl_device *hdev, struct hl_info_args *args)
   313	{
   314		struct hl_info_time_sync time_sync = {0};
   315		u32 max_size = args->return_size;
   316		void __user *out = (void __user *) (uintptr_t) args->return_pointer;
   317	
   318		if ((!max_size) || (!out))
   319			return -EINVAL;
   320	
   321		time_sync.device_time = hdev->asic_funcs->get_device_time(hdev);
   322		time_sync.host_time = ktime_get_raw_ns();
 > 323		time_sync.tsc_time = rdtsc();
   324	
   325		return copy_to_user(out, &time_sync,
   326			min((size_t) max_size, sizeof(time_sync))) ? -EFAULT : 0;
   327	}
   328	

-- 
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:[~2023-09-21  8:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-21  8:20 [linux-next:master 5393/6975] drivers/accel/habanalabs/common/habanalabs_ioctl.c:323:30: error: implicit declaration of function 'rdtsc' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox