Skip to contentSkip to conversation

selftests: ptp: add a regression test for the frequency adjustment overflow

PATCH Deep Shah 1 participant 1 message Aug 1 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

Deep Shah

author
#1 lore raw
In reply to a message not in the archive

Thanks Simon. v3 drops the #if and casts to the type of tx.freq instead, so the assignment still happens where tx.freq is 64-bit but long isn't.

I went with the cast rather than just dropping the #if, since dropping it on its own would bring back the -Woverflow you flagged on v1.

I also ran the sashiko prompts over the series myself before sending. The only other thing it turned up was the missing .gitignore entry for the test binary, which v3 adds too.

https://lore.kernel.org/netdev/[email protected]/