Re: [PATCH net-next 2/4] vmxnet3: add latency measurement support in vmxnet3

kernel test robot
2024-05-15T23:03:12Z

Hi Ronak,

kernel test robot noticed the following build errors:

[auto build test ERROR on net-next/main]

url: https://github.com/intel-lab-lkp/linux/commits/Ronak-Doshi/vmxnet3-prepare-for-version-9-changes/20240515-023833
base: net-next/main
patch link: https://lore.kernel.org/r/20240514182050.20931-3-ronak.doshi%40broadcom.com
patch subject: [PATCH net-next 2/4] vmxnet3: add latency measurement support in vmxnet3
config: csky-randconfig-r081-20240516 (https://download.01.org/0day-ci/archive/20240516/202405160624.WdmYFkNm-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240516/202405160624.WdmYFkNm-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/202405160624.WdmYFkNm-lkp@intel.com/

All errors (new ones prefixed by >>):

In function 'vmxnet3_get_cycles',
inlined from 'vmxnet3_rq_rx_complete' at drivers/net/vmxnet3/vmxnet3_drv.c:1675:25:
>> drivers/net/vmxnet3/vmxnet3_drv.c:151:9: error: impossible constraint in 'asm'
151 | asm volatile("rdpmc" : "=a" (low), "=d" (high) : "c" (pmc));
| ^~~

vim +/asm +151 drivers/net/vmxnet3/vmxnet3_drv.c

145
146 static u64
147 vmxnet3_get_cycles(int pmc)
148 {
149 u32 low, high;
150
> 151 asm volatile("rdpmc" : "=a" (low), "=d" (high) : "c" (pmc));
152 return (low | ((u_int64_t)high << 32));
153 }
154

--
0-DAY CI Kernel Test Service