Files
kernel_arpi/drivers/net/ethernet/intel/igc
Randy Dunlap be060f47ef net: intel: igc_ptp: fix build for UML
[ Upstream commit 523994ba3ad1b7b55abe4a72e156897b5e2db825 ]

On a UML build, the igc_ptp driver uses CONFIG_X86_TSC for timestamp
conversion. The function that is used is not available on UML builds,
so have the function use the default system_counterval_t timestamp
instead for UML builds.

Prevents this build error on UML:

../drivers/net/ethernet/intel/igc/igc_ptp.c: In function ‘igc_device_tstamp_to_system’:
../drivers/net/ethernet/intel/igc/igc_ptp.c:777:9: error: implicit declaration of function ‘convert_art_ns_to_tsc’ [-Werror=implicit-function-declaration]
  return convert_art_ns_to_tsc(tstamp);
../drivers/net/ethernet/intel/igc/igc_ptp.c:777:9: error: incompatible types when returning type ‘int’ but ‘struct system_counterval_t’ was expected
  return convert_art_ns_to_tsc(tstamp);

Fixes: 68f5d3f3b6 ("um: add PCI over virtio emulation driver")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: linux-um@lists.infradead.org
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Cc: Jesse Brandeburg <jesse.brandeburg@intel.com>
Cc: Tony Nguyen <anthony.l.nguyen@intel.com>
Cc: intel-wired-lan@lists.osuosl.org
Link: https://lore.kernel.org/r/20211014050516.6846-1-rdunlap@infradead.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-18 19:16:32 +01:00
..
2021-07-20 16:11:36 -07:00
2021-05-20 10:21:42 -07:00
2021-05-26 09:11:41 -07:00
2021-10-20 09:07:21 -07:00
2021-04-16 13:15:45 -07:00
2020-06-29 18:21:09 -07:00
2021-09-16 14:29:58 +01:00
2021-07-20 16:11:36 -07:00
2021-08-27 09:31:09 -07:00
2021-08-27 09:31:09 -07:00
2021-08-27 09:31:08 -07:00
2021-05-20 10:21:42 -07:00
2021-05-20 10:21:42 -07:00
2021-08-27 09:31:09 -07:00
2021-03-29 09:09:53 -07:00