HomeFreeBSD

LinuxKPI: Add abs_diff to linux/math.h

Description

LinuxKPI: Add abs_diff to linux/math.h

It returns absolute value of the difference between the arguments.

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

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz, emaste
Differential Revision: https://reviews.freebsd.org/D45453

(cherry picked from commit afc450fac9f04f11cd916916ac28ffc52a973e1e)

Details

Provenance
wulfAuthored on Jun 6 2024, 8:42 PM
Reviewer
bz
Differential Revision
D45453: LinuxKPI: Add abs_diff to linux/math.h
Parents
rG9cc3f82da43a: LinuxKPI: Move linux/math.h content out of linux/kernel.h
Branches
Unknown
Tags
Unknown