HomeFreeBSD

LinuxKPI: correct the LINUXKPI_VERSION check for abs_diff()

Description

LinuxKPI: correct the LINUXKPI_VERSION check for abs_diff()

The code introduced abs_diff() as migrated from drm to standard
linux headers. The LINUXKPI_VERSION check did not allow this to
be visible by default in-tree. Make sure the v6.6 check is optional.
drm-kmod always defines LINUXKPI_VERSION so this should be fine.

Sponsored by: The FreeBSD Foundation (initially)
Fixes: afc450fac9f04
MFC after: 3 days
Reviewed by: dumbbell
Differential Revision: https://reviews.freebsd.org/D52071

Details

Provenance
bzAuthored on Sep 4 2025, 8:23 PM
Reviewer
dumbbell
Differential Revision
D52071: LinuxKPI: correct the LINUXKPI_VERSION check for abs_diff()
Parents
rG627234627b51: LinuxKPI: pci: allow children to be attached to a pci_dev
Branches
Unknown
Tags
Unknown