[PATCH net-next v3 1/2] drivers: net: stmmac: handle start time set in the past for flexible PPS

Jakub Kicinski kuba at kernel.org
Wed Aug 27 19:31:05 PDT 2025


On Wed, 27 Aug 2025 13:04:58 +0200 Gatien Chevallier wrote:
> +		curr_time = ns_to_timespec64(ns);
> +		if (target_ns < ns + PTP_SAFE_TIME_OFFSET_NS) {
> +			cfg->start = timespec64_add_safe(cfg->start, curr_time);

Is there a strong reason to use timespec64_add_safe()?
It's not exported to modules:
ERROR: modpost: "timespec64_add_safe" [drivers/net/ethernet/stmicro/stmmac/stmmac.ko] undefined!
-- 
pw-bot: cr



More information about the linux-arm-kernel mailing list