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)
Tue, Jul 2, 7:39 AM
Unknown Object (File)
Thu, Jun 13, 1:18 PM
Unknown Object (File)
Wed, Jun 12, 9:54 PM
Unknown Object (File)
Wed, Jun 12, 9:26 PM
Unknown Object (File)
Tue, Jun 11, 10:00 PM
Unknown Object (File)
Tue, Jun 11, 3:10 PM
Unknown Object (File)
Tue, Jun 11, 3:09 PM
Unknown Object (File)
Sat, Jun 8, 11:31 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 58006
Build 54894: 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
58

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.