mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-25 20:41:33 +00:00
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:
|
||
|---|---|---|
| .. | ||
| igc_base.c | ||
| igc_base.h | ||
| igc_defines.h | ||
| igc_diag.c | ||
| igc_diag.h | ||
| igc_dump.c | ||
| igc_ethtool.c | ||
| igc_hw.h | ||
| igc_i225.c | ||
| igc_i225.h | ||
| igc_mac.c | ||
| igc_mac.h | ||
| igc_main.c | ||
| igc_nvm.c | ||
| igc_nvm.h | ||
| igc_phy.c | ||
| igc_phy.h | ||
| igc_ptp.c | ||
| igc_regs.h | ||
| igc_tsn.c | ||
| igc_tsn.h | ||
| igc_xdp.c | ||
| igc_xdp.h | ||
| igc.h | ||
| Makefile | ||