Page MenuHomeFreeBSD

LinuxKPI: Add abs_diff to linux/math.h
ClosedPublic

Authored by wulf on Jun 2 2024, 3:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 11, 3:39 AM
Unknown Object (File)
Thu, Nov 7, 4:23 AM
Unknown Object (File)
Thu, Oct 17, 8:39 PM
Unknown Object (File)
Thu, Oct 17, 2:54 PM
Unknown Object (File)
Oct 17 2024, 5:31 AM
Unknown Object (File)
Oct 16 2024, 8:40 PM
Unknown Object (File)
Oct 16 2024, 4:31 AM
Unknown Object (File)
Oct 14 2024, 5:54 AM
Subscribers

Details

Summary

It returns absolute value of the difference between the arguments.

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 58019
Build 54907: arc lint + arc unit

Event Timeline

wulf requested review of this revision.Jun 2 2024, 3:32 PM
sys/compat/linuxkpi/common/include/linux/math.h
59

why do we need this version check if we haven't had it before? Is there's a reason add it as comment or to the commit message please.

Add version check explanation to commit message

Add version check explanation to commit message

The explanation is

Add LinuxKPI version check as the macro was moved from drm-kmod to
linux/math.h in Linux kernel commit 46f12960aad (6.6 timeframe).

It seems git arc can not update summary

Thanks for the update!

This revision is now accepted and ready to land.Jun 3 2024, 9:02 PM
This revision was automatically updated to reflect the committed changes.